GNU Radio Manual and C++ API Reference  3.7.4
The Free & Open Software Radio Ecosystem
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
sig_source_i.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_I_H
26 #define INCLUDED_ANALOG_SIG_SOURCE_I_H
27 
28 #include <gnuradio/analog/api.h>
30 #include <gnuradio/sync_block.h>
31 
32 namespace gr {
33  namespace analog {
34 
35  /*!
36  * \brief signal generator with int output.
37  * \ingroup waveform_generators_blk
38  */
39  class ANALOG_API sig_source_i : virtual public sync_block
40  {
41  public:
42  // gr::analog::sig_source_i::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, int offset = 0);
58 
59  virtual double sampling_freq() const = 0;
60  virtual gr::analog::gr_waveform_t waveform() const = 0;
61  virtual double frequency() const = 0;
62  virtual double amplitude() const = 0;
63  virtual int 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(int offset) = 0;
70  };
71 
72  } /* namespace analog */
73 } /* namespace gr */
74 
75 #endif /* INCLUDED_ANALOG_SIG_SOURCE_I_H */
gr_waveform_t
Types of signal generator waveforms.
Definition: sig_source_waveform.h:33
boost::shared_ptr< sig_source_i > sptr
Definition: sig_source_i.h:43
shared_ptr documentation stub
Definition: shared_ptr_docstub.h:15
synchronous 1:1 input to output with historyOverride work to provide the signal processing implementa...
Definition: sync_block.h:37
signal generator with int output.
Definition: sig_source_i.h:39
#define ANALOG_API
Definition: gr-analog/include/gnuradio/analog/api.h:30