libdvbv5  1.11.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 <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  * Based on ETSI EN 300 468 V1.11.1 (2010-04)
19  */
20 
36 #ifndef _T2_DELIVERY_H
37 #define _T2_DELIVERY_H
38 
39 #include <libdvbv5/descriptors.h>
40 
52 } __attribute__((packed));
53 
77  /* extended descriptor */
78 
79  uint8_t plp_id;
80  uint16_t system_id;
81  union {
82  uint16_t bitfield;
83  struct {
84  uint16_t tfs_flag:1;
86  uint16_t transmission_mode:3;
87  uint16_t guard_interval:3;
88  uint16_t reserved:2;
89  uint16_t bandwidth:3;
90  uint16_t SISO_MISO:2;
91  } __attribute__((packed));
92  } __attribute__((packed));
93 
94  uint32_t *centre_frequency;
98 } __attribute__((packed));
99 
100 struct dvb_v5_fe_parms;
101 
102 #ifdef __cplusplus
103 extern "C" {
104 #endif
105 
123  const uint8_t *buf,
124  struct dvb_extension_descriptor *ext,
125  void *desc);
126 
136  const struct dvb_extension_descriptor *ext,
137  const void *desc);
138 
145 void dvb_desc_t2_delivery_free(const void *desc);
146 
150 extern const unsigned dvbt2_bw[];
151 
156 extern const uint32_t dvbt2_interval[];
157 
162 extern const unsigned dvbt2_transmission_mode[];
163 
164 #ifdef __cplusplus
165 }
166 #endif
167 
168 #endif
Structure to describe transponder subcell extension and frequencies.
Structure containing the T2 delivery system descriptor.
Structure containing the extended descriptors.
struct dvb_desc_t2_delivery_subcell * subcell
const uint32_t dvbt2_interval[]
converts from internal representation into enum fe_guard_interval, as defined at DVBv5 API...
const unsigned dvbt2_transmission_mode[]
converts from the descriptor's transmission mode into enum fe_transmit_mode, as defined by DVBv5 API...
const unsigned dvbt2_bw[]
converts from internal representation into bandwidth in Hz
Keeps data needed to handle the DVB frontend.
Definition: dvb-fe.h:117
void dvb_desc_t2_delivery_free(const void *desc)
Frees all data allocated by 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.
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.
Provides a way to handle MPEG-TS descriptors found on Digital TV streams.