GNU Radio Manual and C++ API Reference  3.8.1.0
The Free & Open Software Radio Ecosystem
dvb_bbheader_bb.h
Go to the documentation of this file.
1 /* -*- c++ -*- */
2 /*
3  * Copyright 2015-2017 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_DVB_BBHEADER_BB_H
22 #define INCLUDED_DTV_DVB_BBHEADER_BB_H
23 
24 #include <gnuradio/block.h>
25 #include <gnuradio/dtv/api.h>
29 
30 namespace gr {
31 namespace dtv {
32 
33 /*!
34  * \brief Formats MPEG-2 Transport Stream packets into FEC baseband frames
35  * and adds a 10-byte header.
36  * \ingroup dtv
37  *
38  * \details
39  * Input: 188-byte MPEG-2 Transport Stream packets. \n
40  * Output: Variable length FEC baseband frames (BBFRAME). The output frame
41  * length is based on the FEC rate.
42  */
43 class DTV_API dvb_bbheader_bb : virtual public gr::block
44 {
45 public:
46  typedef boost::shared_ptr<dvb_bbheader_bb> sptr;
47 
48  /*!
49  * \brief Create a baseband header formatter.
50  *
51  * \param standard DVB standard (DVB-S2 or DVB-T2).
52  * \param framesize FEC frame size (normal, medium or short).
53  * \param rate FEC code rate.
54  * \param rolloff DVB-S2 root-raised-cosine filter roll-off.
55  * \param mode DVB-T2 input processing mode.
56  * \param inband DVB-T2 Type B in-band signalling.
57  * \param fecblocks DVB-T2 number of FEC block for in-band signalling.
58  * \param tsrate DVB-T2 Transport Stream rate for in-band signalling.
59  */
60  static sptr make(dvb_standard_t standard,
61  dvb_framesize_t framesize,
62  dvb_code_rate_t rate,
63  dvbs2_rolloff_factor_t rolloff,
64  dvbt2_inputmode_t mode,
65  dvbt2_inband_t inband,
66  int fecblocks,
67  int tsrate);
68 };
69 
70 } // namespace dtv
71 } // namespace gr
72 
73 #endif /* INCLUDED_DTV_DVB_BBHEADER_BB_H */
boost::shared_ptr< dvb_bbheader_bb > sptr
Definition: dvb_bbheader_bb.h:46
dvbt2_inputmode_t
Definition: dvbt2_config.h:37
#define DTV_API
Definition: gr-dtv/include/gnuradio/dtv/api.h:30
GNU Radio logging wrapper for log4cpp library (C++ port of log4j)
Definition: basic_block.h:43
dvb_standard_t
Definition: dvb_config.h:26
Formats MPEG-2 Transport Stream packets into FEC baseband frames and adds a 10-byte header...
Definition: dvb_bbheader_bb.h:43
dvbt2_inband_t
Definition: dvbt2_config.h:118
dvbs2_rolloff_factor_t
Definition: dvbs2_config.h:26
The abstract base class for all &#39;terminal&#39; processing blocks.A signal processing flow is constructed ...
Definition: block.h:71
dvb_framesize_t
Definition: dvb_config.h:85
dvb_code_rate_t
Definition: dvb_config.h:31