GNU Radio 3.7.1-24 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
>
27
#include <
gnuradio/digital/constellation.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
*/
45
class
DIGITAL_API
constellation_receiver_cb
46
:
virtual
public
block
47
{
48
public
:
49
// gr::digital::constellation_receiver_cb::sptr
50
typedef
boost::shared_ptr<constellation_receiver_cb>
sptr
;
51
52
/*!
53
* \brief Constructor to synchronize incoming M-PSK symbols
54
*
55
* \param constellation constellation of points for generic modulation
56
* \param loop_bw Loop bandwidth of the Costas Loop (~ 2pi/100)
57
* \param fmin minimum normalized frequency value the loop can achieve
58
* \param fmax maximum normalized frequency value the loop can achieve
59
*
60
* The constructor chooses which phase detector and decision
61
* maker to use in the work loop based on the value of M.
62
*/
63
static
sptr
make(
constellation_sptr
constellation
,
64
float
loop_bw,
float
fmin,
float
fmax);
65
66
virtual
void
phase_error_tracking(
float
phase_error) = 0;
67
};
68
69
}
/* namespace digital */
70
}
/* namespace gr */
71
72
#endif
/* INCLUDED_DIGITAL_CONSTELLATION_RECEIVER_CB_H */
gnuradio
gr-digital
include
gnuradio
digital
constellation_receiver_cb.h
Generated by
1.8.3.1