libdvbv5  1.20.0
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 
53 struct dvb_sat_lnb {
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;
65  } freqrange[2];
66 };
67 
68 struct dvb_v5_fe_parms;
69 
70 #ifdef __cplusplus
71 extern "C" {
72 #endif
73 
74 /* From libsat.c */
75 
87 int dvb_sat_search_lnb(const char *name);
88 
97 int dvb_print_lnb(int index);
98 
106 void dvb_print_all_lnb(void);
107 
119 const struct dvb_sat_lnb *dvb_sat_get_lnb(int index);
120 
130 const char *dvb_sat_get_lnb_name(int index);
131 
143 int dvb_sat_set_parms(struct dvb_v5_fe_parms *parms);
144 
156 int 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
Stores the information of a LNBf.
Definition: dvb-sat.h:53
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.
struct dvb_sat_lnb::dvbsat_freqrange freqrange[2]
unsigned rangeswitch
Definition: dvb-sat.h:62
Keeps data needed to handle the DVB frontend.
Definition: dvb-fe.h:117
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
Provides libdvbv5 defined properties for the frontend.
const struct dvb_sat_lnb * dvb_sat_get_lnb(int index)
gets a LNBf entry at its internal database
const char * dvb_sat_get_lnb_name(int index)
gets a LNBf entry at its internal database
int dvb_sat_search_lnb(const char *name)
search for a LNBf entry
unsigned highfreq
Definition: dvb-sat.h:61
const char * name
Definition: dvb-sat.h:54
unsigned lowfreq
Definition: dvb-sat.h:61
const char * alias
Definition: dvb-sat.h:55