libdvbv5 1.22.1
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
43
66 uint8_t type;
67 uint8_t length;
68 struct dvb_desc *next;
69
74 uint8_t priority:1;
75 uint8_t bandwidth:3;
78 uint8_t constellation:2;
81 uint8_t guard_interval:2;
84} __attribute__((packed));
85
86struct dvb_v5_fe_parms;
87
88#ifdef __cplusplus
89extern "C" {
90#endif
91
108 const uint8_t *buf,
109 struct dvb_desc *desc);
110
119 const struct dvb_desc *desc);
120
124extern const unsigned dvbt_bw[];
125
130extern const unsigned dvbt_modulation[];
131
136extern const unsigned dvbt_hierarchy[];
137
142extern const unsigned dvbt_code_rate[];
143
148extern const uint32_t dvbt_interval[];
149
154extern const unsigned dvbt_transmission_mode[];
155
156#ifdef __cplusplus
157}
158#endif
159
160#endif
const unsigned dvbt_modulation[]
converts from the descriptor's modulation into enum fe_modulation, as defined by DVBv5 API.
const uint32_t dvbt_interval[]
converts from internal representation into enum fe_guard_interval, as defined at DVBv5 API.
const unsigned dvbt_hierarchy[]
converts from the descriptor's hierarchy into enum fe_hierarchy, as defined by DVBv5 API.
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_bw[]
converts from internal representation into bandwidth in Hz
const unsigned dvbt_transmission_mode[]
converts from the descriptor's transmission mode into enum fe_transmit_mode, as defined by DVBv5 API.
const unsigned dvbt_code_rate[]
converts from the descriptor's FEC into enum fe_code_rate, as defined by DVBv5 API.
Provides a way to handle MPEG-TS descriptors found on Digital TV streams.
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.
Structure containing the DVB-T terrestrial delivery system descriptor.
Linked list containing the several descriptors found on a MPEG-TS table.
Definition: descriptors.h:117
Keeps data needed to handle the DVB frontend.
Definition: dvb-fe.h:117