GNU Radio 3.6.5 C++ API

gr_sig_source_i Class Reference

signal generator with int output. More...

#include <gr_sig_source_i.h>

Inheritance diagram for gr_sig_source_i:
gr_sync_block gr_block gr_basic_block gr_msg_accepter gruel::msg_accepter

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

Friends

GR_CORE_API gr_sig_source_i_sptr gr_make_sig_source_i (double sampling_freq, gr_waveform_t waveform, double frequency, double ampl, int offset)

Detailed Description

signal generator with int output.


Member Function Documentation

double gr_sig_source_i::amplitude ( ) const [inline]
double gr_sig_source_i::frequency ( ) const [inline]
int gr_sig_source_i::offset ( ) const [inline]
double gr_sig_source_i::sampling_freq ( ) const [inline]
void gr_sig_source_i::set_amplitude ( double  ampl)
void gr_sig_source_i::set_frequency ( double  frequency)
void gr_sig_source_i::set_offset ( int  offset)
void gr_sig_source_i::set_sampling_freq ( double  sampling_freq)
void gr_sig_source_i::set_waveform ( gr_waveform_t  waveform)
gr_waveform_t gr_sig_source_i::waveform ( ) const [inline]
virtual int gr_sig_source_i::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_i_sptr gr_make_sig_source_i ( double  sampling_freq,
gr_waveform_t  waveform,
double  frequency,
double  ampl,
int  offset 
) [friend]

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