pre_decoder_vcvc_impl.h
Go to the documentation of this file.
/* -*- c++ -*- */
/*
* Copyright 2014 Communications Engineering Lab (CEL) / Karlsruhe Institute of Technology (KIT)
*
* 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_LTE_PRE_DECODER_VCVC_IMPL_H
#define INCLUDED_LTE_PRE_DECODER_VCVC_IMPL_H
#include <lte/pre_decoder_vcvc.h>
namespace gr {
namespace lte {
class pre_decoder_vcvc_impl : public pre_decoder_vcvc
{
private:
int d_N_ant;
int d_rxant;
int d_vlen;
std::string d_style;
void handle_msg(pmt::pmt_t msg);
void decode_1_ant(gr_complex* out, const gr_complex* rx, const gr_complex* h, int len);
void prepare_2_ant_vectors(gr_complex* h0,
gr_complex* h1,
gr_complex* r0,
gr_complex* r1,
const gr_complex* rx,
const gr_complex* ce0,
const gr_complex* ce1,
int len);
void decode_2_ant(gr_complex* out0,
gr_complex* out1,
gr_complex* h0,
gr_complex* h1,
gr_complex* r0,
gr_complex* r1,
const gr_complex* rx,
const gr_complex* ce0,
const gr_complex* ce1,
int len);
void prepare_4_ant_vectors(gr_complex* rx0,
const gr_complex* rx,
int len);
void decode_4_ant(gr_complex* out0,
gr_complex* out1,
gr_complex* out2,
gr_complex* out3,
gr_complex* h0,
gr_complex* h1,
gr_complex* r0,
gr_complex* r1,
gr_complex* rx_buf,
gr_complex* ce0_buf,
gr_complex* ce1_buf,
gr_complex* ce2_buf,
gr_complex* ce3_buf,
const gr_complex* rx,
const gr_complex* ce0,
const gr_complex* ce1,
const gr_complex* ce2,
const gr_complex* ce3,
int len);
void combine_output(gr_complex* out,
gr_complex* out0,
gr_complex* out1,
int len);
gr_complex* d_h0;
gr_complex* d_h1;
gr_complex* d_r0;
gr_complex* d_r1;
gr_complex* d_out;
gr_complex* d_out0;
gr_complex* d_out1;
gr_complex* d_out2;
gr_complex* d_out3;
gr_complex* d_mult0;
gr_complex* d_mult1;
gr_complex* d_rx0;
gr_complex* d_ce0;
gr_complex* d_ce1;
gr_complex* d_ce2;
gr_complex* d_ce3;
float* d_mag;
float* d_mag_h;
void setup_volk_vectors(int len);
public:
pre_decoder_vcvc_impl(int rxant, int N_ant, int vlen, std::string style);
~pre_decoder_vcvc_impl();
// Where all the action really happens
int work(int noutput_items,
gr_vector_const_void_star &input_items,
gr_vector_void_star &output_items);
void set_N_ant(int N_ant);
int get_N_ant(){return d_N_ant;}
void set_decoding_style(std::string style);
std::string get_decoding_style(){return d_style;}
};
} // namespace lte
} // namespace gr
#endif /* INCLUDED_LTE_PRE_DECODER_VCVC_IMPL_H */
gr::lte::pre_decoder_vcvc_impl
Definition pre_decoder_vcvc_impl.h:30
gr::lte::pre_decoder_vcvc_impl::get_decoding_style
std::string get_decoding_style()
Definition pre_decoder_vcvc_impl.h:125
gr::lte::pre_decoder_vcvc_impl::~pre_decoder_vcvc_impl
~pre_decoder_vcvc_impl()
gr::lte::pre_decoder_vcvc_impl::work
int work(int noutput_items, gr_vector_const_void_star &input_items, gr_vector_void_star &output_items)
gr::lte::pre_decoder_vcvc_impl::pre_decoder_vcvc_impl
pre_decoder_vcvc_impl(int rxant, int N_ant, int vlen, std::string style)
gr::lte::pre_decoder_vcvc_impl::set_N_ant
void set_N_ant(int N_ant)
gr::lte::pre_decoder_vcvc_impl::set_decoding_style
void set_decoding_style(std::string style)
gr::lte::pre_decoder_vcvc_impl::get_N_ant
int get_N_ant()
Definition pre_decoder_vcvc_impl.h:123
gr::lte::pre_decoder_vcvc
Pre Decoder for LTE.
Definition pre_decoder_vcvc.h:698
gr
Definition bch_crc_check_ant_chooser_bb.h:28
pre_decoder_vcvc.h