GNU Radio Manual and C++ API Reference 3.10.5.1
The Free & Open Software Radio Ecosystem
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 */
30class 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 */
Implements an IQ slope detector.
Definition: fmdet_cf.h:31
virtual float bias() const =0
static sptr make(float samplerate, float freq_low, float freq_high, float scl)
Make FM detector block.
virtual void set_scale(float scl)=0
std::shared_ptr< fmdet_cf > sptr
Definition: fmdet_cf.h:34
virtual float scale() const =0
virtual float freq() const =0
virtual float freq_high() const =0
virtual void set_freq_range(float freq_low, float freq_high)=0
virtual float freq_low() const =0
synchronous 1:1 input to output with history
Definition: sync_block.h:26
#define ANALOG_API
Definition: gr-analog/include/gnuradio/analog/api.h:18
GNU Radio logging wrapper.
Definition: basic_block.h:29