pbch_descrambler_vfvf_impl.h
Go to the documentation of this file.
/* -*- c++ -*- */
/*
* Copyright 2013 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_PBCH_DESCRAMBLER_VFVF_IMPL_H
#define INCLUDED_LTE_PBCH_DESCRAMBLER_VFVF_IMPL_H
#include <lte/pbch_descrambler_vfvf.h>
namespace gr {
namespace lte {
class pbch_descrambler_vfvf_impl : public pbch_descrambler_vfvf
{
private:
int d_cell_id;
float* d_pn_seq;
float* d_scr;
float* d_comb;
int d_pn_seq_len;
pmt::pmt_t d_key;
pmt::pmt_t d_tag_id;
int d_work_call;
public:
pbch_descrambler_vfvf_impl(std::string key);
~pbch_descrambler_vfvf_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_cell_id(int id);
void set_cell_id_msg(pmt::pmt_t msg);
static char* pn_seq_generator(int len, int cell_id);
std::vector<int> pn_sequence() const;
};
} // namespace lte
} // namespace gr
#endif /* INCLUDED_LTE_PBCH_DESCRAMBLER_VFVF_IMPL_H */
gr::lte::pbch_descrambler_vfvf_impl
Definition pbch_descrambler_vfvf_impl.h:30
gr::lte::pbch_descrambler_vfvf_impl::set_cell_id
void set_cell_id(int id)
gr::lte::pbch_descrambler_vfvf_impl::work
int work(int noutput_items, gr_vector_const_void_star &input_items, gr_vector_void_star &output_items)
gr::lte::pbch_descrambler_vfvf_impl::pn_sequence
std::vector< int > pn_sequence() const
gr::lte::pbch_descrambler_vfvf_impl::~pbch_descrambler_vfvf_impl
~pbch_descrambler_vfvf_impl()
gr::lte::pbch_descrambler_vfvf_impl::pn_seq_generator
static char * pn_seq_generator(int len, int cell_id)
gr::lte::pbch_descrambler_vfvf_impl::set_cell_id_msg
void set_cell_id_msg(pmt::pmt_t msg)
gr::lte::pbch_descrambler_vfvf_impl::pbch_descrambler_vfvf_impl
pbch_descrambler_vfvf_impl(std::string key)
gr::lte::pbch_descrambler_vfvf
Block performs descrambling of PBCH with the given Cell IDCell ID is passed to block via message port...
Definition pbch_descrambler_vfvf.h:37
gr
Definition bch_crc_check_ant_chooser_bb.h:28
pbch_descrambler_vfvf.h