gr-baz Package
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  * input: stream of complex; output: stream of floats
36  *
37  * This implements a limiting slope detector. The limiter is in
38  * the normalization by the magnitude of the sample
39  */
40  class ANALOG_API fmdet_cf : virtual public gr_sync_block
41  {
42  public:
43  // gr::analog::fmdet_cf::sptr
45 
46  /*!
47  * \brief Make FM detector block.
48  *
49  * \param samplerate sample rate of signal (is not used; to be removed)
50  * \param freq_low lowest frequency of signal (Hz)
51  * \param freq_high highest frequency of signal (Hz)
52  * \param scl scale factor
53  */
54  static sptr make(float samplerate, float freq_low,
55  float freq_high, float scl);
56 
57  virtual void set_scale(float scl) = 0;
58  virtual void set_freq_range(float freq_low, float freq_high) = 0;
59 
60  virtual float freq() const = 0;
61  virtual float freq_high() const = 0;
62  virtual float freq_low() const = 0;
63  virtual float scale() const = 0;
64  virtual float bias() const = 0;
65  };
66 
67  } /* namespace analog */
68 } /* namespace gr */
69 
70 #endif /* INCLUDED_ANALOG_FMDET_CF_H */