summaryrefslogtreecommitdiff
path: root/gr-analog/include/gnuradio/analog/cpfsk_bc.h
blob: 9329840b26cde30aa9353e1706cbe89611604d55 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
/* -*- c++ -*- */
/*
 * Copyright 2008,2012 Free Software Foundation, Inc.
 *
 * SPDX-License-Identifier: GPL-3.0-or-later
 *
 */

#ifndef INCLUDED_ANALOG_CPFSK_BC_H
#define INCLUDED_ANALOG_CPFSK_BC_H

#include <gnuradio/analog/api.h>
#include <gnuradio/sync_interpolator.h>

namespace gr {
namespace analog {

/*!
 * \brief Perform continuous phase 2-level frequency shift keying modulation
 * on an input stream of unpacked bits.
 * \ingroup modulators_blk
 * \ingroup deprecated_blk
 */
class ANALOG_API cpfsk_bc : virtual public sync_interpolator
{
public:
    // gr::analog::cpfsk_bc::sptr
    typedef boost::shared_ptr<cpfsk_bc> sptr;

    /*!
     * \brief Make a CPFSK block.
     *
     * \param k modulation index
     * \param ampl output amplitude
     * \param samples_per_sym	number of output samples per input bit
     */
    static sptr make(float k, float ampl, int samples_per_sym);

    virtual void set_amplitude(float amplitude) = 0;
    virtual float amplitude() = 0;
    virtual float freq() = 0;
    virtual float phase() = 0;
};

} /* namespace analog */
} /* namespace gr */

#endif /* INCLUDED_ANALOG_CPFSK_BC_H */