GNU Radio 3.6.4.1 C++ API
gr::analog::pll_freqdet_cf_impl Class Reference

#include <pll_freqdet_cf_impl.h>

Inheritance diagram for gr::analog::pll_freqdet_cf_impl:
gr::analog::pll_freqdet_cf gri_control_loop gr_sync_block gr_block gr_basic_block gr_msg_accepter gruel::msg_accepter

Public Member Functions

 pll_freqdet_cf_impl (float loop_bw, float max_freq, float min_freq)
 
 ~pll_freqdet_cf_impl ()
 
float mod_2pi (float in)
 
void set_loop_bandwidth (float bw)
 
void set_damping_factor (float df)
 
void set_alpha (float alpha)
 
void set_beta (float beta)
 
void set_frequency (float freq)
 
void set_phase (float phase)
 
void set_min_freq (float freq)
 
void set_max_freq (float freq)
 
float get_loop_bandwidth () const
 
float get_damping_factor () const
 
float get_alpha () const
 
float get_beta () const
 
float get_frequency () const
 
float get_phase () const
 
float get_min_freq () const
 
float get_max_freq () const
 
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 More...
 
- Public Member Functions inherited from gri_control_loop
 gri_control_loop (float loop_bw, float max_freq, float min_freq)
 
virtual ~gri_control_loop ()
 
void update_gains ()
 update the system gains from the loop bandwidth and damping factor More...
 
void advance_loop (float error)
 update the system gains from the loop bandwidth and damping factor More...
 
void phase_wrap ()
 Keep the phase between -2pi and 2pi. More...
 
void frequency_limit ()
 Keep the frequency between d_min_freq and d_max_freq. More...
 
void set_loop_bandwidth (float bw)
 Set the loop bandwidth. More...
 
void set_damping_factor (float df)
 Set the loop damping factor. More...
 
void set_alpha (float alpha)
 Set the loop gain alpha. More...
 
void set_beta (float beta)
 Set the loop gain beta. More...
 
void set_frequency (float freq)
 Set the control loop's frequency. More...
 
void set_phase (float phase)
 Set the control loop's phase. More...
 
void set_max_freq (float freq)
 Set the control loop's maximum frequency. More...
 
void set_min_freq (float freq)
 Set the control loop's minimum frequency. More...
 
float get_loop_bandwidth () const
 Returns the loop bandwidth. More...
 
float get_damping_factor () const
 Returns the loop damping factor. More...
 
float get_alpha () const
 Returns the loop gain alpha. More...
 
float get_beta () const
 Returns the loop gain beta. More...
 
float get_frequency () const
 Get the control loop's frequency estimate. More...
 
float get_phase () const
 Get the control loop's phase estimate. More...
 
float get_max_freq () const
 Get the control loop's maximum frequency. More...
 
float get_min_freq () const
 Get the control loop's minimum frequency. More...
 

Additional Inherited Members

- Public Types inherited from gr::analog::pll_freqdet_cf
typedef boost::shared_ptr
< pll_freqdet_cf
sptr
 
- Static Public Member Functions inherited from gr::analog::pll_freqdet_cf
static sptr make (float loop_bw, float max_freq, float min_freq)
 
- Protected Types inherited from gr_basic_block
enum  vcolor { WHITE, GREY, BLACK }
 
- Protected Member Functions inherited from gr_sync_block
 gr_sync_block (void)
 
 gr_sync_block (const std::string &name, gr_io_signature_sptr input_signature, gr_io_signature_sptr output_signature)
 
- Protected Attributes inherited from gr_block
std::vector< long > d_max_output_buffer
 
std::vector< long > d_min_output_buffer
 
gruel::mutex d_setlock
 
- Protected Attributes inherited from gri_control_loop
float d_phase
 
float d_freq
 
float d_max_freq
 
float d_min_freq
 
float d_damping
 
float d_loop_bw
 
float d_alpha
 
float d_beta
 

Constructor & Destructor Documentation

gr::analog::pll_freqdet_cf_impl::pll_freqdet_cf_impl ( float  loop_bw,
float  max_freq,
float  min_freq 
)
gr::analog::pll_freqdet_cf_impl::~pll_freqdet_cf_impl ( )

Member Function Documentation

float gr::analog::pll_freqdet_cf_impl::get_alpha ( ) const
virtual
float gr::analog::pll_freqdet_cf_impl::get_beta ( ) const
virtual
float gr::analog::pll_freqdet_cf_impl::get_damping_factor ( ) const
virtual
float gr::analog::pll_freqdet_cf_impl::get_frequency ( ) const
virtual
float gr::analog::pll_freqdet_cf_impl::get_loop_bandwidth ( ) const
virtual
float gr::analog::pll_freqdet_cf_impl::get_max_freq ( ) const
virtual
float gr::analog::pll_freqdet_cf_impl::get_min_freq ( ) const
virtual
float gr::analog::pll_freqdet_cf_impl::get_phase ( ) const
virtual
float gr::analog::pll_freqdet_cf_impl::mod_2pi ( float  in)
void gr::analog::pll_freqdet_cf_impl::set_alpha ( float  alpha)
virtual
void gr::analog::pll_freqdet_cf_impl::set_beta ( float  beta)
virtual
void gr::analog::pll_freqdet_cf_impl::set_damping_factor ( float  df)
virtual
void gr::analog::pll_freqdet_cf_impl::set_frequency ( float  freq)
virtual
void gr::analog::pll_freqdet_cf_impl::set_loop_bandwidth ( float  bw)
virtual
void gr::analog::pll_freqdet_cf_impl::set_max_freq ( float  freq)
virtual
void gr::analog::pll_freqdet_cf_impl::set_min_freq ( float  freq)
virtual
void gr::analog::pll_freqdet_cf_impl::set_phase ( float  phase)
virtual
int gr::analog::pll_freqdet_cf_impl::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.


The documentation for this class was generated from the following file: