GNU Radio 3.7.2 C++ API
constellation_receiver_cb.h
Go to the documentation of this file.
1 /* -*- c++ -*- */
2 /*
3  * Copyright 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_CONSTELLATION_RECEIVER_CB_H
24 #define INCLUDED_DIGITAL_CONSTELLATION_RECEIVER_CB_H
25 
26 #include <gnuradio/digital/api.h>
28 #include <gnuradio/block.h>
29 
30 namespace gr {
31  namespace digital {
32 
33  /*!
34  * \brief This block makes hard decisions about the received
35  * symbols (using a constellation object) and also fine tunes
36  * phase synchronization.
37  *
38  * \details
39  *
40  * The phase and frequency synchronization are based on a Costas
41  * loop that finds the error of the incoming signal point compared
42  * to its nearest constellation point. The frequency and phase of
43  * the NCO are updated according to this error.
44  */
46  : virtual public block
47  {
48  public:
49  // gr::digital::constellation_receiver_cb::sptr
51 
52  /*!
53  * \brief Constructs a constellation receiver that (phase/fine
54  * freq) synchronizes and decodes constellation points specified
55  * by a constellation object.
56  *
57  * \param constellation constellation of points for generic modulation
58  * \param loop_bw Loop bandwidth of the Costas Loop (~ 2pi/100)
59  * \param fmin minimum normalized frequency value the loop can achieve
60  * \param fmax maximum normalized frequency value the loop can achieve
61  */
63  float loop_bw, float fmin, float fmax);
64 
65  virtual void phase_error_tracking(float phase_error) = 0;
66  };
67 
68  } /* namespace digital */
69 } /* namespace gr */
70 
71 #endif /* INCLUDED_DIGITAL_CONSTELLATION_RECEIVER_CB_H */
This block makes hard decisions about the received symbols (using a constellation object) and also fi...
Definition: constellation_receiver_cb.h:45
An abstracted constellation object.
Definition: constellation.h:62
#define DIGITAL_API
Definition: gr-digital/include/gnuradio/digital/api.h:30
shared_ptr documentation stub
Definition: shared_ptr_docstub.h:15
The abstract base class for all 'terminal' processing blocks.A signal processing flow is constructed ...
Definition: block.h:60
boost::shared_ptr< constellation_receiver_cb > sptr
Definition: constellation_receiver_cb.h:50