advanced_receiver_sb_cc_impl.h
Go to the documentation of this file.
/* -*- c++ -*- */
/*
* Copyright 2016 Andrej Rode, 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_ADVANCED_RECEIVER_SB_CC_IMPL_H
#define INCLUDED_GFDM_ADVANCED_RECEIVER_SB_CC_IMPL_H
#include <gfdm/advanced_receiver_sb_cc.h>
#include <gfdm/advanced_receiver_kernel_cc.h>
namespace gr
{
namespace gfdm
{
class advanced_receiver_sb_cc_impl : public advanced_receiver_sb_cc
{
private:
advanced_receiver_kernel_cc::sptr d_adv_kernel;
public:
advanced_receiver_sb_cc_impl(int n_timeslots, int n_subcarriers, int overlap, int ic_iter,
std::vector<gr_complex> frequency_taps,
gr::digital::constellation_sptr constellation,
std::vector<int> subcarrier_map, int do_phase_compensation);
~advanced_receiver_sb_cc_impl();
void set_phase_compensation(int do_phase_compensation){
d_adv_kernel->set_phase_compensation(do_phase_compensation);}
int get_phase_compensation(){return d_adv_kernel->get_phase_compensation();}
void set_ic(int ic_iter)
{ d_adv_kernel->set_ic(ic_iter); }
int get_ic(void)
{ return d_adv_kernel->get_ic(); }
// Where all the action really happens
int work(int noutput_items,
gr_vector_const_void_star &input_items,
gr_vector_void_star &output_items);
};
} // namespace gfdm
} // namespace gr
#endif /* INCLUDED_GFDM_ADVANCED_RECEIVER_SB_CC_IMPL_H */
advanced_receiver_kernel_cc.h
advanced_receiver_sb_cc.h
gr::gfdm::advanced_receiver_kernel_cc::sptr
boost::shared_ptr< advanced_receiver_kernel_cc > sptr
Definition advanced_receiver_kernel_cc.h:39
gr::gfdm::advanced_receiver_sb_cc_impl
Definition advanced_receiver_sb_cc_impl.h:33
gr::gfdm::advanced_receiver_sb_cc_impl::get_phase_compensation
int get_phase_compensation()
Definition advanced_receiver_sb_cc_impl.h:47
gr::gfdm::advanced_receiver_sb_cc_impl::set_ic
void set_ic(int ic_iter)
Definition advanced_receiver_sb_cc_impl.h:49
gr::gfdm::advanced_receiver_sb_cc_impl::~advanced_receiver_sb_cc_impl
~advanced_receiver_sb_cc_impl()
gr::gfdm::advanced_receiver_sb_cc_impl::set_phase_compensation
void set_phase_compensation(int do_phase_compensation)
Definition advanced_receiver_sb_cc_impl.h:45
gr::gfdm::advanced_receiver_sb_cc_impl::get_ic
int get_ic(void)
Definition advanced_receiver_sb_cc_impl.h:52
gr::gfdm::advanced_receiver_sb_cc_impl::work
int work(int noutput_items, gr_vector_const_void_star &input_items, gr_vector_void_star &output_items)
gr::gfdm::advanced_receiver_sb_cc_impl::advanced_receiver_sb_cc_impl
advanced_receiver_sb_cc_impl(int n_timeslots, int n_subcarriers, int overlap, int ic_iter, std::vector< gr_complex > frequency_taps, gr::digital::constellation_sptr constellation, std::vector< int > subcarrier_map, int do_phase_compensation)
gr::gfdm::advanced_receiver_sb_cc
advanced receiver working as sync block
Definition advanced_receiver_sb_cc.h:41
gr
Definition add_cyclic_prefix_cc.h:30