desc_sat.h
Go to the documentation of this file.
/*
* Copyright (c) 2011-2014 - 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
*
*/
#ifndef _SAT_H
#define _SAT_H
#include <libdvbv5/descriptors.h>
struct dvb_desc_sat {
uint8_t type;
uint8_t length;
struct dvb_desc *next;
uint32_t frequency;
uint16_t orbit;
uint8_t modulation_type:2;
uint8_t modulation_system:1;
uint8_t roll_off:2;
uint8_t polarization:2;
uint8_t west_east:1;
union {
uint32_t bitfield;
struct {
uint32_t fec:4;
uint32_t symbol_rate:28;
} __attribute__((packed));
} __attribute__((packed));
} __attribute__((packed));
struct dvb_v5_fe_parms;
#ifdef __cplusplus
extern "C" {
#endif
int dvb_desc_sat_init(struct dvb_v5_fe_parms *parms,
const uint8_t *buf, struct dvb_desc *desc);
void dvb_desc_sat_print(struct dvb_v5_fe_parms *parms,
const struct dvb_desc *desc);
extern const unsigned dvbs_dvbc_dvbs_freq_inner[];
extern const unsigned dvbs_polarization[];
extern const unsigned dvbs_rolloff[];
extern const unsigned dvbs_modulation[];
#ifdef __cplusplus
}
#endif
#endif
dvbs_modulation
const unsigned dvbs_modulation[]
converts from the descriptor's modulation into enum fe_modulation, as defined by DVBv5 API.
dvbs_dvbc_dvbs_freq_inner
const unsigned dvbs_dvbc_dvbs_freq_inner[]
converts from the descriptor's FEC into enum fe_code_rate, as defined by DVBv5 API.
dvbs_polarization
const unsigned dvbs_polarization[]
converts from the descriptor's polarization into enum dvb_sat_polarization, as defined at dvb-v5-std....
dvbs_rolloff
const unsigned dvbs_rolloff[]
converts from the descriptor's rolloff into enum fe_rolloff, as defined by DVBv5 API.
descriptors.h
Provides a way to handle MPEG-TS descriptors found on Digital TV streams.
dvb_desc_sat_init
int dvb_desc_sat_init(struct dvb_v5_fe_parms *parms, const uint8_t *buf, struct dvb_desc *desc)
Initializes and parses the satellite delivery system descriptor.
dvb_desc_sat_print
void dvb_desc_sat_print(struct dvb_v5_fe_parms *parms, const struct dvb_desc *desc)
Prints the content of the satellite delivery system descriptor.
dvb_desc_sat
Structure containing the satellite delivery system descriptor.
Definition desc_sat.h:63
dvb_desc_sat::polarization
uint8_t polarization
Definition desc_sat.h:73
dvb_desc_sat::frequency
uint32_t frequency
Definition desc_sat.h:68
dvb_desc_sat::modulation_type
uint8_t modulation_type
Definition desc_sat.h:70
dvb_desc_sat::roll_off
uint8_t roll_off
Definition desc_sat.h:72
dvb_desc_sat::type
uint8_t type
Definition desc_sat.h:64
dvb_desc_sat::symbol_rate
uint32_t symbol_rate
Definition desc_sat.h:79
dvb_desc_sat::west_east
uint8_t west_east
Definition desc_sat.h:74
dvb_desc_sat::fec
uint32_t fec
Definition desc_sat.h:78
dvb_desc_sat::bitfield
uint32_t bitfield
Definition desc_sat.h:76
dvb_desc_sat::next
struct dvb_desc * next
Definition desc_sat.h:66
dvb_desc_sat::length
uint8_t length
Definition desc_sat.h:65
dvb_desc_sat::modulation_system
uint8_t modulation_system
Definition desc_sat.h:71
dvb_desc_sat::orbit
uint16_t orbit
Definition desc_sat.h:69
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