GNU Radio 3.7.2git-47-g5cfb1151 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:
gr::fft::ctrlport_probe_psd gr::sync_block gr::block gr::basic_block gr::msg_accepter gr::messages::msg_accepter

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. More...
 
void forecast (int noutput_items, gr_vector_int &ninput_items_required)
 Estimate input requirements given output request. More...
 
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 More...
 

Additional Inherited Members

- Public Types inherited from gr::fft::ctrlport_probe_psd
typedef boost::shared_ptr
< ctrlport_probe_psd
sptr
 
- Static Public Member Functions inherited from gr::fft::ctrlport_probe_psd
static sptr make (const std::string &id, const std::string &desc, int len)
 Make a ControlPort probe block. More...
 
- Protected Types inherited from gr::basic_block
enum  vcolor { WHITE, GREY, BLACK }
 
- Protected Member Functions inherited from gr::sync_block
 sync_block (void)
 
 sync_block (const std::string &name, gr::io_signature::sptr input_signature, gr::io_signature::sptr output_signature)
 
- Protected Attributes inherited from gr::block
std::vector< long > d_max_output_buffer
 
std::vector< long > d_min_output_buffer
 
gr::thread::mutex d_setlock
 
gr::logger_ptr d_logger
 
gr::logger_ptr d_debug_logger
 

Constructor & Destructor Documentation

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

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.

std::vector<gr_complex> gr::fft::ctrlport_probe_psd_impl::get ( )
virtual
int gr::fft::ctrlport_probe_psd_impl::length ( ) const
virtual
void gr::fft::ctrlport_probe_psd_impl::set_length ( int  len)
virtual
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.


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