libdvbv5 1.22.1
Library to work with Digital TV devices on Linux
dvb-sat.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2011-2014 - Mauro Carvalho Chehab
3 *
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU Lesser General Public License as published by
6 * the Free Software Foundation version 2.1 of the License.
7 *
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU Lesser General Public License for more details.
12 *
13 * You should have received a copy of the GNU Lesser General Public License
14 * along with this program; if not, write to the Free Software
15 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
16 * Or, point your browser to http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
17 */
18#ifndef _LIBSAT_H
19#define _LIBSAT_H
20
21#include "dvb-v5-std.h"
22
34/*
35 * Satellite handling functions
36 */
37
54 const char *name;
55 const char *alias;
56
57 /*
58 * Legacy fields, kept just to avoid ABI breakages
59 * Should not be used by new applications
60 */
61 unsigned lowfreq, highfreq;
62 unsigned rangeswitch;
64 unsigned low, high;
66};
67
68struct dvb_v5_fe_parms;
69
70#ifdef __cplusplus
71extern "C" {
72#endif
73
74/* From libsat.c */
75
87int dvb_sat_search_lnb(const char *name);
88
97int dvb_print_lnb(int index);
98
107
119const struct dvb_sat_lnb *dvb_sat_get_lnb(int index);
120
130const char *dvb_sat_get_lnb_name(int index);
131
144
156int dvb_sat_real_freq(struct dvb_v5_fe_parms *p, int freq);
157
158
159#ifdef __cplusplus
160}
161#endif
162
163#endif // _LIBSAT_H
Provides libdvbv5 defined properties for the frontend.
void dvb_print_all_lnb(void)
Prints all LNBf entries at STDOUT.
int dvb_print_lnb(int index)
prints the contents of a LNBf entry at STDOUT.
const struct dvb_sat_lnb * dvb_sat_get_lnb(int index)
gets a LNBf entry at its internal database
int dvb_sat_search_lnb(const char *name)
search for a LNBf entry
const char * dvb_sat_get_lnb_name(int index)
gets a LNBf entry at its internal database
int dvb_sat_set_parms(struct dvb_v5_fe_parms *parms)
sets the satellite parameters
int dvb_sat_real_freq(struct dvb_v5_fe_parms *p, int freq)
return the real satellite frequency
Stores the information of a LNBf.
Definition: dvb-sat.h:53
unsigned highfreq
Definition: dvb-sat.h:61
unsigned lowfreq
Definition: dvb-sat.h:61
const char * alias
Definition: dvb-sat.h:55
struct dvb_sat_lnb::dvbsat_freqrange freqrange[2]
unsigned rangeswitch
Definition: dvb-sat.h:62
const char * name
Definition: dvb-sat.h:54
Keeps data needed to handle the DVB frontend.
Definition: dvb-fe.h:117