libdvbv5  1.12.6
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 
55  uint16_t transposer_frequency; // Should be 32 bits, instead
56 } __attribute__((packed));
57 
82  /* extended descriptor */
83 
84  uint8_t plp_id;
85  uint16_t system_id;
86  union {
87  uint16_t bitfield;
88  struct {
89  uint16_t tfs_flag:1;
91  uint16_t transmission_mode:3;
92  uint16_t guard_interval:3;
93  uint16_t reserved:2;
94  uint16_t bandwidth:4;
95  uint16_t SISO_MISO:2;
96  } __attribute__((packed));
97  } __attribute__((packed));
98 
99  uint32_t *centre_frequency;
101 
102  /* Unused, as the definitions here are incomplete */
105 } __attribute__((packed));
106 
107 struct dvb_v5_fe_parms;
108 
109 #ifdef __cplusplus
110 extern "C" {
111 #endif
112 
130  const uint8_t *buf,
131  struct dvb_extension_descriptor *ext,
132  void *desc);
133 
143  const struct dvb_extension_descriptor *ext,
144  const void *desc);
145 
152 void dvb_desc_t2_delivery_free(const void *desc);
153 
157 extern const unsigned dvbt2_bw[];
158 
163 extern const uint32_t dvbt2_interval[];
164 
169 extern const unsigned dvbt2_transmission_mode[];
170 
175 const char *siso_miso[4];
176 
177 #ifdef __cplusplus
178 }
179 #endif
180 
181 #endif
Structure to describe transponder subcell extension and frequencies.
const char * siso_miso[4]
converts from internal representation to string the SISO_MISO field of dvb_desc_t2_delivery:SISO_MISO...
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: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.