GNU Radio Manual and C++ API Reference  3.8.1.0
The Free & Open Software Radio Ecosystem
cpfsk_bc.h
Go to the documentation of this file.
1 /* -*- c++ -*- */
2 /*
3  * Copyright 2008,2012 Free Software Foundation, Inc.
4  *
5  * GNU Radio is free software; you can redistribute it and/or modify
6  * it under the terms of the GNU General Public License as published by
7  * the Free Software Foundation; either version 3, or (at your option)
8  * any later version.
9  *
10  * GNU Radio is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  * GNU General Public License for more details.
14  *
15  * You should have received a copy of the GNU General Public License
16  * along with GNU Radio; see the file COPYING. If not, write to
17  * the Free Software Foundation, Inc., 51 Franklin Street,
18  * Boston, MA 02110-1301, USA.
19  */
20 
21 #ifndef INCLUDED_ANALOG_CPFSK_BC_H
22 #define INCLUDED_ANALOG_CPFSK_BC_H
23 
24 #include <gnuradio/analog/api.h>
26 
27 namespace gr {
28 namespace analog {
29 
30 /*!
31  * \brief Perform continuous phase 2-level frequency shift keying modulation
32  * on an input stream of unpacked bits.
33  * \ingroup modulators_blk
34  * \ingroup deprecated_blk
35  */
36 class ANALOG_API cpfsk_bc : virtual public sync_interpolator
37 {
38 public:
39  // gr::analog::cpfsk_bc::sptr
40  typedef boost::shared_ptr<cpfsk_bc> sptr;
41 
42  /*!
43  * \brief Make a CPFSK block.
44  *
45  * \param k modulation index
46  * \param ampl output amplitude
47  * \param samples_per_sym number of output samples per input bit
48  */
49  static sptr make(float k, float ampl, int samples_per_sym);
50 
51  virtual void set_amplitude(float amplitude) = 0;
52  virtual float amplitude() = 0;
53  virtual float freq() = 0;
54  virtual float phase() = 0;
55 };
56 
57 } /* namespace analog */
58 } /* namespace gr */
59 
60 #endif /* INCLUDED_ANALOG_CPFSK_BC_H */
synchronous 1:N input to output with historyOverride work to provide the signal processing implementa...
Definition: sync_interpolator.h:37
GNU Radio logging wrapper for log4cpp library (C++ port of log4j)
Definition: basic_block.h:43
Perform continuous phase 2-level frequency shift keying modulation on an input stream of unpacked bit...
Definition: cpfsk_bc.h:36
#define ANALOG_API
Definition: gr-analog/include/gnuradio/analog/api.h:30
boost::shared_ptr< cpfsk_bc > sptr
Definition: cpfsk_bc.h:40