desc_t2_delivery.h
Go to the documentation of this file.
/*
* Copyright (c) 2013-2014 - Mauro Carvalho Chehab <mchehab@kernel.org>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation version 2.1 of the License.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
* Or, point your browser to http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
*
* Based on ETSI EN 300 468 V1.11.1 (2010-04)
*/
#ifndef _T2_DELIVERY_H
#define _T2_DELIVERY_H
#include <libdvbv5/descriptors.h>
struct dvb_desc_t2_delivery_subcell_old {
uint8_t cell_id_extension;
uint16_t transposer_frequency; // Should be 32 bits, instead
} __attribute__((packed));
struct dvb_desc_t2_delivery_subcell {
uint8_t cell_id_extension;
uint32_t transposer_frequency;
} __attribute__((packed));
struct dvb_desc_t2_delivery_cell {
uint16_t cell_id;
int num_freqs;
uint32_t *centre_frequency;
uint8_t subcel_length;
struct dvb_desc_t2_delivery_subcell *subcel;
} __attribute__((packed));
struct dvb_desc_t2_delivery {
/* extended descriptor */
uint8_t plp_id;
uint16_t system_id;
union {
uint16_t bitfield;
struct {
uint16_t tfs_flag:1;
uint16_t other_frequency_flag:1;
uint16_t transmission_mode:3;
uint16_t guard_interval:3;
uint16_t reserved:2;
uint16_t bandwidth:4;
uint16_t SISO_MISO:2;
} __attribute__((packed));
} __attribute__((packed));
uint32_t *centre_frequency;
uint8_t frequency_loop_length;
/* Unused, as the definitions here are incomplete. */
uint8_t subcel_info_loop_length;
struct dvb_desc_t2_delivery_subcell_old *subcell;
/* Since version 1.13 */
unsigned int num_cell;
struct dvb_desc_t2_delivery_cell *cell;
} __attribute__((packed));
struct dvb_v5_fe_parms;
#ifdef __cplusplus
extern "C" {
#endif
int dvb_desc_t2_delivery_init(struct dvb_v5_fe_parms *parms,
const uint8_t *buf,
struct dvb_extension_descriptor *ext,
void *desc);
void dvb_desc_t2_delivery_print(struct dvb_v5_fe_parms *parms,
const struct dvb_extension_descriptor *ext,
const void *desc);
void dvb_desc_t2_delivery_free(const void *desc);
extern const unsigned dvbt2_bw[];
extern const uint32_t dvbt2_interval[];
extern const unsigned dvbt2_transmission_mode[];
extern const char *siso_miso[4];
#ifdef __cplusplus
}
#endif
#endif
siso_miso
const char * siso_miso[4]
converts from internal representation to string the SISO_MISO field of dvb_desc_t2_delivery:SISO_MISO...
dvbt2_interval
const uint32_t dvbt2_interval[]
converts from internal representation into enum fe_guard_interval, as defined at DVBv5 API.
dvbt2_bw
const unsigned dvbt2_bw[]
converts from internal representation into bandwidth in Hz
dvbt2_transmission_mode
const unsigned dvbt2_transmission_mode[]
converts from the descriptor's transmission mode into enum fe_transmit_mode, as defined by DVBv5 API.
descriptors.h
Provides a way to handle MPEG-TS descriptors found on Digital TV streams.
dvb_desc_t2_delivery_free
void dvb_desc_t2_delivery_free(const void *desc)
Frees all data allocated by the T2 delivery system descriptor.
dvb_desc_t2_delivery_print
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.
dvb_desc_t2_delivery_init
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.
dvb_desc_t2_delivery_cell
Structure to describe transponder cells.
Definition desc_t2_delivery.h:86
dvb_desc_t2_delivery_cell::cell_id
uint16_t cell_id
Definition desc_t2_delivery.h:87
dvb_desc_t2_delivery_cell::num_freqs
int num_freqs
Definition desc_t2_delivery.h:88
dvb_desc_t2_delivery_cell::centre_frequency
uint32_t * centre_frequency
Definition desc_t2_delivery.h:89
dvb_desc_t2_delivery_cell::subcel
struct dvb_desc_t2_delivery_subcell * subcel
Definition desc_t2_delivery.h:91
dvb_desc_t2_delivery_cell::subcel_length
uint8_t subcel_length
Definition desc_t2_delivery.h:90
dvb_desc_t2_delivery_subcell_old
Structure to describe transponder subcell extension and frequencies.
Definition desc_t2_delivery.h:55
dvb_desc_t2_delivery_subcell_old::transposer_frequency
uint16_t transposer_frequency
Definition desc_t2_delivery.h:57
dvb_desc_t2_delivery_subcell_old::cell_id_extension
uint8_t cell_id_extension
Definition desc_t2_delivery.h:56
dvb_desc_t2_delivery_subcell
Structure to describe transponder subcell extension and frequencies.
Definition desc_t2_delivery.h:69
dvb_desc_t2_delivery_subcell::transposer_frequency
uint32_t transposer_frequency
Definition desc_t2_delivery.h:71
dvb_desc_t2_delivery_subcell::cell_id_extension
uint8_t cell_id_extension
Definition desc_t2_delivery.h:70
dvb_desc_t2_delivery
Structure containing the T2 delivery system descriptor.
Definition desc_t2_delivery.h:119
dvb_desc_t2_delivery::SISO_MISO
uint16_t SISO_MISO
Definition desc_t2_delivery.h:133
dvb_desc_t2_delivery::frequency_loop_length
uint8_t frequency_loop_length
Definition desc_t2_delivery.h:138
dvb_desc_t2_delivery::guard_interval
uint16_t guard_interval
Definition desc_t2_delivery.h:130
dvb_desc_t2_delivery::num_cell
unsigned int num_cell
Definition desc_t2_delivery.h:145
dvb_desc_t2_delivery::cell
struct dvb_desc_t2_delivery_cell * cell
Definition desc_t2_delivery.h:146
dvb_desc_t2_delivery::subcell
struct dvb_desc_t2_delivery_subcell_old * subcell
Definition desc_t2_delivery.h:142
dvb_desc_t2_delivery::plp_id
uint8_t plp_id
Definition desc_t2_delivery.h:122
dvb_desc_t2_delivery::transmission_mode
uint16_t transmission_mode
Definition desc_t2_delivery.h:129
dvb_desc_t2_delivery::centre_frequency
uint32_t * centre_frequency
Definition desc_t2_delivery.h:137
dvb_desc_t2_delivery::tfs_flag
uint16_t tfs_flag
Definition desc_t2_delivery.h:127
dvb_desc_t2_delivery::bandwidth
uint16_t bandwidth
Definition desc_t2_delivery.h:132
dvb_desc_t2_delivery::reserved
uint16_t reserved
Definition desc_t2_delivery.h:131
dvb_desc_t2_delivery::bitfield
uint16_t bitfield
Definition desc_t2_delivery.h:125
dvb_desc_t2_delivery::system_id
uint16_t system_id
Definition desc_t2_delivery.h:123
dvb_desc_t2_delivery::other_frequency_flag
uint16_t other_frequency_flag
Definition desc_t2_delivery.h:128
dvb_desc_t2_delivery::subcel_info_loop_length
uint8_t subcel_info_loop_length
Definition desc_t2_delivery.h:141
dvb_extension_descriptor
Structure containing the extended descriptors.
Definition desc_extension.h:115
dvb_v5_fe_parms
Keeps data needed to handle the DVB frontend.
Definition dvb-fe.h:117