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

libdvbv5 1.32.0 Library to work with Digital TV devices on Linux

desc_isdbt_delivery.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2013-2014 - Mauro Carvalho Chehab <mchehab@kernel.org>
3 *
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU Lesser General Public License as published by
6 * the Free Software Foundation version 2.1 of the License.
7 *
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU Lesser General Public License for more details.
12 *
13 * You should have received a copy of the GNU Lesser General Public License
14 * along with this program; if not, write to the Free Software
15 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
16 * Or, point your browser to http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
17 *
18 * Described on ARIB STD-B10 as Terrestrial delivery system descriptor
19 */
20
35
36#ifndef _ISDBT_DELIVERY_H
37#define _ISDBT_DELIVERY_H
38
39#include <libdvbv5/descriptors.h>
40
57 struct isdbt_desc_terrestrial_delivery_system {
58 uint8_t type;
59 uint8_t length;
60 struct dvb_desc *next;
61
62 uint32_t *frequency;
63 unsigned num_freqs;
64
65 union {
66 uint16_t bitfield;
67 struct {
68 uint16_t transmission_mode:2;
69 uint16_t guard_interval:2;
70 uint16_t area_code:12;
71 } __attribute__((packed));
72 } __attribute__((packed));
73} __attribute__((packed));
74
75struct dvb_v5_fe_parms;
76
77#ifdef __cplusplus
78extern "C" {
79#endif
80
97 int isdbt_desc_delivery_init(struct dvb_v5_fe_parms *parms,
98 const uint8_t *buf, struct dvb_desc *desc);
99
108 void isdbt_desc_delivery_print(struct dvb_v5_fe_parms *parms,
109 const struct dvb_desc *desc);
110
118 void isdbt_desc_delivery_free(struct dvb_desc *desc);
119
123extern const uint32_t isdbt_interval[];
124
128extern const uint32_t isdbt_mode[];
129
130#ifdef __cplusplus
131}
132#endif
133
134#endif
isdbt_interval
const uint32_t isdbt_interval[]
Converts an ISDB-T Interval code into a string.
isdbt_mode
const uint32_t isdbt_mode[]
Converts an ISDB-T mode into a string.
descriptors.h
Provides a way to handle MPEG-TS descriptors found on Digital TV streams.
isdbt_desc_delivery_init
int isdbt_desc_delivery_init(struct dvb_v5_fe_parms *parms, const uint8_t *buf, struct dvb_desc *desc)
Initializes and parses the ISDB-T terrestrial delivery system descriptor.
isdbt_desc_delivery_free
void isdbt_desc_delivery_free(struct dvb_desc *desc)
Frees all data allocated by the ISDB-T terrestrial delivery system descriptor.
isdbt_desc_delivery_print
void isdbt_desc_delivery_print(struct dvb_v5_fe_parms *parms, const struct dvb_desc *desc)
Prints the content of the ISDB-T terrestrial delivery system descriptor.
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
isdbt_desc_terrestrial_delivery_system
Struct containing the ISDB-T terrestrial delivery system.
Definition desc_isdbt_delivery.h:57
isdbt_desc_terrestrial_delivery_system::guard_interval
uint16_t guard_interval
Definition desc_isdbt_delivery.h:69
isdbt_desc_terrestrial_delivery_system::type
uint8_t type
Definition desc_isdbt_delivery.h:58
isdbt_desc_terrestrial_delivery_system::frequency
uint32_t * frequency
Definition desc_isdbt_delivery.h:62
isdbt_desc_terrestrial_delivery_system::bitfield
uint16_t bitfield
Definition desc_isdbt_delivery.h:66
isdbt_desc_terrestrial_delivery_system::area_code
uint16_t area_code
Definition desc_isdbt_delivery.h:70
isdbt_desc_terrestrial_delivery_system::next
struct dvb_desc * next
Definition desc_isdbt_delivery.h:60
isdbt_desc_terrestrial_delivery_system::num_freqs
unsigned num_freqs
Definition desc_isdbt_delivery.h:63
isdbt_desc_terrestrial_delivery_system::transmission_mode
uint16_t transmission_mode
Definition desc_isdbt_delivery.h:68
isdbt_desc_terrestrial_delivery_system::length
uint8_t length
Definition desc_isdbt_delivery.h:59