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_bch_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 
22 #ifndef INCLUDED_DTV_DVB_BCH_BB_H
23 #define INCLUDED_DTV_DVB_BCH_BB_H
24 
25 #include <gnuradio/dtv/api.h>
27 #include <gnuradio/block.h>
28 
29 namespace gr {
30  namespace dtv {
31 
32  /*!
33  * \brief Encodes a BCH ((Bose, Chaudhuri, Hocquenghem) FEC.
34  * \ingroup dtv
35  *
36  * \details
37  * Input: Variable length FEC baseband frames (BBFRAME).
38  * Output: Variable length FEC baseband frames with appended BCH (BCHFEC).
39  */
40  class DTV_API dvb_bch_bb : virtual public gr::block
41  {
42  public:
43  typedef boost::shared_ptr<dvb_bch_bb> sptr;
44 
45  /*!
46  * \brief Create a baseband frame BCH encoder.
47  *
48  * \param standard DVB standard (DVB-S2 or DVB-T2).
49  * \param framesize FEC frame size (normal or short).
50  * \param rate FEC code rate.
51  */
52  static sptr make(dvb_standard_t standard, dvb_framesize_t framesize, dvb_code_rate_t rate);
53  };
54 
55  } // namespace dtv
56 } // namespace gr
57 
58 #endif /* INCLUDED_DTV_DVB_BCH_BB_H */
59 
#define DTV_API
Definition: gr-dtv/include/gnuradio/dtv/api.h:30
Encodes a BCH ((Bose, Chaudhuri, Hocquenghem) FEC.
Definition: dvb_bch_bb.h:40
Include this header to use the message passing features.
Definition: logger.h:131
dvb_standard_t
Definition: dvb_config.h:26
boost::shared_ptr< dvb_bch_bb > sptr
Definition: dvb_bch_bb.h:43
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