GNU Radio 3.6.0 C++ API
gnuradio::extras::signal_source Class Reference

signal generator source More...

#include <signal_source.h>

Inheritance diagram for gnuradio::extras::signal_source:
gr_sync_block gr_block gr_basic_block gr_msg_accepter gruel::msg_accepter

List of all members.

Public Types

typedef boost::shared_ptr
< signal_source
sptr

Public Member Functions

virtual void set_waveform (const std::string &)=0
 Set the waveform type (CONST, COSINE, RAMP, SQUARE)
virtual std::string get_waveform (void)=0
 Get the current waveform setting.
virtual void set_offset (const std::complex< double > &)=0
 Set the offset, this is a free addition operation.
virtual std::complex< double > get_offset (void)=0
 Get the current offset setting.
virtual void set_amplitude (const std::complex< double > &)=0
 Set the scalar, this is a free multiply scalar operation.
virtual std::complex< double > get_amplitude (void)=0
 Get the current amplitude setting.
virtual void set_frequency (const double)=0
 Set the frequency, this is a fractional number between -1 and 1.
virtual double get_frequency (void)=0
 Get the actual frequency setting (-1 and 1)
void set_frequency (const double samp_rate, const double wave_freq)
 Convenience call to set frequency with sample rate.
double get_frequency (const double samp_rate)
 Convenience call to get frequency with sample rate.

Static Public Member Functions

static sptr make_fc32 (void)
static sptr make_sc32 (void)
static sptr make_sc16 (void)
static sptr make_sc8 (void)
static sptr make_f32 (void)
static sptr make_s32 (void)
static sptr make_s16 (void)
static sptr make_s8 (void)

Detailed Description

signal generator source


Member Typedef Documentation


Member Function Documentation

virtual std::complex<double> gnuradio::extras::signal_source::get_amplitude ( void  ) [pure virtual]

Get the current amplitude setting.

virtual double gnuradio::extras::signal_source::get_frequency ( void  ) [pure virtual]

Get the actual frequency setting (-1 and 1)

double gnuradio::extras::signal_source::get_frequency ( const double  samp_rate) [inline]

Convenience call to get frequency with sample rate.

virtual std::complex<double> gnuradio::extras::signal_source::get_offset ( void  ) [pure virtual]

Get the current offset setting.

virtual std::string gnuradio::extras::signal_source::get_waveform ( void  ) [pure virtual]

Get the current waveform setting.

static sptr gnuradio::extras::signal_source::make_f32 ( void  ) [static]
static sptr gnuradio::extras::signal_source::make_fc32 ( void  ) [static]
static sptr gnuradio::extras::signal_source::make_s16 ( void  ) [static]
static sptr gnuradio::extras::signal_source::make_s32 ( void  ) [static]
static sptr gnuradio::extras::signal_source::make_s8 ( void  ) [static]
static sptr gnuradio::extras::signal_source::make_sc16 ( void  ) [static]
static sptr gnuradio::extras::signal_source::make_sc32 ( void  ) [static]
static sptr gnuradio::extras::signal_source::make_sc8 ( void  ) [static]
virtual void gnuradio::extras::signal_source::set_amplitude ( const std::complex< double > &  ) [pure virtual]

Set the scalar, this is a free multiply scalar operation.

virtual void gnuradio::extras::signal_source::set_frequency ( const double  ) [pure virtual]

Set the frequency, this is a fractional number between -1 and 1.

void gnuradio::extras::signal_source::set_frequency ( const double  samp_rate,
const double  wave_freq 
) [inline]

Convenience call to set frequency with sample rate.

virtual void gnuradio::extras::signal_source::set_offset ( const std::complex< double > &  ) [pure virtual]

Set the offset, this is a free addition operation.

virtual void gnuradio::extras::signal_source::set_waveform ( const std::string ) [pure virtual]

Set the waveform type (CONST, COSINE, RAMP, SQUARE)


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