GNU Radio's GFDM Package
extract_burst_cc_impl.h
Go to the documentation of this file.
1/* -*- c++ -*- */
2/*
3 * Copyright 2017 Johannes Demel.
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_EXTRACT_BURST_CC_IMPL_H
22#define INCLUDED_GFDM_EXTRACT_BURST_CC_IMPL_H
23
25
26namespace gr {
27 namespace gfdm {
28
30 {
31 private:
32 int d_burst_len;
33 int d_tag_backoff;
34 pmt::pmt_t d_burst_start_tag;
35 bool d_activate_cfo_correction;
36
37 float get_scale_factor(pmt::pmt_t info);
38 gr_complex get_phase_rotation(pmt::pmt_t info);
39 void normalize_power_level(gr_complex* p_out, const gr_complex* p_in, const float norm_factor, const int ninput_size);
40 void compensate_cfo(gr_complex* p_out, const gr_complex* p_in, const gr_complex phase_increment, const int ninput_size);
41
42 public:
43 extract_burst_cc_impl(int burst_len, int tag_backoff, std::string burst_start_tag,
44 bool activate_cfo_correction);
46
47 // Where all the action really happens
48 void forecast (int noutput_items, gr_vector_int &ninput_items_required);
49
51
52 int general_work(int noutput_items,
53 gr_vector_int &ninput_items,
54 gr_vector_const_void_star &input_items,
55 gr_vector_void_star &output_items);
56 };
57
58 } // namespace gfdm
59} // namespace gr
60
61#endif /* INCLUDED_GFDM_EXTRACT_BURST_CC_IMPL_H */
62
Definition: extract_burst_cc_impl.h:30
extract_burst_cc_impl(int burst_len, int tag_backoff, std::string burst_start_tag, bool activate_cfo_correction)
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)
void activate_cfo_compensation(bool activate_cfo_compensation)
Definition: extract_burst_cc_impl.h:50
<+description of block+>
Definition: extract_burst_cc.h:37
Definition: add_cyclic_prefix_cc.h:30