GNU Radio Manual and C++ API Reference 3.7.14.0
The Free & Open Software Radio Ecosystem
sig_source_s.h
Go to the documentation of this file.
1/* -*- c++ -*- */
2/*
3 * Copyright 2004,2012 Free Software Foundation, Inc.
4 *
5 * This file is part of GNU Radio
6 *
7 * GNU Radio is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; either version 3, or (at your option)
10 * any later version.
11 *
12 * GNU Radio is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public License
18 * along with GNU Radio; see the file COPYING. If not, write to
19 * the Free Software Foundation, Inc., 51 Franklin Street,
20 * Boston, MA 02110-1301, USA.
21 */
22
23/* WARNING: this file is machine generated. Edits will be overwritten */
24
25#ifndef INCLUDED_ANALOG_SIG_SOURCE_S_H
26#define INCLUDED_ANALOG_SIG_SOURCE_S_H
27
28#include <gnuradio/analog/api.h>
30#include <gnuradio/sync_block.h>
31
32namespace gr {
33 namespace analog {
34
35 /*!
36 * \brief signal generator with short output.
37 * \ingroup waveform_generators_blk
38 */
39 class ANALOG_API sig_source_s : virtual public sync_block
40 {
41 public:
42 // gr::analog::sig_source_s::sptr
43 typedef boost::shared_ptr<sig_source_s> sptr;
44
45 /*!
46 * Build a signal source block.
47 *
48 * \param sampling_freq Sampling rate of signal.
49 * \param waveform wavetform type.
50 * \param wave_freq Frequency of waveform (relative to sampling_freq).
51 * \param ampl Signal amplitude.
52 * \param offset offset of signal.
53 */
54 static sptr make(double sampling_freq,
56 double wave_freq,
57 double ampl, short offset = 0);
58
59 virtual double sampling_freq() const = 0;
61 virtual double frequency() const = 0;
62 virtual double amplitude() const = 0;
63 virtual short offset() const = 0;
64
65 virtual void set_sampling_freq(double sampling_freq) = 0;
66 virtual void set_waveform(gr::analog::gr_waveform_t waveform) = 0;
67 virtual void set_frequency(double frequency) = 0;
68 virtual void set_amplitude(double ampl) = 0;
69 virtual void set_offset(short offset) = 0;
70 };
71
72 } /* namespace analog */
73} /* namespace gr */
74
75#endif /* INCLUDED_ANALOG_SIG_SOURCE_S_H */
signal generator with short output.
Definition: sig_source_s.h:40
virtual double frequency() const =0
virtual void set_waveform(gr::analog::gr_waveform_t waveform)=0
virtual double amplitude() const =0
virtual gr::analog::gr_waveform_t waveform() const =0
virtual void set_offset(short offset)=0
static sptr make(double sampling_freq, gr::analog::gr_waveform_t waveform, double wave_freq, double ampl, short offset=0)
boost::shared_ptr< sig_source_s > sptr
Definition: sig_source_s.h:43
virtual void set_sampling_freq(double sampling_freq)=0
virtual void set_frequency(double frequency)=0
virtual void set_amplitude(double ampl)=0
virtual double sampling_freq() const =0
virtual short offset() const =0
synchronous 1:1 input to output with history
Definition: sync_block.h:38
#define ANALOG_API
Definition: gr-analog/include/gnuradio/analog/api.h:30
gr_waveform_t
Types of signal generator waveforms.
Definition: sig_source_waveform.h:33
Include this header to use the message passing features.
Definition: basic_block.h:45