desc_terrestrial_delivery.h
Go to the documentation of this file.
/*
* Copyright (c) 2011-2012 - Mauro Carvalho Chehab
* Copyright (c) 2012 - Andre Roth <neolynx@gmail.com>
*
* 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 _TERRESTRIAL_DELIVERY_H
#define _TERRESTRIAL_DELIVERY_H
#include <libdvbv5/descriptors.h>
struct dvb_desc_terrestrial_delivery {
uint8_t type;
uint8_t length;
struct dvb_desc *next;
uint32_t centre_frequency;
uint8_t reserved_future_use1:2;
uint8_t mpe_fec_indicator:1;
uint8_t time_slice_indicator:1;
uint8_t priority:1;
uint8_t bandwidth:3;
uint8_t code_rate_hp_stream:3;
uint8_t hierarchy_information:3;
uint8_t constellation:2;
uint8_t other_frequency_flag:1;
uint8_t transmission_mode:2;
uint8_t guard_interval:2;
uint8_t code_rate_lp_stream:3;
uint32_t reserved_future_use2;
} __attribute__((packed));
struct dvb_v5_fe_parms;
#ifdef __cplusplus
extern "C" {
#endif
int dvb_desc_terrestrial_delivery_init(struct dvb_v5_fe_parms *parms,
const uint8_t *buf,
struct dvb_desc *desc);
void dvb_desc_terrestrial_delivery_print(struct dvb_v5_fe_parms *parms,
const struct dvb_desc *desc);
extern const unsigned dvbt_bw[];
extern const unsigned dvbt_modulation[];
extern const unsigned dvbt_hierarchy[];
extern const unsigned dvbt_code_rate[];
extern const uint32_t dvbt_interval[];
extern const unsigned dvbt_transmission_mode[];
#ifdef __cplusplus
}
#endif
#endif
dvbt_modulation
const unsigned dvbt_modulation[]
converts from the descriptor's modulation into enum fe_modulation, as defined by DVBv5 API.
dvbt_interval
const uint32_t dvbt_interval[]
converts from internal representation into enum fe_guard_interval, as defined at DVBv5 API.
dvbt_hierarchy
const unsigned dvbt_hierarchy[]
converts from the descriptor's hierarchy into enum fe_hierarchy, as defined by DVBv5 API.
dvb_desc_terrestrial_delivery_init
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.
dvbt_bw
const unsigned dvbt_bw[]
converts from internal representation into bandwidth in Hz
dvbt_transmission_mode
const unsigned dvbt_transmission_mode[]
converts from the descriptor's transmission mode into enum fe_transmit_mode, as defined by DVBv5 API.
dvbt_code_rate
const unsigned dvbt_code_rate[]
converts from the descriptor's FEC into enum fe_code_rate, as defined by DVBv5 API.
descriptors.h
Provides a way to handle MPEG-TS descriptors found on Digital TV streams.
dvb_desc_terrestrial_delivery_print
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.
dvb_desc_terrestrial_delivery
Structure containing the DVB-T terrestrial delivery system descriptor.
Definition desc_terrestrial_delivery.h:65
dvb_desc_terrestrial_delivery::reserved_future_use2
uint32_t reserved_future_use2
Definition desc_terrestrial_delivery.h:83
dvb_desc_terrestrial_delivery::time_slice_indicator
uint8_t time_slice_indicator
Definition desc_terrestrial_delivery.h:73
dvb_desc_terrestrial_delivery::type
uint8_t type
Definition desc_terrestrial_delivery.h:66
dvb_desc_terrestrial_delivery::hierarchy_information
uint8_t hierarchy_information
Definition desc_terrestrial_delivery.h:77
dvb_desc_terrestrial_delivery::guard_interval
uint8_t guard_interval
Definition desc_terrestrial_delivery.h:81
dvb_desc_terrestrial_delivery::constellation
uint8_t constellation
Definition desc_terrestrial_delivery.h:78
dvb_desc_terrestrial_delivery::priority
uint8_t priority
Definition desc_terrestrial_delivery.h:74
dvb_desc_terrestrial_delivery::next
struct dvb_desc * next
Definition desc_terrestrial_delivery.h:68
dvb_desc_terrestrial_delivery::reserved_future_use1
uint8_t reserved_future_use1
Definition desc_terrestrial_delivery.h:71
dvb_desc_terrestrial_delivery::length
uint8_t length
Definition desc_terrestrial_delivery.h:67
dvb_desc_terrestrial_delivery::code_rate_lp_stream
uint8_t code_rate_lp_stream
Definition desc_terrestrial_delivery.h:82
dvb_desc_terrestrial_delivery::other_frequency_flag
uint8_t other_frequency_flag
Definition desc_terrestrial_delivery.h:79
dvb_desc_terrestrial_delivery::transmission_mode
uint8_t transmission_mode
Definition desc_terrestrial_delivery.h:80
dvb_desc_terrestrial_delivery::centre_frequency
uint32_t centre_frequency
Definition desc_terrestrial_delivery.h:70
dvb_desc_terrestrial_delivery::mpe_fec_indicator
uint8_t mpe_fec_indicator
Definition desc_terrestrial_delivery.h:72
dvb_desc_terrestrial_delivery::code_rate_hp_stream
uint8_t code_rate_hp_stream
Definition desc_terrestrial_delivery.h:76
dvb_desc_terrestrial_delivery::bandwidth
uint8_t bandwidth
Definition desc_terrestrial_delivery.h:75
dvb_desc
Linked list containing the several descriptors found on a MPEG-TS table.
Definition descriptors.h:117
dvb_v5_fe_parms
Keeps data needed to handle the DVB frontend.
Definition dvb-fe.h:117