dvb-sat.h
Go to the documentation of this file.
/*
* Copyright (c) 2011-2014 - Mauro Carvalho Chehab
*
* 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 _LIBSAT_H
#define _LIBSAT_H
#include "dvb-v5-std.h"
/*
* Satellite handling functions
*/
struct dvb_sat_lnb {
const char *name;
const char *alias;
/*
* Legacy fields, kept just to avoid ABI breakages
* Should not be used by new applications
*/
unsigned lowfreq, highfreq;
unsigned rangeswitch;
struct dvbsat_freqrange {
unsigned low, high;
} freqrange[2];
};
struct dvb_v5_fe_parms;
#ifdef __cplusplus
extern "C" {
#endif
/* From libsat.c */
int dvb_sat_search_lnb(const char *name);
int dvb_print_lnb(int index);
void dvb_print_all_lnb(void);
const struct dvb_sat_lnb *dvb_sat_get_lnb(int index);
const char *dvb_sat_get_lnb_name(int index);
int dvb_sat_set_parms(struct dvb_v5_fe_parms *parms);
int dvb_sat_real_freq(struct dvb_v5_fe_parms *p, int freq);
#ifdef __cplusplus
}
#endif
#endif // _LIBSAT_H
dvb-v5-std.h
Provides libdvbv5 defined properties for the frontend.
dvb_print_all_lnb
void dvb_print_all_lnb(void)
Prints all LNBf entries at STDOUT.
dvb_print_lnb
int dvb_print_lnb(int index)
prints the contents of a LNBf entry at STDOUT.
dvb_sat_get_lnb
const struct dvb_sat_lnb * dvb_sat_get_lnb(int index)
gets a LNBf entry at its internal database
dvb_sat_search_lnb
int dvb_sat_search_lnb(const char *name)
search for a LNBf entry
dvb_sat_get_lnb_name
const char * dvb_sat_get_lnb_name(int index)
gets a LNBf entry at its internal database
dvb_sat_set_parms
int dvb_sat_set_parms(struct dvb_v5_fe_parms *parms)
sets the satellite parameters
dvb_sat_real_freq
int dvb_sat_real_freq(struct dvb_v5_fe_parms *p, int freq)
return the real satellite frequency
dvb_sat_lnb::dvbsat_freqrange
Definition dvb-sat.h:63
dvb_sat_lnb::dvbsat_freqrange::high
unsigned high
Definition dvb-sat.h:64
dvb_sat_lnb::dvbsat_freqrange::low
unsigned low
Definition dvb-sat.h:64
dvb_sat_lnb
Stores the information of a LNBf.
Definition dvb-sat.h:53
dvb_sat_lnb::highfreq
unsigned highfreq
Definition dvb-sat.h:61
dvb_sat_lnb::lowfreq
unsigned lowfreq
Definition dvb-sat.h:61
dvb_sat_lnb::alias
const char * alias
Definition dvb-sat.h:55
dvb_sat_lnb::freqrange
struct dvb_sat_lnb::dvbsat_freqrange freqrange[2]
dvb_sat_lnb::rangeswitch
unsigned rangeswitch
Definition dvb-sat.h:62
dvb_sat_lnb::name
const char * name
Definition dvb-sat.h:54
dvb_v5_fe_parms
Keeps data needed to handle the DVB frontend.
Definition dvb-fe.h:117