GNU Radio Manual and C++ API Reference  3.7.9.2
The Free & Open Software Radio Ecosystem
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
dvb_bbheader_bb.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_DVB_BBHEADER_BB_H
22 #define INCLUDED_DTV_DVB_BBHEADER_BB_H
23 
24 #include <gnuradio/dtv/api.h>
28 #include <gnuradio/block.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.
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 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, dvb_framesize_t framesize, dvb_code_rate_t rate, dvbs2_rolloff_factor_t rolloff, dvbt2_inputmode_t mode, dvbt2_inband_t inband, int fecblocks, int tsrate);
61  };
62 
63  } // namespace dtv
64 } // namespace gr
65 
66 #endif /* INCLUDED_DTV_DVB_BBHEADER_BB_H */
67 
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
Include this header to use the message passing features.
Definition: logger.h:131
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 'terminal' processing blocks.A signal processing flow is constructed ...
Definition: block.h:60
dvb_framesize_t
Definition: dvb_config.h:76
dvb_code_rate_t
Definition: dvb_config.h:31