GNU Radio's LTE Package
pbch_demux_vcvc_impl.h
Go to the documentation of this file.
1/* -*- c++ -*- */
2/*
3 * Copyright 2014 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_DEMUX_VCVC_IMPL_H
22#define INCLUDED_LTE_PBCH_DEMUX_VCVC_IMPL_H
23
24#include <lte/pbch_demux_vcvc.h>
25
26namespace gr {
27 namespace lte {
28
30 {
31 private:
32 int d_cell_id;
33 int d_N_rb_dl;
34 int d_sym_num;
35 int d_rxant;
36 gr_complex* d_pbch_symbs;
37 gr_complex* d_pbch_ce1_symbs;
38 gr_complex* d_pbch_ce2_symbs;
39
40 int calculate_n_process_items(gr_vector_int ninput_items, int noutput_items);
41 void extract_pbch_values(gr_complex* out, const gr_complex* in);
42 int get_sym_num(std::vector<gr::tag_t> &v);
43
44 void set_cell_id_msg(pmt::pmt_t msg);
45
46 public:
47 pbch_demux_vcvc_impl(int N_rb_dl, int rxant, std::string name);
49
50 void set_cell_id(int id);
51
52 // Where all the action really happens
53 void forecast (int noutput_items, gr_vector_int &ninput_items_required);
54
55 int general_work(int noutput_items,
56 gr_vector_int &ninput_items,
57 gr_vector_const_void_star &input_items,
58 gr_vector_void_star &output_items);
59 };
60
61 } // namespace lte
62} // namespace gr
63
64#endif /* INCLUDED_LTE_PBCH_DEMUX_VCVC_IMPL_H */
65
Definition: pbch_demux_vcvc_impl.h:30
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)
pbch_demux_vcvc_impl(int N_rb_dl, int rxant, std::string name)
Demultiplex PBCH data from resource grid.
Definition: pbch_demux_vcvc.h:37
Definition: bch_crc_check_ant_chooser_bb.h:28