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