The Inspector (GNU Radio module gr-inspector)
ofdm_synchronizer_cc_impl.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_IMPL_H
22 #define INCLUDED_INSPECTOR_OFDM_SYNCHRONIZER_CC_IMPL_H
23 
24 #include <gnuradio/blocks/rotator.h>
26 
27 namespace gr {
28 namespace inspector {
29 
31 {
32 private:
33  int d_fft_len, d_cp_len, d_tag_pos, d_min_items;
34  bool d_msg_received;
35  blocks::rotator d_rotator;
36  gr::thread::mutex d_mutex;
37 
38 public:
39  ofdm_synchronizer_cc_impl(int min_items);
41 
42  void handle_msg(pmt::pmt_t msg);
43  std::vector<gr_complex> autocorr(const gr_complex* in, int len);
44 
45  // Where all the action really happens
46  int work(int noutput_items,
47  gr_vector_const_void_star& input_items,
48  gr_vector_void_star& output_items);
49 };
50 
51 } // namespace inspector
52 } // namespace gr
53 
54 #endif /* INCLUDED_INSPECTOR_OFDM_SYNCHRONIZER_CC_IMPL_H */
int work(int noutput_items, gr_vector_const_void_star &input_items, gr_vector_void_star &output_items)
std::vector< gr_complex > autocorr(const gr_complex *in, int len)
Definition: inspector_form.h:40
Definition: ofdm_synchronizer_cc_impl.h:30
OFDM frequency synchronizer and timing estimator.
Definition: ofdm_synchronizer_cc.h:51