GNU Radio 3.7.1 C++ API
gr::fft::ctrlport_probe_psd_impl Class Reference

#include <ctrlport_probe_psd_impl.h>

Inheritance diagram for gr::fft::ctrlport_probe_psd_impl:

List of all members.

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_complexget ()
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

Constructor & Destructor Documentation

gr::fft::ctrlport_probe_psd_impl::ctrlport_probe_psd_impl ( const std::string &  id,
const std::string &  desc,
int  len 
)

Member Function Documentation

void gr::fft::ctrlport_probe_psd_impl::forecast ( int  noutput_items,
gr_vector_int ninput_items_required 
) [virtual]

Estimate input requirements given output request.

Parameters:
noutput_itemsnumber of output items to produce
ninput_items_requirednumber 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.

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.


The documentation for this class was generated from the following file: