The Inspector (GNU Radio module gr-inspector)
ofdm_synchronizer_cc.h
Go to the documentation of this file.
1 /* -*- c++ -*- */
2 /*
3  * Copyright 2019 Free Software Foundation, Inc..
4  *
5  * This is free software; you can redistribute it and/or modify
6  * it under the terms of the GNU General Public License as published by
7  * the Free Software Foundation; either version 3, or (at your option)
8  * any later version.
9  *
10  * This software is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  * GNU General Public License for more details.
14  *
15  * You should have received a copy of the GNU General Public License
16  * along with this software; see the file COPYING. If not, write to
17  * the Free Software Foundation, Inc., 51 Franklin Street,
18  * Boston, MA 02110-1301, USA.
19  */
20 
21 #ifndef INCLUDED_INSPECTOR_OFDM_SYNCHRONIZER_CC_H
22 #define INCLUDED_INSPECTOR_OFDM_SYNCHRONIZER_CC_H
23 
24 #include <gnuradio/sync_block.h>
25 #include <inspector/api.h>
26 
27 namespace gr {
28 namespace inspector {
29 
30 /*!
31  * \brief OFDM frequency synchronizer and timing estimator
32  * \ingroup inspector
33  *
34  * \details
35  * This block can be inserted downstream to the OFDM parameter
36  * estimation block. It performs a frequency offset estimation and
37  * symbol timing estimation according to [1]. Frequency offsets smaller than the
38  * subcarrier spacing will be corrected to obtain orthogonality of
39  * the carriers. Output is a stream with stream tags at the estimated
40  * OFDM symbol beginnings (PMT symbol "symbol").
41  *
42  * Connect output of OFDM parameter estimator to message port and
43  * signal itself to the stream input.
44  *
45  * [1] J. J. van de Beek, M. Sandell, and P. O. Borjesson,
46  * “ML estimation of time and frequency offset in OFDM systems,”
47  * IEEE Transactions on Signal Processing, vol. 45, no. 7, pp.
48  * 1800–1805, 1997. [Online]. Available:
49  * http://pure.ltu.se/portal/files/1612155/Article.pdf.
50  */
51 class INSPECTOR_API ofdm_synchronizer_cc : virtual public gr::sync_block
52 {
53 public:
54  typedef boost::shared_ptr<ofdm_synchronizer_cc> sptr;
55 
56  /*!
57  * \brief Return a shared_ptr to a new instance of inspector::ofdm_synchronizer_cc.
58  *
59  * To avoid accidental use of raw pointers, inspector::ofdm_synchronizer_cc's
60  * constructor is in a private implementation
61  * class. inspector::ofdm_synchronizer_cc::make is the public interface for
62  * creating new instances.
63  *
64  * \param min_items Set minimum items required for each work call. Should be several
65  * FFT lengths.
66  */
67  static sptr make(int min_items);
68 };
69 
70 } // namespace inspector
71 } // namespace gr
72 
73 #endif /* INCLUDED_INSPECTOR_OFDM_SYNCHRONIZER_CC_H */
#define INSPECTOR_API
Definition: api.h:31
Definition: inspector_form.h:40
boost::shared_ptr< ofdm_synchronizer_cc > sptr
Definition: ofdm_synchronizer_cc.h:54
OFDM frequency synchronizer and timing estimator.
Definition: ofdm_synchronizer_cc.h:51