GNU Radio's GFDM Package
transmitter_kernel.h
Go to the documentation of this file.
1/* -*- c++ -*- */
2/*
3 * Copyright 2018 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_TRANSMITTER_KERNEL_H
23#define INCLUDED_GFDM_TRANSMITTER_KERNEL_H
24
25#include <gfdm/api.h>
26#include "gfdm_kernel_utils.h"
30
31namespace gr {
32 namespace gfdm {
33
34 /*!
35 * \brief <+description+>
36 *
37 */
39 {
40 public:
42 typedef boost::shared_ptr<transmitter_kernel> sptr;
43
44 transmitter_kernel(int timeslots, int subcarriers, int active_subcarriers,
45 int cp_len, int cs_len, int ramp_len,
46 std::vector<int> subcarrier_map, bool per_timeslot,
47 int overlap, std::vector<gfdm_complex> frequency_taps,
48 std::vector<gfdm_complex> window_taps,
49 std::vector<gfdm_complex> preamble);
51
52 int input_vector_size() {return d_mapper->input_vector_size();}
53 int output_vector_size() {return d_prefixer->frame_size() + d_preamble.size();}
54 void generic_work(gfdm_complex* p_out, const gfdm_complex* p_in, const int ninput_size);
55
56 private:
58 modulator_kernel_cc::sptr d_modulator;
60
61 gfdm_complex* d_mapped;
62 gfdm_complex* d_frame;
63 std::vector<gfdm_complex> d_preamble;
64 };
65
66 } // namespace gfdm
67} // namespace gr
68
69#endif /* INCLUDED_GFDM_TRANSMITTER_KERNEL_H */
70
#define GFDM_API
Definition api.h:30
boost::shared_ptr< add_cyclic_prefix_cc > sptr
Definition add_cyclic_prefix_cc.h:42
std::complex< float > gfdm_complex
Definition gfdm_kernel_utils.h:42
boost::shared_ptr< modulator_kernel_cc > sptr
Definition modulator_kernel_cc.h:44
boost::shared_ptr< resource_mapper_kernel_cc > sptr
Definition resource_mapper_kernel_cc.h:42
<+description+>
Definition transmitter_kernel.h:39
int output_vector_size()
Definition transmitter_kernel.h:53
transmitter_kernel(int timeslots, int subcarriers, int active_subcarriers, int cp_len, int cs_len, int ramp_len, std::vector< int > subcarrier_map, bool per_timeslot, int overlap, std::vector< gfdm_complex > frequency_taps, std::vector< gfdm_complex > window_taps, std::vector< gfdm_complex > preamble)
void generic_work(gfdm_complex *p_out, const gfdm_complex *p_in, const int ninput_size)
boost::shared_ptr< transmitter_kernel > sptr
Definition transmitter_kernel.h:42
int input_vector_size()
Definition transmitter_kernel.h:52
gr::gfdm::gfdm_kernel_utils::gfdm_complex gfdm_complex
Definition transmitter_kernel.h:41
Definition add_cyclic_prefix_cc.h:30