GNU Radio Manual and C++ API Reference  3.7.7
The Free & Open Software Radio Ecosystem
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
dvb_defines.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_DEFINES_H
22 #define INCLUDED_DTV_DVB_DEFINES_H
23 
24 #define TRUE 1
25 #define FALSE 0
26 
27 #define BB_HEADER_LENGTH_BITS 72
28 
29 // BB HEADER fields
30 #define TS_GS_TRANSPORT 3
31 #define TS_GS_GENERIC_PACKETIZED 0
32 #define TS_GS_GENERIC_CONTINUOUS 1
33 #define TS_GS_RESERVED 2
34 
35 #define SIS_MIS_SINGLE 1
36 #define SIS_MIS_MULTIPLE 0
37 
38 #define CCM 1
39 #define ACM 0
40 
41 #define ISSYI_ACTIVE 1
42 #define ISSYI_NOT_ACTIVE 0
43 
44 #define NPD_ACTIVE 1
45 #define NPD_NOT_ACTIVE 0
46 
47 #define FRAME_SIZE_NORMAL 64800
48 #define FRAME_SIZE_SHORT 16200
49 
50 // BCH Code
51 #define BCH_CODE_N8 0
52 #define BCH_CODE_N10 1
53 #define BCH_CODE_N12 2
54 #define BCH_CODE_S12 3
55 
56 #define LDPC_ENCODE_TABLE_LENGTH (FRAME_SIZE_NORMAL * 10)
57 
58 #endif /* INCLUDED_DTV_DVB_DEFINES_H */
59