GNU Radio 3.6.5 C++ API

gr::blocks::probe_rate_impl Class Reference

#include <probe_rate_impl.h>

Inheritance diagram for gr::blocks::probe_rate_impl:
gr::blocks::probe_rate gr_sync_block gr_block gr_basic_block gr_msg_accepter gruel::msg_accepter

List of all members.

Public Member Functions

 probe_rate_impl (size_t itemsize, double update_rate_ms, double alpha=0.0001)
 ~probe_rate_impl ()
void set_alpha (double alpha)
double rate ()
double timesincelast ()
bool start ()
 Called to enable drivers, etc for i/o devices.
bool stop ()
 Called to disable drivers, etc for i/o devices.
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

Constructor & Destructor Documentation

gr::blocks::probe_rate_impl::probe_rate_impl ( size_t  itemsize,
double  update_rate_ms,
double  alpha = 0.0001 
)
gr::blocks::probe_rate_impl::~probe_rate_impl ( )

Member Function Documentation

double gr::blocks::probe_rate_impl::rate ( ) [virtual]
void gr::blocks::probe_rate_impl::set_alpha ( double  alpha) [virtual]
bool gr::blocks::probe_rate_impl::start ( ) [virtual]

Called to enable drivers, etc for i/o devices.

This allows a block to enable an associated driver to begin transfering data just before we start to execute the scheduler. The end result is that this reduces latency in the pipeline when dealing with audio devices, usrps, etc.

Implements gr::blocks::probe_rate.

bool gr::blocks::probe_rate_impl::stop ( ) [virtual]

Called to disable drivers, etc for i/o devices.

Implements gr::blocks::probe_rate.

double gr::blocks::probe_rate_impl::timesincelast ( )
int gr::blocks::probe_rate_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: