GNU Radio 3.7.1 C++ API
|
#include <ctrlport_probe_psd_impl.h>
Public Member Functions | |
ctrlport_probe_psd_impl (const std::string &id, const std::string &desc, int len) | |
~ctrlport_probe_psd_impl () | |
void | setup_rpc () |
Set up the RPC registered variables. | |
void | forecast (int noutput_items, gr_vector_int &ninput_items_required) |
Estimate input requirements given output request. | |
std::vector< gr_complex > | get () |
void | set_length (int len) |
int | length () 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 |
gr::fft::ctrlport_probe_psd_impl::ctrlport_probe_psd_impl | ( | const std::string & | id, |
const std::string & | desc, | ||
int | len | ||
) |
void gr::fft::ctrlport_probe_psd_impl::forecast | ( | int | noutput_items, |
gr_vector_int & | ninput_items_required | ||
) | [virtual] |
Estimate input requirements given output request.
noutput_items | number of output items to produce |
ninput_items_required | number of input items required on each input stream |
Given a request to product noutput_items
, estimate the number of data items required on each input stream. The estimate doesn't have to be exact, but should be close.
Reimplemented from gr::sync_block.
std::vector<gr_complex> gr::fft::ctrlport_probe_psd_impl::get | ( | ) | [virtual] |
Implements gr::fft::ctrlport_probe_psd.
int gr::fft::ctrlport_probe_psd_impl::length | ( | ) | const [virtual] |
Implements gr::fft::ctrlport_probe_psd.
void gr::fft::ctrlport_probe_psd_impl::set_length | ( | int | len | ) | [virtual] |
Implements gr::fft::ctrlport_probe_psd.
void gr::fft::ctrlport_probe_psd_impl::setup_rpc | ( | ) | [virtual] |
Set up the RPC registered variables.
This must be overloaded by a block that wants to use controlport. This is where rpcbasic_register_{get,set} pointers are created, which then get wrapped as shared pointers (rpcbasic_sptr(...)) and stored using add_rpc_variable.
Reimplemented from gr::basic_block.
int gr::fft::ctrlport_probe_psd_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.