GNU Radio 3.6.5.1 C++ API
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  * GNU Radio is free software; you can redistribute it and/or modify
8  * it under the terms of the GNU General Public License as published by
9  * the Free Software Foundation; either version 3, or (at your option)
10  * any later version.
11  *
12  * GNU Radio is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  * GNU General Public License for more details.
16  *
17  * You should have received a copy of the GNU General Public License
18  * along with GNU Radio; see the file COPYING. If not, write to
19  * the Free Software Foundation, Inc., 51 Franklin Street,
20  * Boston, MA 02110-1301, USA.
21  */
22 
23 #ifndef INCLUDED_ANALOG_FMDET_CF_H
24 #define INCLUDED_ANALOG_FMDET_CF_H
25 
26 #include <analog/api.h>
27 #include <gr_sync_block.h>
28 
29 namespace gr {
30  namespace analog {
31 
32  /*!
33  * \brief Implements an IQ slope detector
34  *
35  * \details
36  * input: stream of complex; output: stream of floats
37  *
38  * This implements a limiting slope detector. The limiter is in
39  * the normalization by the magnitude of the sample
40  */
41  class ANALOG_API fmdet_cf : virtual public gr_sync_block
42  {
43  public:
44  // gr::analog::fmdet_cf::sptr
46 
47  /*!
48  * \brief Make FM detector block.
49  *
50  * \param samplerate sample rate of signal (is not used; to be removed)
51  * \param freq_low lowest frequency of signal (Hz)
52  * \param freq_high highest frequency of signal (Hz)
53  * \param scl scale factor
54  */
55  static sptr make(float samplerate, float freq_low,
56  float freq_high, float scl);
57 
58  virtual void set_scale(float scl) = 0;
59  virtual void set_freq_range(float freq_low, float freq_high) = 0;
60 
61  virtual float freq() const = 0;
62  virtual float freq_high() const = 0;
63  virtual float freq_low() const = 0;
64  virtual float scale() const = 0;
65  virtual float bias() const = 0;
66  };
67 
68  } /* namespace analog */
69 } /* namespace gr */
70 
71 #endif /* INCLUDED_ANALOG_FMDET_CF_H */