libdvbv5  1.10.0
Library to work with Digital TV devices on Linux
desc_terrestrial_delivery.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2011-2012 - Mauro Carvalho Chehab
3  * Copyright (c) 2012 - Andre Roth <neolynx@gmail.com>
4  *
5  * This program is free software; you can redistribute it and/or
6  * modify it under the terms of the GNU General Public License
7  * as published by the Free Software Foundation version 2
8  * of the License.
9  *
10  * This program is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  * GNU General Public License for more details.
14  *
15  * You should have received a copy of the GNU General Public License
16  * along with this program; if not, write to the Free Software
17  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
18  * Or, point your browser to http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
19  *
20  * Based on ETSI EN 300 468 V1.11.1 (2010-04)
21  *
22  */
23 
40 #ifndef _TERRESTRIAL_DELIVERY_H
41 #define _TERRESTRIAL_DELIVERY_H
42 
43 #include <libdvbv5/descriptors.h>
44 
67  uint8_t type;
68  uint8_t length;
69  struct dvb_desc *next;
70 
71  uint32_t centre_frequency;
73  uint8_t mpe_fec_indicator:1;
75  uint8_t priority:1;
76  uint8_t bandwidth:3;
79  uint8_t constellation:2;
81  uint8_t transmission_mode:2;
82  uint8_t guard_interval:2;
85 } __attribute__((packed));
86 
87 struct dvb_v5_fe_parms;
88 
89 #ifdef __cplusplus
90 extern "C" {
91 #endif
92 
109  const uint8_t *buf,
110  struct dvb_desc *desc);
111 
120  const struct dvb_desc *desc);
121 
125 extern const unsigned dvbt_bw[];
126 
131 extern const unsigned dvbt_modulation[];
132 
137 extern const unsigned dvbt_hierarchy[];
138 
143 extern const unsigned dvbt_code_rate[];
144 
149 extern const uint32_t dvbt_interval[];
150 
155 extern const unsigned dvbt_transmission_mode[];
156 
157 #ifdef __cplusplus
158 }
159 #endif
160 
161 #endif
const unsigned dvbt_hierarchy[]
converts from the descriptor's hierarchy into enum fe_hierarchy, as defined by DVBv5 API...
Structure containing the DVB-T terrestrial delivery system descriptor.
const unsigned dvbt_code_rate[]
converts from the descriptor's FEC into enum fe_code_rate, as defined by DVBv5 API.
void dvb_desc_terrestrial_delivery_print(struct dvb_v5_fe_parms *parms, const struct dvb_desc *desc)
Prints the content of the DVB-T terrestrial delivery system descriptor.
const unsigned dvbt_modulation[]
converts from the descriptor's modulation into enum fe_modulation, as defined by DVBv5 API...
Keeps data needed to handle the DVB frontend.
Definition: dvb-fe.h:118
const unsigned dvbt_bw[]
converts from internal representation into bandwidth in Hz
Linked list containing the several descriptors found on a MPEG-TS table.
Definition: descriptors.h:118
int dvb_desc_terrestrial_delivery_init(struct dvb_v5_fe_parms *parms, const uint8_t *buf, struct dvb_desc *desc)
Initializes and parses the DVB-T terrestrial delivery system descriptor.
const unsigned dvbt_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.
const uint32_t dvbt_interval[]
converts from internal representation into enum fe_guard_interval, as defined at DVBv5 API...