GNU Radio's GFDM Package
add_cyclic_prefix_cc.h
Go to the documentation of this file.
1/* -*- c++ -*- */
2/*
3 * Copyright 2016 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
22#ifndef INCLUDED_GFDM_ADD_CYCLIC_PREFIX_CC_H
23#define INCLUDED_GFDM_ADD_CYCLIC_PREFIX_CC_H
24
25#include <stdexcept>
26#include <complex>
27#include <vector>
28#include <boost/shared_ptr.hpp>
29
30namespace gr {
31 namespace gfdm {
32
33 /*!
34 * \brief Kernel adds cyclic prefix to GFDM frame and applies block pinching window.
35 *
36 */
37// class GFDM_API add_cyclic_prefix_cc
39 {
40 public:
41 typedef std::complex<float> gfdm_complex;
42 typedef boost::shared_ptr<add_cyclic_prefix_cc> sptr;
43
44 add_cyclic_prefix_cc(int block_len, int cp_len, int cs_len, int ramp_len, std::vector<gfdm_complex> window_taps);
46 void generic_work(gfdm_complex* p_out, const gfdm_complex* p_in);
47 int block_size(){ return d_block_len;};
48 int frame_size(){ return block_size() + d_cp_len + d_cs_len;};
49 private:
50 int d_block_len;
51 int d_cp_len;
52 int d_cs_len;
53 int d_ramp_len;
54
55 gfdm_complex* d_front_ramp;
56 gfdm_complex* d_back_ramp;
57 };
58
59 } // namespace gfdm
60} // namespace gr
61
62#endif /* INCLUDED_GFDM_ADD_CYCLIC_PREFIX_CC_H */
63
Kernel adds cyclic prefix to GFDM frame and applies block pinching window.
Definition: add_cyclic_prefix_cc.h:39
boost::shared_ptr< add_cyclic_prefix_cc > sptr
Definition: add_cyclic_prefix_cc.h:42
void generic_work(gfdm_complex *p_out, const gfdm_complex *p_in)
int frame_size()
Definition: add_cyclic_prefix_cc.h:48
std::complex< float > gfdm_complex
Definition: add_cyclic_prefix_cc.h:41
add_cyclic_prefix_cc(int block_len, int cp_len, int cs_len, int ramp_len, std::vector< gfdm_complex > window_taps)
int block_size()
Definition: add_cyclic_prefix_cc.h:47
Definition: add_cyclic_prefix_cc.h:30