GNU Radio 3.6.5 C++ API
|
#include <probe_rate_impl.h>
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 |
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 | ( | ) |
double gr::blocks::probe_rate_impl::rate | ( | ) | [virtual] |
Implements gr::blocks::probe_rate.
void gr::blocks::probe_rate_impl::set_alpha | ( | double | alpha | ) | [virtual] |
Implements gr::blocks::probe_rate.
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.