libdvbv5  1.11.0
Library to work with Digital TV devices on Linux
desc_terrestrial_delivery.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2011-2012 - Mauro Carvalho Chehab
3  * Copyright (c) 2012 - Andre Roth <neolynx@gmail.com>
4  *
5  * This program is free software; you can redistribute it and/or modify
6  * it under the terms of the GNU Lesser General Public License as published by
7  * the Free Software Foundation version 2.1 of the License.
8  *
9  * This program is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12  * GNU Lesser General Public License for more details.
13  *
14  * You should have received a copy of the GNU Lesser General Public License
15  * along with this program; if not, write to the Free Software
16  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
17  * Or, point your browser to http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
18  *
19  * Based on ETSI EN 300 468 V1.11.1 (2010-04)
20  *
21  */
22 
39 #ifndef _TERRESTRIAL_DELIVERY_H
40 #define _TERRESTRIAL_DELIVERY_H
41 
42 #include <libdvbv5/descriptors.h>
43 
66  uint8_t type;
67  uint8_t length;
68  struct dvb_desc *next;
69 
70  uint32_t centre_frequency;
72  uint8_t mpe_fec_indicator:1;
74  uint8_t priority:1;
75  uint8_t bandwidth:3;
78  uint8_t constellation:2;
80  uint8_t transmission_mode:2;
81  uint8_t guard_interval:2;
84 } __attribute__((packed));
85 
86 struct dvb_v5_fe_parms;
87 
88 #ifdef __cplusplus
89 extern "C" {
90 #endif
91 
108  const uint8_t *buf,
109  struct dvb_desc *desc);
110 
119  const struct dvb_desc *desc);
120 
124 extern const unsigned dvbt_bw[];
125 
130 extern const unsigned dvbt_modulation[];
131 
136 extern const unsigned dvbt_hierarchy[];
137 
142 extern const unsigned dvbt_code_rate[];
143 
148 extern const uint32_t dvbt_interval[];
149 
154 extern const unsigned dvbt_transmission_mode[];
155 
156 #ifdef __cplusplus
157 }
158 #endif
159 
160 #endif
const unsigned dvbt_hierarchy[]
converts from the descriptor's hierarchy into enum fe_hierarchy, as defined by DVBv5 API...
Structure containing the DVB-T terrestrial delivery system descriptor.
const unsigned dvbt_code_rate[]
converts from the descriptor's FEC into enum fe_code_rate, as defined by DVBv5 API.
void dvb_desc_terrestrial_delivery_print(struct dvb_v5_fe_parms *parms, const struct dvb_desc *desc)
Prints the content of the DVB-T terrestrial delivery system descriptor.
const unsigned dvbt_modulation[]
converts from the descriptor's modulation into enum fe_modulation, as defined by DVBv5 API...
Keeps data needed to handle the DVB frontend.
Definition: dvb-fe.h:117
const unsigned dvbt_bw[]
converts from internal representation into bandwidth in Hz
Linked list containing the several descriptors found on a MPEG-TS table.
Definition: descriptors.h:117
int dvb_desc_terrestrial_delivery_init(struct dvb_v5_fe_parms *parms, const uint8_t *buf, struct dvb_desc *desc)
Initializes and parses the DVB-T terrestrial delivery system descriptor.
const unsigned dvbt_transmission_mode[]
converts from the descriptor's transmission mode into enum fe_transmit_mode, as defined by DVBv5 API...
Provides a way to handle MPEG-TS descriptors found on Digital TV streams.
const uint32_t dvbt_interval[]
converts from internal representation into enum fe_guard_interval, as defined at DVBv5 API...