libdvbv5  1.11.0
Library to work with Digital TV devices on Linux
desc_terrestrial_delivery.h File Reference

Provides the descriptors for the DVB-T terrestrial delivery system descriptor. More...

Include dependency graph for desc_terrestrial_delivery.h:

Go to the source code of this file.

Data Structures

struct  dvb_desc_terrestrial_delivery
 Structure containing the DVB-T terrestrial delivery system descriptor. More...
 

Functions

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. More...
 
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. More...
 

Variables

const unsigned dvbt_bw []
 converts from internal representation into bandwidth in Hz More...
 
const unsigned dvbt_modulation []
 converts from the descriptor's modulation into enum fe_modulation, as defined by DVBv5 API. More...
 
const unsigned dvbt_hierarchy []
 converts from the descriptor's hierarchy into enum fe_hierarchy, as defined by DVBv5 API. More...
 
const unsigned dvbt_code_rate []
 converts from the descriptor's FEC into enum fe_code_rate, as defined by DVBv5 API. More...
 
const uint32_t dvbt_interval []
 converts from internal representation into enum fe_guard_interval, as defined at DVBv5 API. More...
 
const unsigned dvbt_transmission_mode []
 converts from the descriptor's transmission mode into enum fe_transmit_mode, as defined by DVBv5 API. More...
 

Detailed Description

Provides the descriptors for the DVB-T terrestrial delivery system descriptor.

Author
Mauro Carvalho Chehab
Andre Roth
Relevant specs
The descriptor described herein is defined at:
  • ETSI EN 300 468 V1.11.1
Bug Report
Please submit bug reports and patches to linux.nosp@m.-med.nosp@m.ia@vg.nosp@m.er.k.nosp@m.ernel.nosp@m..org

Definition in file desc_terrestrial_delivery.h.

Function Documentation

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.

Parameters
parmsstruct dvb_v5_fe_parms pointer to the opened device
bufbuffer containing the descriptor's raw data
descpointer to struct dvb_desc to be allocated and filled

This function initializes and makes sure that all fields will follow the CPU endianness. Due to that, the content of the buffer may change.

Currently, no memory is allocated internally.

Returns
On success, it returns the size of the allocated struct. A negative value indicates an error.

Variable Documentation

const unsigned dvbt_bw[]

converts from internal representation into bandwidth in Hz

const unsigned dvbt_code_rate[]

converts from the descriptor's FEC into enum fe_code_rate, as defined by DVBv5 API.

const unsigned dvbt_hierarchy[]

converts from the descriptor's hierarchy into enum fe_hierarchy, as defined by DVBv5 API.

const uint32_t dvbt_interval[]

converts from internal representation into enum fe_guard_interval, as defined at DVBv5 API.

const unsigned dvbt_modulation[]

converts from the descriptor's modulation into enum fe_modulation, as defined by DVBv5 API.

const unsigned dvbt_transmission_mode[]

converts from the descriptor's transmission mode into enum fe_transmit_mode, as defined by DVBv5 API.