sync_cc_impl.h
Go to the documentation of this file.
/* -*- c++ -*- */
/*
* Copyright 2016 Andrej Rode.
*
* 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_SYNC_CC_IMPL_H
#define INCLUDED_GFDM_SYNC_CC_IMPL_H
#include <gfdm/sync_cc.h>
#include <volk/volk.h>
#include <pmt/pmt.h>
#include <gfdm/improved_sync_algorithm_kernel_cc.h>
namespace gr {
namespace gfdm {
class sync_cc_impl : public sync_cc
{
private:
bool d_is_at_frame_start;
int d_sync_fft_len;
int d_block_len;
std::vector<gr_complex> d_known_preamble;
std::string d_gfdm_tag_key;
improved_sync_algorithm_kernel_cc* d_kernel;
void produce_output_frame(gr_complex* outbuf, const gr_complex*inbuf);
public:
sync_cc_impl(int n_subcarriers, int cp_length, int frame_len, std::vector<gr_complex> preamble,
const std::string &gfdm_tag_key);
~sync_cc_impl();
// Where all the action really happens
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);
};
} // namespace gfdm
} // namespace gr
#endif /* INCLUDED_GFDM_SYNC_CC_IMPL_H */
gr::gfdm::improved_sync_algorithm_kernel_cc
Perform STO/CFO synchronization for multicarrier systems Compare: Awoseyila et. al....
Definition improved_sync_algorithm_kernel_cc.h:41
gr::gfdm::sync_cc_impl
Definition sync_cc_impl.h:33
gr::gfdm::sync_cc_impl::sync_cc_impl
sync_cc_impl(int n_subcarriers, int cp_length, int frame_len, std::vector< gr_complex > preamble, const std::string &gfdm_tag_key)
gr::gfdm::sync_cc_impl::forecast
void forecast(int noutput_items, gr_vector_int &ninput_items_required)
gr::gfdm::sync_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::sync_cc_impl::~sync_cc_impl
~sync_cc_impl()
gr::gfdm::sync_cc
<+description of block+>
Definition sync_cc.h:38
improved_sync_algorithm_kernel_cc.h
gr
Definition add_cyclic_prefix_cc.h:30
sync_cc.h