GNU Radio 3.6.5 C++ API
|
#include <sig_source_i_impl.h>
Public Member Functions | |
sig_source_i_impl (double sampling_freq, gr_waveform_t waveform, double wave_freq, double ampl, int offset=0) | |
~sig_source_i_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 |
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) |
gr::analog::sig_source_i_impl::sig_source_i_impl | ( | double | sampling_freq, |
gr_waveform_t | waveform, | ||
double | wave_freq, | ||
double | ampl, | ||
int | offset = 0 |
||
) |
gr::analog::sig_source_i_impl::~sig_source_i_impl | ( | ) |
double gr::analog::sig_source_i_impl::amplitude | ( | ) | const [inline, virtual] |
Implements gr::analog::sig_source_i.
double gr::analog::sig_source_i_impl::frequency | ( | ) | const [inline, virtual] |
Implements gr::analog::sig_source_i.
int gr::analog::sig_source_i_impl::offset | ( | ) | const [inline, virtual] |
Implements gr::analog::sig_source_i.
double gr::analog::sig_source_i_impl::sampling_freq | ( | ) | const [inline, virtual] |
Implements gr::analog::sig_source_i.
void gr::analog::sig_source_i_impl::set_amplitude | ( | double | ampl | ) | [virtual] |
Implements gr::analog::sig_source_i.
void gr::analog::sig_source_i_impl::set_frequency | ( | double | frequency | ) | [virtual] |
Implements gr::analog::sig_source_i.
void gr::analog::sig_source_i_impl::set_offset | ( | int | offset | ) | [virtual] |
Implements gr::analog::sig_source_i.
void gr::analog::sig_source_i_impl::set_sampling_freq | ( | double | sampling_freq | ) | [virtual] |
Implements gr::analog::sig_source_i.
void gr::analog::sig_source_i_impl::set_waveform | ( | gr_waveform_t | waveform | ) | [virtual] |
Implements gr::analog::sig_source_i.
gr_waveform_t gr::analog::sig_source_i_impl::waveform | ( | ) | const [inline, virtual] |
Implements gr::analog::sig_source_i.
virtual int gr::analog::sig_source_i_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.