#include <vco.h>
Collaboration diagram for SPUC::vco< Numeric >:

Public Member Functions | |
| vco (long bits=8, long a_bits=10) | |
| void | reset () |
| void | set_frequency (Numeric freq) |
| Set frequency control word. | |
| void | reset_frequency (Numeric freq) |
| Set new frequency. | |
| Numeric | get_phase (void) |
| return phase | |
| void | load (Numeric loop_filter_out) |
| Update fcw. | |
| complex< Numeric > | clock (Numeric loop_filter_out) |
| return output with updated input | |
| complex< Numeric > | clock () |
| return output only | |
| template<> | |
| float | get_phase (void) |
| template<> | |
| int | get_phase (void) |
| template<> | |
| long | get_phase (void) |
| template<> | |
| complex< float > | clock () |
| template<> | |
| complex< float > | clock (float loop_filter_out) |
| template<> | |
| complex< long > | clock () |
| template<> | |
| complex< long > | clock (long loop_filter_out) |
| template<> | |
| complex< int > | clock () |
| template<> | |
| complex< int > | clock (int loop_filter_out) |
Protected Attributes | |
| Numeric | phase |
| Numeric | acc |
| Numeric | fcw |
| Numeric | new_fcw |
| unsigned long | phase_bits |
| long | amp |
FCW : frequency control word ACC : accumulator Frequency must be set through interface routines set_frequency or reset_frequency. Load routine is to allow frequency to be updated (typically with a loop filter).
Tony Kirke
return output with updated input
| long SPUC::vco< long >::get_phase | ( | void | ) |
| int SPUC::vco< int >::get_phase | ( | void | ) |
| float SPUC::vco< float >::get_phase | ( | void | ) |
| Numeric SPUC::vco< Numeric >::get_phase | ( | void | ) | [inline] |
return phase
| void SPUC::vco< Numeric >::load | ( | Numeric | loop_filter_out | ) | [inline] |
Update fcw.
| void SPUC::vco< Numeric >::reset | ( | void | ) | [inline] |
| void SPUC::vco< Numeric >::reset_frequency | ( | Numeric | freq | ) | [inline] |
Set new frequency.
| void SPUC::vco< Numeric >::set_frequency | ( | Numeric | freq | ) | [inline] |
Set frequency control word.
unsigned long SPUC::vco< Numeric >::phase_bits [protected] |
1.4.7