libdvbv5  1.6.3
Library to work with Digital TV devices on Linux
desc_cable_delivery.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2011-2014 - 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  * Described at ETSI EN 300 468 V1.11.1 (2010-04)
21  */
22 
39 #ifndef _CABLE_DELIVERY_H
40 #define _CABLE_DELIVERY_H
41 
42 #include <libdvbv5/descriptors.h>
43 
59  uint8_t type;
60  uint8_t length;
61  struct dvb_desc *next;
62 
63  uint32_t frequency;
64  union {
65  uint16_t bitfield1;
66  struct {
67  uint16_t fec_outer:4;
68  uint16_t reserved_future_use:12;
69  } __attribute__((packed));
70  } __attribute__((packed));
71  uint8_t modulation;
72  union {
73  uint32_t bitfield2;
74  struct {
75  uint32_t fec_inner:4;
76  uint32_t symbol_rate:28;
77  } __attribute__((packed));
78  } __attribute__((packed));
79 } __attribute__((packed));
80 
81 struct dvb_v5_fe_parms;
82 
83 #ifdef __cplusplus
84 extern "C" {
85 #endif
86 
104  const uint8_t *buf, struct dvb_desc *desc);
105 
114  const struct dvb_desc *desc);
115 
120 extern const unsigned dvbc_modulation_table[];
121 
126 extern const unsigned dvbc_fec_table[];
127 
128 
129 #ifdef __cplusplus
130 }
131 #endif
132 
133 #endif
Structure containing the cable delivery system descriptor.
int dvb_desc_cable_delivery_init(struct dvb_v5_fe_parms *parms, const uint8_t *buf, struct dvb_desc *desc)
Initializes and parses the service location descriptor.
const unsigned dvbc_fec_table[]
converts from the descriptor's FEC into enum fe_code_rate, as defined by DVBv5 API.
Keeps data needed to handle the DVB frontend.
Definition: dvb-fe.h:118
void dvb_desc_cable_delivery_print(struct dvb_v5_fe_parms *parms, const struct dvb_desc *desc)
Prints the content of the service location descriptor.
Linked list containing the several descriptors found on a MPEG-TS table.
Definition: descriptors.h:118
Provides a way to handle MPEG-TS descriptors found on Digital TV streams.
const unsigned dvbc_modulation_table[]
converts from the descriptor's modulation into enum fe_modulation, as defined by DVBv5 API...