libdvbv5  1.10.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 <m.chehab@samsung.com>
3  *
4  * This program is free software; you can redistribute it and/or
5  * modify it under the terms of the GNU General Public License
6  * as published by the Free Software Foundation version 2
7  * of the License.
8  *
9  * This program is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12  * GNU General Public License for more details.
13  *
14  * You should have received a copy of the GNU General Public License
15  * along with this program; if not, write to the Free Software
16  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
17  * Or, point your browser to http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
18  *
19  * Based on ETSI EN 300 468 V1.11.1 (2010-04)
20  */
21 
37 #ifndef _T2_DELIVERY_H
38 #define _T2_DELIVERY_H
39 
40 #include <libdvbv5/descriptors.h>
41 
53 } __attribute__((packed));
54 
78  /* extended descriptor */
79 
80  uint8_t plp_id;
81  uint16_t system_id;
82  union {
83  uint16_t bitfield;
84  struct {
85  uint16_t tfs_flag:1;
86  uint16_t other_frequency_flag:1;
87  uint16_t transmission_mode:3;
88  uint16_t guard_interval:3;
89  uint16_t reserved:2;
90  uint16_t bandwidth:3;
91  uint16_t SISO_MISO:2;
92  } __attribute__((packed));
93  } __attribute__((packed));
94 
95  uint32_t *centre_frequency;
99 } __attribute__((packed));
100 
101 struct dvb_v5_fe_parms;
102 
103 #ifdef __cplusplus
104 extern "C" {
105 #endif
106 
124  const uint8_t *buf,
125  struct dvb_extension_descriptor *ext,
126  void *desc);
127 
137  const struct dvb_extension_descriptor *ext,
138  const void *desc);
139 
146 void dvb_desc_t2_delivery_free(const void *desc);
147 
151 extern const unsigned dvbt2_bw[];
152 
157 extern const uint32_t dvbt2_interval[];
158 
163 extern const unsigned dvbt2_transmission_mode[];
164 
165 #ifdef __cplusplus
166 }
167 #endif
168 
169 #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&#39;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:118
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.