GNU Radio 3.3.0 C++ API
|
Carrier tracking PLL for QPSKinput: complex; output: complex
The Costas loop can have two output streams: stream 1 is the baseband I and Q; stream 2 is the normalized frequency of the loop.
More...
#include <gr_costas_loop_cc.h>
Public Member Functions | |
void | set_alpha (float alpha) |
set the first order gain | |
float | alpha () const |
get the first order gain | |
void | set_beta (float beta) |
set the second order gain | |
float | beta () const |
get the second order gain | |
int | work (int noutput_items, gr_vector_const_void_star &input_items, gr_vector_void_star &output_items) |
just like gr_block::general_work, only this arranges to call consume_each for you | |
float | freq () const |
returns the current NCO frequency in radians/sample | |
Friends | |
gr_costas_loop_cc_sptr | gr_make_costas_loop_cc (float alpha, float beta, float max_freq, float min_freq, int order) throw (std::invalid_argument) |
Carrier tracking PLL for QPSK
input: complex; output: complex
The Costas loop can have two output streams: stream 1 is the baseband I and Q; stream 2 is the normalized frequency of the loop.
order
must be 2 or 4.
float gr_costas_loop_cc::alpha | ( | ) | const [inline] |
get the first order gain
float gr_costas_loop_cc::beta | ( | ) | const [inline] |
get the second order gain
float gr_costas_loop_cc::freq | ( | ) | const [inline] |
returns the current NCO frequency in radians/sample
void gr_costas_loop_cc::set_alpha | ( | float | alpha | ) |
set the first order gain
alpha |
void gr_costas_loop_cc::set_beta | ( | float | beta | ) |
set the second order gain
beta |
int gr_costas_loop_cc::work | ( | int | noutput_items, |
gr_vector_const_void_star & | input_items, | ||
gr_vector_void_star & | output_items | ||
) | [virtual] |
just like gr_block::general_work, only this arranges to call consume_each for you
The user must override work to define the signal processing code
Implements gr_sync_block.
gr_costas_loop_cc_sptr gr_make_costas_loop_cc | ( | float | alpha, |
float | beta, | ||
float | max_freq, | ||
float | min_freq, | ||
int | order | ||
) | throw (std::invalid_argument) [friend] |