SPUC
3.0
|
Voltage controlled oscillator with complex output. More...
#include <vco.h>
Public Member Functions | |
vco (long bits=8, long a_bits=10) | |
void | reset () |
void | set_frequency (Numeric freq) |
Set frequency control word. More... | |
void | reset_frequency (Numeric freq) |
Set new frequency. More... | |
Numeric | get_phase (void) |
return phase More... | |
void | load (Numeric loop_filter_out) |
Update fcw. More... | |
complex< Numeric > | clock (Numeric loop_filter_out) |
return output with updated input More... | |
complex< Numeric > | clock () |
return output only More... | |
template<> | |
float | get_phase (void) |
template<> | |
double | 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< double > | clock () |
template<> | |
complex< double > | clock (double loop_filter_out) |
template<> | |
complex< int > | clock () |
template<> | |
complex< int > | clock (int loop_filter_out) |
template<> | |
int_s | get_phase (void) |
template<> | |
complex< int_s > | clock () |
template<> | |
complex< int_s > | clock (int_s loop_filter_out) |
Protected Attributes | |
Numeric | phase |
Numeric | acc |
Numeric | fcw |
Numeric | new_fcw |
unsigned long | phase_bits |
long | amp |
Voltage controlled oscillator with complex output.
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).
References SPUC::arg(), SPUC::expj(), SPUC_TOLONG, and TWOPI.
References SPUC::arg(), SPUC::expj(), SPUC_TOLONG, and TWOPI.
References SPUC::arg(), SPUC::expj(), SPUC_TOLONG, and TWOPI.
return output with updated input
Referenced by SPUC::qpsk< Numeric >::clock(), SPUC::qpsk_variable< Numeric >::clock(), SPUC::sim_qpsk< Numeric >::tx_step(), SPUC::sim_qpsk_variable< Numeric >::tx_step(), and SPUC::sim_qam< Numeric >::tx_step().
float SPUC::vco< float >::get_phase | ( | void | ) |
double SPUC::vco< double >::get_phase | ( | void | ) |
int_s SPUC::vco< int_s >::get_phase | ( | void | ) |
int SPUC::vco< int >::get_phase | ( | void | ) |
long SPUC::vco< long >::get_phase | ( | void | ) |
|
inline |
return phase
Referenced by SPUC::qpsk_variable< Numeric >::clock().
|
inline |
Update fcw.
Referenced by SPUC::qpsk_variable< Numeric >::clock().
|
inline |
Referenced by SPUC::qpsk< Numeric >::reset(), and SPUC::vco< float_type >::vco().
|
inline |
Set new frequency.
Referenced by SPUC::sim_qam< Numeric >::loop_init(), SPUC::qpsk_variable< Numeric >::qpsk_variable(), and SPUC::qpsk< Numeric >::reset().
|
inline |
Set frequency control word.
|
protected |
|
protected |
|
protected |
Referenced by SPUC::vco< float_type >::reset_frequency().
|
protected |
|
protected |
|
protected |