libdvbv5  1.11.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 <m.chehab@samsung.com>
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 
36 #ifndef _ISDBT_DELIVERY_H
37 #define _ISDBT_DELIVERY_H
38 
39 #include <libdvbv5/descriptors.h>
40 
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 
75 struct dvb_v5_fe_parms;
76 
77 #ifdef __cplusplus
78 extern "C" {
79 #endif
80 
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 
123 extern const uint32_t isdbt_interval[];
124 
128 extern const uint32_t isdbt_mode[];
129 
130 #ifdef __cplusplus
131 }
132 #endif
133 
134 #endif
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.
void isdbt_desc_delivery_free(struct dvb_desc *desc)
Frees all data allocated by the ISDB-T terrestrial delivery system descriptor.
Struct containing the ISDB-T terrestrial delivery system.
Keeps data needed to handle the DVB frontend.
Definition: dvb-fe.h:117
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.
Linked list containing the several descriptors found on a MPEG-TS table.
Definition: descriptors.h:117
const uint32_t isdbt_interval[]
Converts an ISDB-T Interval code into a string.
Provides a way to handle MPEG-TS descriptors found on Digital TV streams.
const uint32_t isdbt_mode[]
Converts an ISDB-T mode into a string.