libdvbv5 1.22.1
Library to work with Digital TV devices on Linux
desc_t2_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 * Based on ETSI EN 300 468 V1.11.1 (2010-04)
19 */
20
36#ifndef _T2_DELIVERY_H
37#define _T2_DELIVERY_H
38
40
57 uint16_t transposer_frequency; // Should be 32 bits, instead
58} __attribute__((packed));
59
60
72} __attribute__((packed));
73
74
87 uint16_t cell_id;
92} __attribute__((packed));
93
120 /* extended descriptor */
121
122 uint8_t plp_id;
123 uint16_t system_id;
124 union {
125 uint16_t bitfield;
126 struct {
127 uint16_t tfs_flag:1;
130 uint16_t guard_interval:3;
131 uint16_t reserved:2;
132 uint16_t bandwidth:4;
133 uint16_t SISO_MISO:2;
134 } __attribute__((packed));
135 } __attribute__((packed));
136
139
140 /* Unused, as the definitions here are incomplete. */
143
144 /* Since version 1.13 */
145 unsigned int num_cell;
147
148} __attribute__((packed));
149
150struct dvb_v5_fe_parms;
151
152#ifdef __cplusplus
153extern "C" {
154#endif
155
173 const uint8_t *buf,
174 struct dvb_extension_descriptor *ext,
175 void *desc);
176
186 const struct dvb_extension_descriptor *ext,
187 const void *desc);
188
195void dvb_desc_t2_delivery_free(const void *desc);
196
200extern const unsigned dvbt2_bw[];
201
206extern const uint32_t dvbt2_interval[];
207
212extern const unsigned dvbt2_transmission_mode[];
213
218extern const char *siso_miso[4];
219
220#ifdef __cplusplus
221}
222#endif
223
224#endif
const char * siso_miso[4]
converts from internal representation to string the SISO_MISO field of dvb_desc_t2_delivery:SISO_MISO...
const uint32_t dvbt2_interval[]
converts from internal representation into enum fe_guard_interval, as defined at DVBv5 API.
const unsigned dvbt2_bw[]
converts from internal representation into bandwidth in Hz
const unsigned dvbt2_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.
void dvb_desc_t2_delivery_free(const void *desc)
Frees all data allocated by the T2 delivery system descriptor.
void dvb_desc_t2_delivery_print(struct dvb_v5_fe_parms *parms, const struct dvb_extension_descriptor *ext, const void *desc)
Prints the content of the T2 delivery system descriptor.
int dvb_desc_t2_delivery_init(struct dvb_v5_fe_parms *parms, const uint8_t *buf, struct dvb_extension_descriptor *ext, void *desc)
Initializes and parses the T2 delivery system descriptor.
Structure to describe transponder cells.
struct dvb_desc_t2_delivery_subcell * subcel
Structure to describe transponder subcell extension and frequencies.
Structure to describe transponder subcell extension and frequencies.
Structure containing the T2 delivery system descriptor.
struct dvb_desc_t2_delivery_cell * cell
struct dvb_desc_t2_delivery_subcell_old * subcell
Structure containing the extended descriptors.
Keeps data needed to handle the DVB frontend.
Definition: dvb-fe.h:117