preamble_generator.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_PREAMBLE_GENERATOR_H
#define INCLUDED_GFDM_PREAMBLE_GENERATOR_H
#include <gfdm/api.h>
#include <gfdm/gfdm_utils.h>
#include <gnuradio/fft/fft.h>
#include <gnuradio/gr_complex.h>
#include <boost/enable_shared_from_this.hpp>
#include <volk/volk.h>
namespace gr {
namespace gfdm {
/*!
* \brief <+description+>
*
*/
class preamble_generator;
typedef boost::shared_ptr<preamble_generator> preamble_generator_sptr;
class GFDM_API preamble_generator
: public boost::enable_shared_from_this<preamble_generator>
{
public:
typedef boost::shared_ptr<preamble_generator> sptr;
preamble_generator(int nsubcarrier, double filter_alpha, int sync_fft_len);
~preamble_generator();
std::vector<gr_complex> get_preamble()
{
return d_samp_preamble;
}
std::vector<gr_complex> get_symbol_seq()
{
return d_symbols;
}
preamble_generator_sptr base()
{
return shared_from_this();
}
int get_preamble_len()
{
return d_sync_fft_len;
}
static sptr make(int nsubcarrier, double filter_alpha, int sync_fft_len);
private:
std::vector<gr_complex> d_samp_preamble;
std::vector<gr_complex> d_symbols;
int d_sync_fft_len;
};
} // namespace gfdm
} // namespace gr
#endif /* INCLUDED_GFDM_PREAMBLE_GENERATOR_H */
api.h
GFDM_API
#define GFDM_API
Definition api.h:30
gr::gfdm::preamble_generator
Definition preamble_generator.h:45
gr::gfdm::preamble_generator::get_symbol_seq
std::vector< gr_complex > get_symbol_seq()
Definition preamble_generator.h:54
gr::gfdm::preamble_generator::get_preamble_len
int get_preamble_len()
Definition preamble_generator.h:62
gr::gfdm::preamble_generator::base
preamble_generator_sptr base()
Definition preamble_generator.h:58
gr::gfdm::preamble_generator::preamble_generator
preamble_generator(int nsubcarrier, double filter_alpha, int sync_fft_len)
gr::gfdm::preamble_generator::sptr
boost::shared_ptr< preamble_generator > sptr
Definition preamble_generator.h:47
gr::gfdm::preamble_generator::get_preamble
std::vector< gr_complex > get_preamble()
Definition preamble_generator.h:50
gr::gfdm::preamble_generator::make
static sptr make(int nsubcarrier, double filter_alpha, int sync_fft_len)
gr::gfdm::preamble_generator::~preamble_generator
~preamble_generator()
gfdm_utils.h
gr
Definition add_cyclic_prefix_cc.h:30