GNU Radio's LTE Package
pbch_descrambler_vfvf_impl.h
Go to the documentation of this file.
1/* -*- c++ -*- */
2/*
3 * Copyright 2013 Communications Engineering Lab (CEL) / Karlsruhe Institute of Technology (KIT)
4 *
5 * This is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 3, or (at your option)
8 * any later version.
9 *
10 * This software is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this software; see the file COPYING. If not, write to
17 * the Free Software Foundation, Inc., 51 Franklin Street,
18 * Boston, MA 02110-1301, USA.
19 */
20
21#ifndef INCLUDED_LTE_PBCH_DESCRAMBLER_VFVF_IMPL_H
22#define INCLUDED_LTE_PBCH_DESCRAMBLER_VFVF_IMPL_H
23
25
26namespace gr {
27 namespace lte {
28
30 {
31 private:
32 int d_cell_id;
33 float* d_pn_seq;
34 float* d_scr;
35 float* d_comb;
36 int d_pn_seq_len;
37
38 pmt::pmt_t d_key;
39 pmt::pmt_t d_tag_id;
40 int d_work_call;
41
42 public:
45
46 // Where all the action really happens
47 int work(int noutput_items,
48 gr_vector_const_void_star &input_items,
49 gr_vector_void_star &output_items);
50
51 void set_cell_id(int id);
52 void set_cell_id_msg(pmt::pmt_t msg);
53
54 static char* pn_seq_generator(int len, int cell_id);
55 std::vector<int> pn_sequence() const;
56 };
57
58 } // namespace lte
59} // namespace gr
60
61#endif /* INCLUDED_LTE_PBCH_DESCRAMBLER_VFVF_IMPL_H */
62
Definition: pbch_descrambler_vfvf_impl.h:30
int work(int noutput_items, gr_vector_const_void_star &input_items, gr_vector_void_star &output_items)
std::vector< int > pn_sequence() const
static char * pn_seq_generator(int len, int cell_id)
void set_cell_id_msg(pmt::pmt_t msg)
pbch_descrambler_vfvf_impl(std::string key)
Block performs descrambling of PBCH with the given Cell IDCell ID is passed to block via message port...
Definition: pbch_descrambler_vfvf.h:37
Definition: bch_crc_check_ant_chooser_bb.h:28