desc_isdbt_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
*
* Described on ARIB STD-B10 as Terrestrial delivery system descriptor
*/
#ifndef _ISDBT_DELIVERY_H
#define _ISDBT_DELIVERY_H
#include <libdvbv5/descriptors.h>
struct isdbt_desc_terrestrial_delivery_system {
uint8_t type;
uint8_t length;
struct dvb_desc *next;
uint32_t *frequency;
unsigned num_freqs;
union {
uint16_t bitfield;
struct {
uint16_t transmission_mode:2;
uint16_t guard_interval:2;
uint16_t area_code:12;
} __attribute__((packed));
} __attribute__((packed));
} __attribute__((packed));
struct dvb_v5_fe_parms;
#ifdef __cplusplus
extern "C" {
#endif
int isdbt_desc_delivery_init(struct dvb_v5_fe_parms *parms,
const uint8_t *buf, struct dvb_desc *desc);
void isdbt_desc_delivery_print(struct dvb_v5_fe_parms *parms,
const struct dvb_desc *desc);
void isdbt_desc_delivery_free(struct dvb_desc *desc);
extern const uint32_t isdbt_interval[];
extern const uint32_t isdbt_mode[];
#ifdef __cplusplus
}
#endif
#endif
isdbt_interval
const uint32_t isdbt_interval[]
Converts an ISDB-T Interval code into a string.
isdbt_mode
const uint32_t isdbt_mode[]
Converts an ISDB-T mode into a string.
descriptors.h
Provides a way to handle MPEG-TS descriptors found on Digital TV streams.
isdbt_desc_delivery_init
int isdbt_desc_delivery_init(struct dvb_v5_fe_parms *parms, const uint8_t *buf, struct dvb_desc *desc)
Initializes and parses the ISDB-T terrestrial delivery system descriptor.
isdbt_desc_delivery_free
void isdbt_desc_delivery_free(struct dvb_desc *desc)
Frees all data allocated by the ISDB-T terrestrial delivery system descriptor.
isdbt_desc_delivery_print
void isdbt_desc_delivery_print(struct dvb_v5_fe_parms *parms, const struct dvb_desc *desc)
Prints the content of the ISDB-T terrestrial delivery system descriptor.
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
isdbt_desc_terrestrial_delivery_system
Struct containing the ISDB-T terrestrial delivery system.
Definition desc_isdbt_delivery.h:57
isdbt_desc_terrestrial_delivery_system::guard_interval
uint16_t guard_interval
Definition desc_isdbt_delivery.h:69
isdbt_desc_terrestrial_delivery_system::type
uint8_t type
Definition desc_isdbt_delivery.h:58
isdbt_desc_terrestrial_delivery_system::frequency
uint32_t * frequency
Definition desc_isdbt_delivery.h:62
isdbt_desc_terrestrial_delivery_system::bitfield
uint16_t bitfield
Definition desc_isdbt_delivery.h:66
isdbt_desc_terrestrial_delivery_system::area_code
uint16_t area_code
Definition desc_isdbt_delivery.h:70
isdbt_desc_terrestrial_delivery_system::next
struct dvb_desc * next
Definition desc_isdbt_delivery.h:60
isdbt_desc_terrestrial_delivery_system::num_freqs
unsigned num_freqs
Definition desc_isdbt_delivery.h:63
isdbt_desc_terrestrial_delivery_system::transmission_mode
uint16_t transmission_mode
Definition desc_isdbt_delivery.h:68
isdbt_desc_terrestrial_delivery_system::length
uint8_t length
Definition desc_isdbt_delivery.h:59