mimo_remove_cp_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_MIMO_REMOVE_CP_IMPL_H
#define INCLUDED_LTE_MIMO_REMOVE_CP_IMPL_H
#include <lte/mimo_remove_cp.h>
namespace gr {
namespace lte {
struct sym_info{
int num;
int dump;
};
enum sync_state{UNSYNCED, FOUND_HALF_FRAME_START, SYNCED};
class mimo_remove_cp_impl: public mimo_remove_cp{
private:
int d_fftl;
int d_rxant;
int d_cpl;
int d_cpl0;
int d_slotl;
int d_symb; //symbol number within slot
int d_sym_num; //symbol number within frame
int d_symbols_per_frame;
pmt::pmt_t d_key;
pmt::pmt_t d_tag_id;
long d_work_call;
bool d_found_frame_start;
long d_half_frame_start;
sync_state d_state;
long copy_samples_from_in_to_out(gr_vector_void_star &output_items,
const gr_vector_const_void_star &input_items, int noutput_items,
int sync_delay);
//void add_tags_to_vectors(int noutput_items, int sym_num, int symbols_per_frame);
void add_tags_to_vectors(int noutput_items);
const int find_smallest_ninput_items(gr_vector_int &ninput_item);
const int update_half_frame_start(const int ninput_items);
const int calculate_item_offset(std::vector<gr::tag_t>& v);
public:
mimo_remove_cp_impl(int fftl, int rxant, std::string key);
~mimo_remove_cp_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 lte
} // namespace gr
#endif /* INCLUDED_LTE_MIMO_REMOVE_CP_IMPL_H */
gr::lte::mimo_remove_cp_impl
Definition mimo_remove_cp_impl.h:36
gr::lte::mimo_remove_cp_impl::~mimo_remove_cp_impl
~mimo_remove_cp_impl()
gr::lte::mimo_remove_cp_impl::mimo_remove_cp_impl
mimo_remove_cp_impl(int fftl, int rxant, std::string key)
gr::lte::mimo_remove_cp_impl::forecast
void forecast(int noutput_items, gr_vector_int &ninput_items_required)
gr::lte::mimo_remove_cp_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::lte::mimo_remove_cp
<+description of block+>
Definition mimo_remove_cp.h:36
mimo_remove_cp.h
gr::lte::sync_state
sync_state
Definition mimo_remove_cp_impl.h:34
gr::lte::SYNCED
@ SYNCED
Definition mimo_remove_cp_impl.h:34
gr::lte::UNSYNCED
@ UNSYNCED
Definition mimo_remove_cp_impl.h:34
gr::lte::FOUND_HALF_FRAME_START
@ FOUND_HALF_FRAME_START
Definition mimo_remove_cp_impl.h:34
gr
Definition bch_crc_check_ant_chooser_bb.h:28
gr::lte::sym_info::num
int num
Definition mimo_remove_cp_impl.h:30
gr::lte::sym_info::dump
int dump
Definition mimo_remove_cp_impl.h:31