The Inspector (GNU Radio module gr-inspector)
ofdm_zkf_c.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_ZKF_C_H
22 #define INCLUDED_INSPECTOR_OFDM_ZKF_C_H
23 
24 #include <gnuradio/sync_block.h>
25 #include <inspector/api.h>
26 
27 namespace gr {
28 namespace inspector {
29 
30 /*!
31  * \brief Parameter estimation block for OFDM signals
32  * \ingroup inspector
33  *
34  * \details
35  * This block performs a parameter estimation of an input OFDM signal.
36  * Parameters that get estimated are FFT length, cyclic prefix length,
37  * symbol time and subcarrier spacing. For the estimation, the algorithm
38  * in [1] is used. Input is a complex stream, output is a message as
39  * tupel of tupels containing analysis results description and values.
40  *
41  * [1] S. Koslowski, "Implementierung eines OFDM-Merkmalsklassifikators in einer
42  * SCA-Umgebung," Diploma Thesis, Karlsruhe Institute of Technology, 2011.
43  */
44 class INSPECTOR_API ofdm_zkf_c : virtual public gr::sync_block
45 {
46 public:
47  typedef boost::shared_ptr<ofdm_zkf_c> sptr;
48 
49  /*!
50  * \brief Return a shared_ptr to a new instance of inspector::ofdm_zkf_c.
51  *
52  * \param samp_rate The samples rate of the input signal
53  * \param signal The number of the analyzed signal
54  * \param min_items Set minimum items required for each work call. Should be several
55  * FFT lengths. \param typ_len Typical FFT lengths to search for. Can also be set to a
56  * fine grid when no knowledge about the signal is present. \param typ_cp Typical
57  * cyclic prefix lengths to search for. Can also be set to a fine grid when no
58  * knowledge about the signal is present.
59  */
60  static sptr make(double samp_rate,
61  int signal,
62  int min_items,
63  const std::vector<int>& typ_len,
64  const std::vector<int>& typ_cp);
65  virtual void set_samp_rate(double d_samp_rate) = 0;
66 };
67 
68 } // namespace inspector
69 } // namespace gr
70 
71 #endif /* INCLUDED_INSPECTOR_OFDM_ZKF_C_H */
Parameter estimation block for OFDM signals.
Definition: ofdm_zkf_c.h:44
#define INSPECTOR_API
Definition: api.h:31
boost::shared_ptr< ofdm_zkf_c > sptr
Definition: ofdm_zkf_c.h:47
Definition: inspector_form.h:40