mimo_pss_fine_sync_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_PSS_FINE_SYNC_IMPL_H
#define INCLUDED_LTE_MIMO_PSS_FINE_SYNC_IMPL_H
#include <lte/mimo_pss_fine_sync.h>
namespace gr
{
namespace lte
{
class mimo_pss_fine_sync_impl : public mimo_pss_fine_sync
{
private:
int d_fftl;
int d_rxant;
int d_grpdelay;
int d_cpl;
int d_cpl0;
int d_slotl;
int d_halffl;
int d_decim;
int d_N_id_2;
int d_coarse_pos;
int d_fine_pos;
int d_fine_corr_count;
int d_step;
long d_half_frame_start;
float d_corr_val;
float d_val_early;
float d_val_prompt;
float d_val_late;
bool d_is_locked;
pmt::pmt_t d_slot_key;
pmt::pmt_t d_id_key;
pmt::pmt_t d_tag_id;
pmt::pmt_t d_port_half_frame;
pmt::pmt_t d_port_lock;
gr_complex* d_pssX_t;
gr_complex* d_a;
float diff_corr(const gr_complex* x,const gr_complex* y, int len);
float diff_corr2(const gr_vector_const_void_star in, const gr_complex* y, int len, int cpos);
int calc_half_frame_start(int pss_pos);
void handle_msg_N_id_2(pmt::pmt_t msg);
void handle_msg_coarse_pos(pmt::pmt_t msg);
public:
mimo_pss_fine_sync_impl(int fftl, int rxant, int grpdelay);
~mimo_pss_fine_sync_impl();
void forecast (int noutput_items, gr_vector_int &ninput_items_required);
// 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 lte
} // namespace gr
#endif /* INCLUDED_LTE_MIMO_PSS_FINE_SYNC_IMPL_H */
gr::lte::mimo_pss_fine_sync_impl
Definition mimo_pss_fine_sync_impl.h:34
gr::lte::mimo_pss_fine_sync_impl::mimo_pss_fine_sync_impl
mimo_pss_fine_sync_impl(int fftl, int rxant, int grpdelay)
gr::lte::mimo_pss_fine_sync_impl::~mimo_pss_fine_sync_impl
~mimo_pss_fine_sync_impl()
gr::lte::mimo_pss_fine_sync_impl::work
int work(int noutput_items, gr_vector_const_void_star &input_items, gr_vector_void_star &output_items)
gr::lte::mimo_pss_fine_sync_impl::forecast
void forecast(int noutput_items, gr_vector_int &ninput_items_required)
gr::lte::mimo_pss_fine_sync
<+description of block+>
Definition mimo_pss_fine_sync.h:37
mimo_pss_fine_sync.h
gr
Definition bch_crc_check_ant_chooser_bb.h:28