GNU Radio 3.5.3.2 C++ API
gr_sig_source_c Class Reference

signal generator with gr_complex output. More...

#include <gr_sig_source_c.h>

Inheritance diagram for gr_sig_source_c:

List of all members.

Public Member Functions

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
gr_complex 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 (gr_complex offset)

Friends

GR_CORE_API gr_sig_source_c_sptr gr_make_sig_source_c (double sampling_freq, gr_waveform_t waveform, double frequency, double ampl, gr_complex offset)

Detailed Description

signal generator with gr_complex output.


Member Function Documentation

double gr_sig_source_c::amplitude ( ) const [inline]
double gr_sig_source_c::frequency ( ) const [inline]
gr_complex gr_sig_source_c::offset ( ) const [inline]
double gr_sig_source_c::sampling_freq ( ) const [inline]
void gr_sig_source_c::set_amplitude ( double  ampl)
void gr_sig_source_c::set_frequency ( double  frequency)
void gr_sig_source_c::set_offset ( gr_complex  offset)
void gr_sig_source_c::set_sampling_freq ( double  sampling_freq)
void gr_sig_source_c::set_waveform ( gr_waveform_t  waveform)
gr_waveform_t gr_sig_source_c::waveform ( ) const [inline]
virtual int gr_sig_source_c::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.


Friends And Related Function Documentation

GR_CORE_API gr_sig_source_c_sptr gr_make_sig_source_c ( double  sampling_freq,
gr_waveform_t  waveform,
double  frequency,
double  ampl,
gr_complex  offset 
) [friend]

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