GNU Radio Manual and C++ API Reference  3.7.7
The Free & Open Software Radio Ecosystem
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
dvbt2_interleaver_bb_impl.h
Go to the documentation of this file.
1 /* -*- c++ -*- */
2 /*
3  * Copyright 2015 Free Software Foundation, Inc.
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_DTV_DVBT2_INTERLEAVER_BB_IMPL_H
22 #define INCLUDED_DTV_DVBT2_INTERLEAVER_BB_IMPL_H
23 
25 #include "dvb/dvb_defines.h"
26 
27 namespace gr {
28  namespace dtv {
29 
31  {
32  private:
33  int frame_size;
34  int signal_constellation;
35  int code_rate;
36  int nbch;
37  int q_val;
38  int mod;
39  int packed_items;
40  unsigned char tempu[FRAME_SIZE_NORMAL];
41  unsigned char tempv[FRAME_SIZE_NORMAL];
42 
43  const static int twist16n[8];
44  const static int twist64n[12];
45  const static int twist256n[16];
46 
47  const static int twist16s[8];
48  const static int twist64s[12];
49  const static int twist256s[8];
50 
51  const static int mux16[8];
52  const static int mux64[12];
53  const static int mux256[16];
54 
55  const static int mux16_35[8];
56  const static int mux16_13[8];
57  const static int mux16_25[8];
58  const static int mux64_35[12];
59  const static int mux64_13[12];
60  const static int mux64_25[12];
61  const static int mux256_35[16];
62  const static int mux256_23[16];
63 
64  const static int mux256s[8];
65  const static int mux256s_13[8];
66  const static int mux256s_25[8];
67 
68  public:
71 
72  void forecast (int noutput_items, gr_vector_int &ninput_items_required);
73 
74  int general_work(int noutput_items,
75  gr_vector_int &ninput_items,
76  gr_vector_const_void_star &input_items,
77  gr_vector_void_star &output_items);
78  };
79 
80  } // namespace dtv
81 } // namespace gr
82 
83 #endif /* INCLUDED_DTV_DVBT2_INTERLEAVER_BB_IMPL_H */
84 
void forecast(int noutput_items, gr_vector_int &ninput_items_required)
Estimate input requirements given output request.
dvb_constellation_t
Definition: dvb_config.h:80
int general_work(int noutput_items, gr_vector_int &ninput_items, gr_vector_const_void_star &input_items, gr_vector_void_star &output_items)
compute output items from input items
std::vector< const void * > gr_vector_const_void_star
Definition: gnuradio-runtime/include/gnuradio/types.h:38
#define FRAME_SIZE_NORMAL
Definition: dvb_defines.h:47
std::vector< void * > gr_vector_void_star
Definition: gnuradio-runtime/include/gnuradio/types.h:37
Definition: dvbt2_interleaver_bb_impl.h:30
std::vector< int > gr_vector_int
Definition: gnuradio-runtime/include/gnuradio/types.h:33
Include this header to use the message passing features.
Definition: logger.h:129
Bit interleaves DVB-T2 FEC baseband frames.Input: Normal or short FEC baseband frames with appended L...
Definition: dvbt2_interleaver_bb.h:38
dvbt2_interleaver_bb_impl(dvb_framesize_t framesize, dvb_code_rate_t rate, dvb_constellation_t constellation)
dvb_framesize_t
Definition: dvb_config.h:75
dvb_code_rate_t
Definition: dvb_config.h:31