libdvbv5  1.11.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 
47  unsigned low, high;
48 };
49 
73 struct dvb_sat_lnb {
74  const char *name;
75  const char *alias;
76  unsigned lowfreq, highfreq;
77 
78  unsigned rangeswitch;
79 
81 };
82 
83 struct dvb_v5_fe_parms;
84 
85 #ifdef __cplusplus
86 extern "C" {
87 #endif
88 
89 /* From libsat.c */
90 
102 int dvb_sat_search_lnb(const char *name);
103 
112 int dvb_print_lnb(int index);
113 
121 void dvb_print_all_lnb(void);
122 
134 const struct dvb_sat_lnb *dvb_sat_get_lnb(int index);
135 
145 const char *dvb_sat_get_lnb_name(int index);
146 
158 int dvb_sat_set_parms(struct dvb_v5_fe_parms *parms);
159 
160 #ifdef __cplusplus
161 }
162 #endif
163 
164 #endif // _LIBSAT_H
Stores the information of a LNBf.
Definition: dvb-sat.h:73
unsigned low
Definition: dvb-sat.h:47
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.
unsigned high
Definition: dvb-sat.h:47
struct dvbsat_freqrange freqrange[2]
Definition: dvb-sat.h:80
unsigned rangeswitch
Definition: dvb-sat.h:78
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
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:76
const char * name
Definition: dvb-sat.h:74
unsigned lowfreq
Definition: dvb-sat.h:76
Defines a frequency range used by Satellite.
Definition: dvb-sat.h:46
const char * alias
Definition: dvb-sat.h:75