GNU Radio's DVBS2RX Package
dvb_defines.h
Go to the documentation of this file.
1/* -*- c++ -*- */
2/*
3 * Copyright 2018 Ron Economos.
4 *
5 * This file is part of gr-dvbs2rx.
6 *
7 * SPDX-License-Identifier: GPL-3.0-or-later
8 */
9
10#ifndef INCLUDED_DVBS2RX_DVB_DEFINES_H
11#define INCLUDED_DVBS2RX_DVB_DEFINES_H
12
13#define TRUE 1
14#define FALSE 0
15
16#define BB_HEADER_LENGTH_BITS 80
17#define BB_HEADER_LENGTH_BYTES 10
18
19// BB HEADER fields
20#define TS_GS_TRANSPORT 3
21#define TS_GS_GENERIC_PACKETIZED 0
22#define TS_GS_GENERIC_CONTINUOUS 1
23#define TS_GS_RESERVED 2
24
25#define SIS_MIS_SINGLE 1
26#define SIS_MIS_MULTIPLE 0
27
28#define CCM 1
29#define ACM 0
30
31#define ISSYI_ACTIVE 1
32#define ISSYI_NOT_ACTIVE 0
33
34#define NPD_ACTIVE 1
35#define NPD_NOT_ACTIVE 0
36
37#define FRAME_SIZE_NORMAL 64800
38#define FRAME_SIZE_MEDIUM 32400
39#define FRAME_SIZE_SHORT 16200
40
41// BCH Code
42#define BCH_CODE_N8 0
43#define BCH_CODE_N10 1
44#define BCH_CODE_N12 2
45#define BCH_CODE_S12 3
46#define BCH_CODE_M12 4
47
48#define LDPC_ENCODE_TABLE_LENGTH (FRAME_SIZE_NORMAL * 10)
49
50#define NORMAL_PUNCTURING 3240
51#define MEDIUM_PUNCTURING 1620
52#define SHORT_PUNCTURING_SET1 810
53#define SHORT_PUNCTURING_SET2 1224
54
55#define VLSNR_OFF 0
56#define VLSNR_SET1 1
57#define VLSNR_SET2 2
58
59#define EXTRA_PILOT_SYMBOLS_SET1 ((18 * 34) + (3 * 36))
60#define EXTRA_PILOT_SYMBOLS_SET2 ((9 * 32) + 36)
61
62#endif /* INCLUDED_DVBS2RX_DVB_DEFINES_H */