gr-baz Package
|
#include <throttle_impl.h>
Public Member Functions | |
throttle_impl (size_t itemsize, double samples_per_sec) | |
~throttle_impl () | |
void | set_sample_rate (double rate) |
Sets the sample rate in samples per second. | |
double | sample_rate () const |
Get the sample rate in samples per second. | |
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 | |
![]() | |
typedef boost::shared_ptr < throttle > | sptr |
![]() | |
static sptr | make (size_t itemsize, double samples_per_sec) |
gr::blocks::throttle_impl::throttle_impl | ( | size_t | itemsize, |
double | samples_per_sec | ||
) |
gr::blocks::throttle_impl::~throttle_impl | ( | ) |
|
virtual |
Get the sample rate in samples per second.
Implements gr::blocks::throttle.
|
virtual |
Sets the sample rate in samples per second.
Implements gr::blocks::throttle.
|
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.