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
dvbt_energy_descramble.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_DVBT_ENERGY_DESCRAMBLE_H
22 #define INCLUDED_DTV_DVBT_ENERGY_DESCRAMBLE_H
23 
24 #include <gnuradio/dtv/api.h>
25 #include <gnuradio/block.h>
26 
27 namespace gr {
28  namespace dtv {
29 
30  /*!
31  * \brief Energy descramble
32  * \ingroup dtv
33  *
34  * ETSI EN 300 744 - Clause 4.3.1. \n
35  * Input - Randomized MPEG-2 transport packets. \n
36  * Output - MPEG-2 transport packets (including sync - 0x47). \n
37  * We assume the first byte is a NSYNC. \n
38  * First sync in a row of 8 packets is reversed - 0xB8. \n
39  * Block size is 188 bytes
40  */
41  class DTV_API dvbt_energy_descramble : virtual public block
42  {
43  public:
44  typedef boost::shared_ptr<dvbt_energy_descramble> sptr;
45 
46  /*!
47  * \brief Create DVB-T Energy descramble.
48  *
49  * \param nblocks number of blocks.
50  */
51  static sptr make(int nblocks);
52  };
53 
54  } // namespace dtv
55 } // namespace gr
56 
57 #endif /* INCLUDED_DTV_DVBT_ENERGY_DESCRAMBLE_H */
58 
boost::shared_ptr< dvbt_energy_descramble > sptr
Definition: dvbt_energy_descramble.h:44
#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
Energy descrambleETSI EN 300 744 - Clause 4.3.1. Input - Randomized MPEG-2 transport packets...
Definition: dvbt_energy_descramble.h:41
The abstract base class for all 'terminal' processing blocks.A signal processing flow is constructed ...
Definition: block.h:60