GNU Radio 3.6.5 C++ API

gr::analog::sig_source_f_impl Class Reference

#include <sig_source_f_impl.h>

Inheritance diagram for gr::analog::sig_source_f_impl:
gr::analog::sig_source_f gr_sync_block gr_block gr_basic_block gr_msg_accepter gruel::msg_accepter

List of all members.

Public Member Functions

 sig_source_f_impl (double sampling_freq, gr_waveform_t waveform, double wave_freq, double ampl, float offset=0)
 ~sig_source_f_impl ()
virtual 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
double sampling_freq () const
gr_waveform_t waveform () const
double frequency () const
double amplitude () const
float offset () const
void set_sampling_freq (double sampling_freq)
void set_waveform (gr_waveform_t waveform)
void set_frequency (double frequency)
void set_amplitude (double ampl)
void set_offset (float offset)

Constructor & Destructor Documentation

gr::analog::sig_source_f_impl::sig_source_f_impl ( double  sampling_freq,
gr_waveform_t  waveform,
double  wave_freq,
double  ampl,
float  offset = 0 
)
gr::analog::sig_source_f_impl::~sig_source_f_impl ( )

Member Function Documentation

double gr::analog::sig_source_f_impl::amplitude ( ) const [inline, virtual]
double gr::analog::sig_source_f_impl::frequency ( ) const [inline, virtual]
float gr::analog::sig_source_f_impl::offset ( ) const [inline, virtual]
double gr::analog::sig_source_f_impl::sampling_freq ( ) const [inline, virtual]
void gr::analog::sig_source_f_impl::set_amplitude ( double  ampl) [virtual]
void gr::analog::sig_source_f_impl::set_frequency ( double  frequency) [virtual]
void gr::analog::sig_source_f_impl::set_offset ( float  offset) [virtual]
void gr::analog::sig_source_f_impl::set_sampling_freq ( double  sampling_freq) [virtual]
void gr::analog::sig_source_f_impl::set_waveform ( gr_waveform_t  waveform) [virtual]
gr_waveform_t gr::analog::sig_source_f_impl::waveform ( ) const [inline, virtual]
virtual int gr::analog::sig_source_f_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: