GNU Radio's GFDM Package
sync_cc_impl.h
Go to the documentation of this file.
1/* -*- c++ -*- */
2/*
3 * Copyright 2016 Andrej Rode.
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_GFDM_SYNC_CC_IMPL_H
22#define INCLUDED_GFDM_SYNC_CC_IMPL_H
23
24#include <gfdm/sync_cc.h>
25#include <volk/volk.h>
26#include <pmt/pmt.h>
28
29namespace gr {
30 namespace gfdm {
31
32 class sync_cc_impl : public sync_cc
33 {
34 private:
35 bool d_is_at_frame_start;
36 int d_sync_fft_len;
37 int d_block_len;
38 std::vector<gr_complex> d_known_preamble;
39 std::string d_gfdm_tag_key;
40
42
43 void produce_output_frame(gr_complex* outbuf, const gr_complex*inbuf);
44
45 public:
46 sync_cc_impl(int n_subcarriers, int cp_length, int frame_len, std::vector<gr_complex> preamble,
47 const std::string &gfdm_tag_key);
49
50 // Where all the action really happens
51 void forecast (int noutput_items, gr_vector_int &ninput_items_required);
52
53 int general_work(int noutput_items,
54 gr_vector_int &ninput_items,
55 gr_vector_const_void_star &input_items,
56 gr_vector_void_star &output_items);
57 };
58
59 } // namespace gfdm
60} // namespace gr
61
62#endif /* INCLUDED_GFDM_SYNC_CC_IMPL_H */
63
Perform STO/CFO synchronization for multicarrier systems Compare: Awoseyila et. al....
Definition improved_sync_algorithm_kernel_cc.h:41
Definition sync_cc_impl.h:33
sync_cc_impl(int n_subcarriers, int cp_length, int frame_len, std::vector< gr_complex > preamble, const std::string &gfdm_tag_key)
void forecast(int noutput_items, gr_vector_int &ninput_items_required)
int general_work(int noutput_items, gr_vector_int &ninput_items, gr_vector_const_void_star &input_items, gr_vector_void_star &output_items)
<+description of block+>
Definition sync_cc.h:38
Definition add_cyclic_prefix_cc.h:30