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

libdvbv5 1.32.0 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
35
36#ifndef _T2_DELIVERY_H
37#define _T2_DELIVERY_H
38
39#include <libdvbv5/descriptors.h>
40
55 struct dvb_desc_t2_delivery_subcell_old {
56 uint8_t cell_id_extension;
57 uint16_t transposer_frequency; // Should be 32 bits, instead
58} __attribute__((packed));
59
60
69 struct dvb_desc_t2_delivery_subcell {
70 uint8_t cell_id_extension;
71 uint32_t transposer_frequency;
72} __attribute__((packed));
73
74
86 struct dvb_desc_t2_delivery_cell {
87 uint16_t cell_id;
88 int num_freqs;
89 uint32_t *centre_frequency;
90 uint8_t subcel_length;
91 struct dvb_desc_t2_delivery_subcell *subcel;
92} __attribute__((packed));
93
119 struct dvb_desc_t2_delivery {
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;
128 uint16_t other_frequency_flag:1;
129 uint16_t transmission_mode:3;
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
137 uint32_t *centre_frequency;
138 uint8_t frequency_loop_length;
139
140 /* Unused, as the definitions here are incomplete. */
141 uint8_t subcel_info_loop_length;
142 struct dvb_desc_t2_delivery_subcell_old *subcell;
143
144 /* Since version 1.13 */
145 unsigned int num_cell;
146 struct dvb_desc_t2_delivery_cell *cell;
147
148} __attribute__((packed));
149
150struct dvb_v5_fe_parms;
151
152#ifdef __cplusplus
153extern "C" {
154#endif
155
172 int dvb_desc_t2_delivery_init(struct dvb_v5_fe_parms *parms,
173 const uint8_t *buf,
174 struct dvb_extension_descriptor *ext,
175 void *desc);
176
185 void dvb_desc_t2_delivery_print(struct dvb_v5_fe_parms *parms,
186 const struct dvb_extension_descriptor *ext,
187 const void *desc);
188
195 void 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
siso_miso
const char * siso_miso[4]
converts from internal representation to string the SISO_MISO field of dvb_desc_t2_delivery:SISO_MISO...
dvbt2_interval
const uint32_t dvbt2_interval[]
converts from internal representation into enum fe_guard_interval, as defined at DVBv5 API.
dvbt2_bw
const unsigned dvbt2_bw[]
converts from internal representation into bandwidth in Hz
dvbt2_transmission_mode
const unsigned dvbt2_transmission_mode[]
converts from the descriptor's transmission mode into enum fe_transmit_mode, as defined by DVBv5 API.
descriptors.h
Provides a way to handle MPEG-TS descriptors found on Digital TV streams.
dvb_desc_t2_delivery_free
void dvb_desc_t2_delivery_free(const void *desc)
Frees all data allocated by the T2 delivery system descriptor.
dvb_desc_t2_delivery_print
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.
dvb_desc_t2_delivery_init
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.
dvb_desc_t2_delivery_cell
Structure to describe transponder cells.
Definition desc_t2_delivery.h:86
dvb_desc_t2_delivery_cell::cell_id
uint16_t cell_id
Definition desc_t2_delivery.h:87
dvb_desc_t2_delivery_cell::num_freqs
int num_freqs
Definition desc_t2_delivery.h:88
dvb_desc_t2_delivery_cell::centre_frequency
uint32_t * centre_frequency
Definition desc_t2_delivery.h:89
dvb_desc_t2_delivery_cell::subcel
struct dvb_desc_t2_delivery_subcell * subcel
Definition desc_t2_delivery.h:91
dvb_desc_t2_delivery_cell::subcel_length
uint8_t subcel_length
Definition desc_t2_delivery.h:90
dvb_desc_t2_delivery_subcell_old
Structure to describe transponder subcell extension and frequencies.
Definition desc_t2_delivery.h:55
dvb_desc_t2_delivery_subcell_old::transposer_frequency
uint16_t transposer_frequency
Definition desc_t2_delivery.h:57
dvb_desc_t2_delivery_subcell_old::cell_id_extension
uint8_t cell_id_extension
Definition desc_t2_delivery.h:56
dvb_desc_t2_delivery_subcell
Structure to describe transponder subcell extension and frequencies.
Definition desc_t2_delivery.h:69
dvb_desc_t2_delivery_subcell::transposer_frequency
uint32_t transposer_frequency
Definition desc_t2_delivery.h:71
dvb_desc_t2_delivery_subcell::cell_id_extension
uint8_t cell_id_extension
Definition desc_t2_delivery.h:70
dvb_desc_t2_delivery
Structure containing the T2 delivery system descriptor.
Definition desc_t2_delivery.h:119
dvb_desc_t2_delivery::SISO_MISO
uint16_t SISO_MISO
Definition desc_t2_delivery.h:133
dvb_desc_t2_delivery::frequency_loop_length
uint8_t frequency_loop_length
Definition desc_t2_delivery.h:138
dvb_desc_t2_delivery::guard_interval
uint16_t guard_interval
Definition desc_t2_delivery.h:130
dvb_desc_t2_delivery::num_cell
unsigned int num_cell
Definition desc_t2_delivery.h:145
dvb_desc_t2_delivery::cell
struct dvb_desc_t2_delivery_cell * cell
Definition desc_t2_delivery.h:146
dvb_desc_t2_delivery::subcell
struct dvb_desc_t2_delivery_subcell_old * subcell
Definition desc_t2_delivery.h:142
dvb_desc_t2_delivery::plp_id
uint8_t plp_id
Definition desc_t2_delivery.h:122
dvb_desc_t2_delivery::transmission_mode
uint16_t transmission_mode
Definition desc_t2_delivery.h:129
dvb_desc_t2_delivery::centre_frequency
uint32_t * centre_frequency
Definition desc_t2_delivery.h:137
dvb_desc_t2_delivery::tfs_flag
uint16_t tfs_flag
Definition desc_t2_delivery.h:127
dvb_desc_t2_delivery::bandwidth
uint16_t bandwidth
Definition desc_t2_delivery.h:132
dvb_desc_t2_delivery::reserved
uint16_t reserved
Definition desc_t2_delivery.h:131
dvb_desc_t2_delivery::bitfield
uint16_t bitfield
Definition desc_t2_delivery.h:125
dvb_desc_t2_delivery::system_id
uint16_t system_id
Definition desc_t2_delivery.h:123
dvb_desc_t2_delivery::other_frequency_flag
uint16_t other_frequency_flag
Definition desc_t2_delivery.h:128
dvb_desc_t2_delivery::subcel_info_loop_length
uint8_t subcel_info_loop_length
Definition desc_t2_delivery.h:141
dvb_extension_descriptor
Structure containing the extended descriptors.
Definition desc_extension.h:115
dvb_v5_fe_parms
Keeps data needed to handle the DVB frontend.
Definition dvb-fe.h:117