GNU Radio C++ API Reference: fmdet_cf.h Source File

| GNU Radio C++ API Reference 3.10.12.0 The Free & Open Software Radio Ecosystem |

Loading...
Searching...
No Matches
fmdet_cf.h
Go to the documentation of this file.
1/* -*- c++ -*- */
2/*
3 * Copyright 2008,2012 Free Software Foundation, Inc.
4 *
5 * This file is part of GNU Radio
6 *
7 * SPDX-License-Identifier: GPL-3.0-or-later
8 *
9 */
10
11#ifndef INCLUDED_ANALOG_FMDET_CF_H
12#define INCLUDED_ANALOG_FMDET_CF_H
13
14#include <gnuradio/analog/api.h>
15#include <gnuradio/sync_block.h>
16
17namespace gr {
18namespace analog {
19
20/*!
21 * \brief Implements an IQ slope detector
22 * \ingroup modulators_blk
23 *
24 * \details
25 * input: stream of complex; output: stream of floats
26 *
27 * This implements a limiting slope detector. The limiter is in
28 * the normalization by the magnitude of the sample
29 */
30 class ANALOG_API fmdet_cf : virtual public sync_block
31{
32public:
33 // gr::analog::fmdet_cf::sptr
34 typedef std::shared_ptr<fmdet_cf> sptr;
35
36 /*!
37 * \brief Make FM detector block.
38 *
39 * \param samplerate sample rate of signal (is not used; to be removed)
40 * \param freq_low lowest frequency of signal (Hz)
41 * \param freq_high highest frequency of signal (Hz)
42 * \param scl scale factor
43 */
44 static sptr make(float samplerate, float freq_low, float freq_high, float scl);
45
46 virtual void set_scale(float scl) = 0;
47 virtual void set_freq_range(float freq_low, float freq_high) = 0;
48
49 virtual float freq() const = 0;
50 virtual float freq_high() const = 0;
51 virtual float freq_low() const = 0;
52 virtual float scale() const = 0;
53 virtual float bias() const = 0;
54};
55
56} /* namespace analog */
57} /* namespace gr */
58
59#endif /* INCLUDED_ANALOG_FMDET_CF_H */
gr::analog::fmdet_cf
Implements an IQ slope detector.
Definition fmdet_cf.h:31
gr::analog::fmdet_cf::bias
virtual float bias() const =0
gr::analog::fmdet_cf::make
static sptr make(float samplerate, float freq_low, float freq_high, float scl)
Make FM detector block.
gr::analog::fmdet_cf::set_scale
virtual void set_scale(float scl)=0
gr::analog::fmdet_cf::sptr
std::shared_ptr< fmdet_cf > sptr
Definition fmdet_cf.h:34
gr::analog::fmdet_cf::scale
virtual float scale() const =0
gr::analog::fmdet_cf::freq
virtual float freq() const =0
gr::analog::fmdet_cf::freq_high
virtual float freq_high() const =0
gr::analog::fmdet_cf::set_freq_range
virtual void set_freq_range(float freq_low, float freq_high)=0
gr::analog::fmdet_cf::freq_low
virtual float freq_low() const =0
gr::sync_block::sync_block
sync_block(void)
Definition sync_block.h:28
api.h
ANALOG_API
#define ANALOG_API
Definition gr-analog/include/gnuradio/analog/api.h:18
gr::analog
Definition agc.h:19
gr
GNU Radio logging wrapper.
Definition basic_block.h:29
sync_block.h