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

#include <probe_avg_mag_sqrd_c_impl.h>

Inheritance diagram for gr::analog::probe_avg_mag_sqrd_c_impl:
gr::analog::probe_avg_mag_sqrd_c gr_sync_block gr_block gr_basic_block gr_msg_accepter gruel::msg_accepter

Public Member Functions

 probe_avg_mag_sqrd_c_impl (double threshold_db, double alpha=0.0001)
 ~probe_avg_mag_sqrd_c_impl ()
bool unmuted () const
double level () const
double threshold () const
void set_alpha (double alpha)
void set_threshold (double decibels)
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

Additional Inherited Members

- Public Types inherited from gr::analog::probe_avg_mag_sqrd_c
typedef boost::shared_ptr
< probe_avg_mag_sqrd_c
sptr
- Static Public Member Functions inherited from gr::analog::probe_avg_mag_sqrd_c
static sptr make (double threshold_db, double alpha=0.0001)
 Make a complex sink that computes avg magnitude squared.
- 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

Constructor & Destructor Documentation

gr::analog::probe_avg_mag_sqrd_c_impl::probe_avg_mag_sqrd_c_impl ( double  threshold_db,
double  alpha = 0.0001 
)
gr::analog::probe_avg_mag_sqrd_c_impl::~probe_avg_mag_sqrd_c_impl ( )

Member Function Documentation

double gr::analog::probe_avg_mag_sqrd_c_impl::level ( ) const
inlinevirtual
void gr::analog::probe_avg_mag_sqrd_c_impl::set_alpha ( double  alpha)
virtual
void gr::analog::probe_avg_mag_sqrd_c_impl::set_threshold ( double  decibels)
virtual
double gr::analog::probe_avg_mag_sqrd_c_impl::threshold ( ) const
virtual
bool gr::analog::probe_avg_mag_sqrd_c_impl::unmuted ( ) const
inlinevirtual
int gr::analog::probe_avg_mag_sqrd_c_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: