libdvbv5: lib/include/libdvbv5/desc_terrestrial_delivery.h Source File

libdvbv5 1.32.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
38
39#ifndef _TERRESTRIAL_DELIVERY_H
40#define _TERRESTRIAL_DELIVERY_H
41
42#include <libdvbv5/descriptors.h>
43
65 struct dvb_desc_terrestrial_delivery {
66 uint8_t type;
67 uint8_t length;
68 struct dvb_desc *next;
69
70 uint32_t centre_frequency;
71 uint8_t reserved_future_use1:2;
72 uint8_t mpe_fec_indicator:1;
73 uint8_t time_slice_indicator:1;
74 uint8_t priority:1;
75 uint8_t bandwidth:3;
76 uint8_t code_rate_hp_stream:3;
77 uint8_t hierarchy_information:3;
78 uint8_t constellation:2;
79 uint8_t other_frequency_flag:1;
80 uint8_t transmission_mode:2;
81 uint8_t guard_interval:2;
82 uint8_t code_rate_lp_stream:3;
83 uint32_t reserved_future_use2;
84} __attribute__((packed));
85
86struct dvb_v5_fe_parms;
87
88#ifdef __cplusplus
89extern "C" {
90#endif
91
107 int dvb_desc_terrestrial_delivery_init(struct dvb_v5_fe_parms *parms,
108 const uint8_t *buf,
109 struct dvb_desc *desc);
110
118 void dvb_desc_terrestrial_delivery_print(struct dvb_v5_fe_parms *parms,
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
dvbt_modulation
const unsigned dvbt_modulation[]
converts from the descriptor's modulation into enum fe_modulation, as defined by DVBv5 API.
dvbt_interval
const uint32_t dvbt_interval[]
converts from internal representation into enum fe_guard_interval, as defined at DVBv5 API.
dvbt_hierarchy
const unsigned dvbt_hierarchy[]
converts from the descriptor's hierarchy into enum fe_hierarchy, as defined by DVBv5 API.
dvb_desc_terrestrial_delivery_init
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.
dvbt_bw
const unsigned dvbt_bw[]
converts from internal representation into bandwidth in Hz
dvbt_transmission_mode
const unsigned dvbt_transmission_mode[]
converts from the descriptor's transmission mode into enum fe_transmit_mode, as defined by DVBv5 API.
dvbt_code_rate
const unsigned dvbt_code_rate[]
converts from the descriptor's FEC into enum fe_code_rate, as defined by DVBv5 API.
descriptors.h
Provides a way to handle MPEG-TS descriptors found on Digital TV streams.
dvb_desc_terrestrial_delivery_print
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.
dvb_desc_terrestrial_delivery
Structure containing the DVB-T terrestrial delivery system descriptor.
Definition desc_terrestrial_delivery.h:65
dvb_desc_terrestrial_delivery::reserved_future_use2
uint32_t reserved_future_use2
Definition desc_terrestrial_delivery.h:83
dvb_desc_terrestrial_delivery::time_slice_indicator
uint8_t time_slice_indicator
Definition desc_terrestrial_delivery.h:73
dvb_desc_terrestrial_delivery::type
uint8_t type
Definition desc_terrestrial_delivery.h:66
dvb_desc_terrestrial_delivery::hierarchy_information
uint8_t hierarchy_information
Definition desc_terrestrial_delivery.h:77
dvb_desc_terrestrial_delivery::guard_interval
uint8_t guard_interval
Definition desc_terrestrial_delivery.h:81
dvb_desc_terrestrial_delivery::constellation
uint8_t constellation
Definition desc_terrestrial_delivery.h:78
dvb_desc_terrestrial_delivery::priority
uint8_t priority
Definition desc_terrestrial_delivery.h:74
dvb_desc_terrestrial_delivery::next
struct dvb_desc * next
Definition desc_terrestrial_delivery.h:68
dvb_desc_terrestrial_delivery::reserved_future_use1
uint8_t reserved_future_use1
Definition desc_terrestrial_delivery.h:71
dvb_desc_terrestrial_delivery::length
uint8_t length
Definition desc_terrestrial_delivery.h:67
dvb_desc_terrestrial_delivery::code_rate_lp_stream
uint8_t code_rate_lp_stream
Definition desc_terrestrial_delivery.h:82
dvb_desc_terrestrial_delivery::other_frequency_flag
uint8_t other_frequency_flag
Definition desc_terrestrial_delivery.h:79
dvb_desc_terrestrial_delivery::transmission_mode
uint8_t transmission_mode
Definition desc_terrestrial_delivery.h:80
dvb_desc_terrestrial_delivery::centre_frequency
uint32_t centre_frequency
Definition desc_terrestrial_delivery.h:70
dvb_desc_terrestrial_delivery::mpe_fec_indicator
uint8_t mpe_fec_indicator
Definition desc_terrestrial_delivery.h:72
dvb_desc_terrestrial_delivery::code_rate_hp_stream
uint8_t code_rate_hp_stream
Definition desc_terrestrial_delivery.h:76
dvb_desc_terrestrial_delivery::bandwidth
uint8_t bandwidth
Definition desc_terrestrial_delivery.h:75
dvb_desc
Linked list containing the several descriptors found on a MPEG-TS table.
Definition descriptors.h:117
dvb_v5_fe_parms
Keeps data needed to handle the DVB frontend.
Definition dvb-fe.h:117