/
dvbt2_framemapper_cc.h
81 lines (74 loc) · 2.86 KB
/
dvbt2_framemapper_cc.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
/* -*- c++ -*- */
/*
* Copyright 2015,2017 Free Software Foundation, Inc.
*
* SPDX-License-Identifier: GPL-3.0-or-later
*
*/
#ifndef INCLUDED_DTV_DVBT2_FRAMEMAPPER_CC_H
#define INCLUDED_DTV_DVBT2_FRAMEMAPPER_CC_H
#include <gnuradio/block.h>
#include <gnuradio/dtv/api.h>
#include <gnuradio/dtv/dvb_config.h>
#include <gnuradio/dtv/dvbt2_config.h>
namespace gr {
namespace dtv {
/*!
* \brief Maps T2 frames.
* \ingroup dtv
*
* Input: Cell and time interleaved QPSK, 16QAM, 64QAM or 256QAM modulated cells. \n
* Output: T2 frame.
*/
class DTV_API dvbt2_framemapper_cc : virtual public gr::block
{
public:
typedef std::shared_ptr<dvbt2_framemapper_cc> sptr;
/*!
* \brief Create a DVB-T2 frame mapper.
*
* \param framesize FEC frame size (normal or short).
* \param rate FEC code rate.
* \param constellation DVB-T2 constellation.
* \param rotation DVB-T2 constellation rotation (on or off).
* \param fecblocks number of FEC frames in a T2 frame.
* \param tiblocks number of time interleaving blocks in a T2 frame.
* \param carriermode number of carriers (normal or extended).
* \param fftsize OFDM IFFT size.
* \param guardinterval OFDM ISI guard interval.
* \param l1constellation L1 constellation.
* \param pilotpattern DVB-T2 pilot pattern (PP1 - PP8).
* \param t2frames number of T2 frames in a super-frame.
* \param numdatasyms number of OFDM symbols in a T2 frame.
* \param paprmode PAPR reduction mode.
* \param version DVB-T2 specification version.
* \param preamble P1 symbol preamble format.
* \param inputmode Baseband Header mode.
* \param reservedbiasbits set all L1 bias bits to 1 (on or off).
* \param l1scrambled scramble L1 post signalling (on or off).
* \param inband In-band type B signalling (on or off).
*/
static sptr make(dvb_framesize_t framesize,
dvb_code_rate_t rate,
dvb_constellation_t constellation,
dvbt2_rotation_t rotation,
int fecblocks,
int tiblocks,
dvbt2_extended_carrier_t carriermode,
dvbt2_fftsize_t fftsize,
dvb_guardinterval_t guardinterval,
dvbt2_l1constellation_t l1constellation,
dvbt2_pilotpattern_t pilotpattern,
int t2frames,
int numdatasyms,
dvbt2_papr_t paprmode,
dvbt2_version_t version,
dvbt2_preamble_t preamble,
dvbt2_inputmode_t inputmode,
dvbt2_reservedbiasbits_t reservedbiasbits,
dvbt2_l1scrambled_t l1scrambled,
dvbt2_inband_t inband);
};
} // namespace dtv
} // namespace gr
#endif /* INCLUDED_DTV_DVBT2_FRAMEMAPPER_CC_H */