GNU Radio Manual and C++ API Reference  3.7.4
The Free & Open Software Radio Ecosystem
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
clock_recovery_mm_cc.h
Go to the documentation of this file.
1 /* -*- c++ -*- */
2 /*
3  * Copyright 2004,2011,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_DIGITAL_CLOCK_RECOVERY_MM_CC_H
24 #define INCLUDED_DIGITAL_CLOCK_RECOVERY_MM_CC_H
25 
26 #include <gnuradio/digital/api.h>
27 #include <gnuradio/block.h>
28 
29 namespace gr {
30  namespace digital {
31 
32  /*!
33  * \brief Mueller and Müller (M&M) based clock recovery block with complex input, complex output.
34  * \ingroup synchronizers_blk
35  *
36  * \details
37  * This implements the Mueller and Müller (M&M) discrete-time
38  * error-tracking synchronizer.
39  *
40  * The complex version here is based on: Modified Mueller and
41  * Muller clock recovery circuit:
42  *
43  * G. R. Danesfahani, T.G. Jeans, "Optimisation of modified Mueller
44  * and Muller algorithm," Electronics Letters, Vol. 31, no. 13, 22
45  * June 1995, pp. 1032 - 1033.
46  */
47  class DIGITAL_API clock_recovery_mm_cc : virtual public block
48  {
49  public:
50  // gr::digital::clock_recovery_mm_cc::sptr
52 
53  /*!
54  * Make a M&M clock recovery block.
55  *
56  * \param omega Initial estimate of samples per symbol
57  * \param gain_omega Gain setting for omega update loop
58  * \param mu Initial estimate of phase of sample
59  * \param gain_mu Gain setting for mu update loop
60  * \param omega_relative_limit limit on omega
61  */
62  static sptr make(float omega, float gain_omega,
63  float mu, float gain_mu,
64  float omega_relative_limit);
65 
66  virtual float mu() const = 0;
67  virtual float omega() const = 0;
68  virtual float gain_mu() const = 0;
69  virtual float gain_omega() const = 0;
70 
71  virtual void set_verbose(bool verbose) = 0;
72  virtual void set_gain_mu (float gain_mu) = 0;
73  virtual void set_gain_omega (float gain_omega) = 0;
74  virtual void set_mu (float mu) = 0;
75  virtual void set_omega (float omega) = 0;
76  };
77 
78  } /* namespace digital */
79 } /* namespace gr */
80 
81 #endif /* INCLUDED_DIGITAL_CLOCK_RECOVERY_MM_CC_H */
#define DIGITAL_API
Definition: gr-digital/include/gnuradio/digital/api.h:30
shared_ptr documentation stub
Definition: shared_ptr_docstub.h:15
Mueller and Müller (M&M) based clock recovery block with complex input, complex output.
Definition: clock_recovery_mm_cc.h:47
boost::shared_ptr< clock_recovery_mm_cc > sptr
Definition: clock_recovery_mm_cc.h:51
The abstract base class for all 'terminal' processing blocks.A signal processing flow is constructed ...
Definition: block.h:60