GNU Radio Manual and C++ API Reference  3.10.9.1
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  * SPDX-License-Identifier: GPL-3.0-or-later
6  *
7  */
8 
9 #ifndef INCLUDED_ANALOG_CPFSK_BC_H
10 #define INCLUDED_ANALOG_CPFSK_BC_H
11 
12 #include <gnuradio/analog/api.h>
14 
15 namespace gr {
16 namespace analog {
17 
18 /*!
19  * \brief Perform continuous phase 2-level frequency shift keying modulation
20  * on an input stream of unpacked bits.
21  * \ingroup modulators_blk
22  * \ingroup deprecated_blk
23  */
24 class ANALOG_API cpfsk_bc : virtual public sync_interpolator
25 {
26 public:
27  // gr::analog::cpfsk_bc::sptr
28  typedef std::shared_ptr<cpfsk_bc> sptr;
29 
30  /*!
31  * \brief Make a CPFSK block.
32  *
33  * \param k modulation index
34  * \param ampl output amplitude
35  * \param samples_per_sym number of output samples per input bit
36  */
37  static sptr make(float k, float ampl, int samples_per_sym);
38 
39  virtual void set_amplitude(float amplitude) = 0;
40  virtual float amplitude() = 0;
41  virtual float freq() = 0;
42  virtual float phase() = 0;
43 };
44 
45 } /* namespace analog */
46 } /* namespace gr */
47 
48 #endif /* INCLUDED_ANALOG_CPFSK_BC_H */
Perform continuous phase 2-level frequency shift keying modulation on an input stream of unpacked bit...
Definition: cpfsk_bc.h:25
virtual float freq()=0
virtual float phase()=0
virtual void set_amplitude(float amplitude)=0
virtual float amplitude()=0
static sptr make(float k, float ampl, int samples_per_sym)
Make a CPFSK block.
std::shared_ptr< cpfsk_bc > sptr
Definition: cpfsk_bc.h:28
synchronous 1:N input to output with history
Definition: sync_interpolator.h:26
#define ANALOG_API
Definition: gr-analog/include/gnuradio/analog/api.h:18
GNU Radio logging wrapper.
Definition: basic_block.h:29