GNU Radio 3.6.5 C++ API
|
signal generator with gr_complex output. More...
#include <sig_source_c.h>
Public Types | |
typedef boost::shared_ptr < sig_source_c > | sptr |
Public Member Functions | |
virtual double | sampling_freq () const =0 |
virtual gr::analog::gr_waveform_t | waveform () const =0 |
virtual double | frequency () const =0 |
virtual double | amplitude () const =0 |
virtual gr_complex | offset () const =0 |
virtual void | set_sampling_freq (double sampling_freq)=0 |
virtual void | set_waveform (gr::analog::gr_waveform_t waveform)=0 |
virtual void | set_frequency (double frequency)=0 |
virtual void | set_amplitude (double ampl)=0 |
virtual void | set_offset (gr_complex offset)=0 |
Static Public Member Functions | |
static sptr | make (double sampling_freq, gr::analog::gr_waveform_t waveform, double wave_freq, double ampl, gr_complex offset=0) |
signal generator with gr_complex output.
virtual double gr::analog::sig_source_c::amplitude | ( | ) | const [pure virtual] |
Implemented in gr::analog::sig_source_c_impl.
virtual double gr::analog::sig_source_c::frequency | ( | ) | const [pure virtual] |
Implemented in gr::analog::sig_source_c_impl.
static sptr gr::analog::sig_source_c::make | ( | double | sampling_freq, |
gr::analog::gr_waveform_t | waveform, | ||
double | wave_freq, | ||
double | ampl, | ||
gr_complex | offset = 0 |
||
) | [static] |
Build a signal source block.
sampling_freq | Sampling rate of signal. |
waveform | wavetform type. |
wave_freq | Frequency of waveform (relative to sampling_freq). |
ampl | Signal amplitude. |
offset | offset of signal. |
virtual gr_complex gr::analog::sig_source_c::offset | ( | ) | const [pure virtual] |
Implemented in gr::analog::sig_source_c_impl.
virtual double gr::analog::sig_source_c::sampling_freq | ( | ) | const [pure virtual] |
Implemented in gr::analog::sig_source_c_impl.
virtual void gr::analog::sig_source_c::set_amplitude | ( | double | ampl | ) | [pure virtual] |
Implemented in gr::analog::sig_source_c_impl.
virtual void gr::analog::sig_source_c::set_frequency | ( | double | frequency | ) | [pure virtual] |
Implemented in gr::analog::sig_source_c_impl.
virtual void gr::analog::sig_source_c::set_offset | ( | gr_complex | offset | ) | [pure virtual] |
Implemented in gr::analog::sig_source_c_impl.
virtual void gr::analog::sig_source_c::set_sampling_freq | ( | double | sampling_freq | ) | [pure virtual] |
Implemented in gr::analog::sig_source_c_impl.
virtual void gr::analog::sig_source_c::set_waveform | ( | gr::analog::gr_waveform_t | waveform | ) | [pure virtual] |
Implemented in gr::analog::sig_source_c_impl.
virtual gr::analog::gr_waveform_t gr::analog::sig_source_c::waveform | ( | ) | const [pure virtual] |
Implemented in gr::analog::sig_source_c_impl.