transmitter_cc_impl.h
Go to the documentation of this file.
/* -*- c++ -*- */
/*
* Copyright 2018 Johannes Demel.
*
* This is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3, or (at your option)
* any later version.
*
* This software is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this software; see the file COPYING. If not, write to
* the Free Software Foundation, Inc., 51 Franklin Street,
* Boston, MA 02110-1301, USA.
*/
#ifndef INCLUDED_GFDM_TRANSMITTER_CC_IMPL_H
#define INCLUDED_GFDM_TRANSMITTER_CC_IMPL_H
#include <gfdm/transmitter_cc.h>
#include <gfdm/transmitter_kernel.h>
namespace gr {
namespace gfdm {
class transmitter_cc_impl : public transmitter_cc
{
private:
transmitter_kernel::sptr d_kernel;
std::string d_length_tag_key_str;
pmt::pmt_t d_length_tag_key;
public:
transmitter_cc_impl(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<gr_complex> frequency_taps,
std::vector<gr_complex> window_taps,
std::vector<gr_complex> preamble,
const std::string &tsb_tag_key="");
~transmitter_cc_impl();
// Where all the action really happens
void forecast (int noutput_items, gr_vector_int &ninput_items_required);
int fixed_rate_ninput_to_noutput(int ninput);
int fixed_rate_noutput_to_ninput(int noutput);
int general_work(int noutput_items,
gr_vector_int &ninput_items,
gr_vector_const_void_star &input_items,
gr_vector_void_star &output_items);
};
} // namespace gfdm
} // namespace gr
#endif /* INCLUDED_GFDM_TRANSMITTER_CC_IMPL_H */
gr::gfdm::transmitter_cc_impl
Definition transmitter_cc_impl.h:31
gr::gfdm::transmitter_cc_impl::transmitter_cc_impl
transmitter_cc_impl(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< gr_complex > frequency_taps, std::vector< gr_complex > window_taps, std::vector< gr_complex > preamble, const std::string &tsb_tag_key="")
gr::gfdm::transmitter_cc_impl::general_work
int general_work(int noutput_items, gr_vector_int &ninput_items, gr_vector_const_void_star &input_items, gr_vector_void_star &output_items)
gr::gfdm::transmitter_cc_impl::~transmitter_cc_impl
~transmitter_cc_impl()
gr::gfdm::transmitter_cc_impl::fixed_rate_ninput_to_noutput
int fixed_rate_ninput_to_noutput(int ninput)
gr::gfdm::transmitter_cc_impl::forecast
void forecast(int noutput_items, gr_vector_int &ninput_items_required)
gr::gfdm::transmitter_cc_impl::fixed_rate_noutput_to_ninput
int fixed_rate_noutput_to_ninput(int noutput)
gr::gfdm::transmitter_cc
<+description of block+>
Definition transmitter_cc.h:37
gr::gfdm::transmitter_kernel::sptr
boost::shared_ptr< transmitter_kernel > sptr
Definition transmitter_kernel.h:42
gr
Definition add_cyclic_prefix_cc.h:30
transmitter_cc.h
transmitter_kernel.h