libdvbv5  1.10.0
Library to work with Digital TV devices on Linux
desc_logical_channel.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2013 - 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  * Described on IEC/CENELEC DS/EN 62216-1:2011
20  *
21  * I couldn't find the original version, so I used what's there at:
22  * http://tdt.telecom.pt/recursos/apresentacoes/Signalling Specifications for DTT deployment in Portugal.pdf
23  */
24 
42 #ifndef _LCN_DESC_H
43 #define _LCN_DESC_H
44 
45 #include <libdvbv5/descriptors.h>
46 
58  uint16_t service_id;
59  union {
60  uint16_t bitfield;
61  struct {
63  uint16_t reserved:5;
65  } __attribute__((packed));
66  } __attribute__((packed));
67 } __attribute__((packed));
68 
80  uint8_t type;
81  uint8_t length;
82  struct dvb_desc *next;
83 
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, struct dvb_desc *desc);
110 
119  const struct dvb_desc *desc);
120 
127 void dvb_desc_logical_channel_free(struct dvb_desc *desc);
128 
129 #ifdef __cplusplus
130 }
131 #endif
132 
133 #endif
Structure containing the logical channel number descriptor.
Structure containing the logical channel number entires.
void dvb_desc_logical_channel_print(struct dvb_v5_fe_parms *parms, const struct dvb_desc *desc)
Prints the content of the logical channel number descriptor.
Keeps data needed to handle the DVB frontend.
Definition: dvb-fe.h:118
int dvb_desc_logical_channel_init(struct dvb_v5_fe_parms *parms, const uint8_t *buf, struct dvb_desc *desc)
Initializes and parses the logical channel number descriptor.
Linked list containing the several descriptors found on a MPEG-TS table.
Definition: descriptors.h:118
struct dvb_desc_logical_channel_number * lcn
Provides a way to handle MPEG-TS descriptors found on Digital TV streams.
void dvb_desc_logical_channel_free(struct dvb_desc *desc)
Frees all data allocated by the logical channel number descriptor.