libdvbv5  1.6.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
5  * modify it under the terms of the GNU General Public License
6  * as published by the Free Software Foundation version 2
7  * of the License.
8  *
9  * This program is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12  * GNU General Public License for more details.
13  *
14  * You should have received a copy of the GNU General Public License
15  * along with this program; if not, write to the Free Software
16  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
17  * Or, point your browser to http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
18  */
19 #ifndef _LIBSAT_H
20 #define _LIBSAT_H
21 
22 #include "dvb-v5-std.h"
23 
35 /*
36  * Satellite handling functions
37  */
38 
48  unsigned low, high;
49 };
50 
74 struct dvb_sat_lnb {
75  const char *name;
76  const char *alias;
77  unsigned lowfreq, highfreq;
78 
79  unsigned rangeswitch;
80 
82 };
83 
84 struct dvb_v5_fe_parms;
85 
86 #ifdef __cplusplus
87 extern "C" {
88 #endif
89 
90 /* From libsat.c */
91 
103 int dvb_sat_search_lnb(const char *name);
104 
113 int dvb_print_lnb(int index);
114 
122 void dvb_print_all_lnb(void);
123 
132 const struct dvb_sat_lnb *dvb_sat_get_lnb(int index);
133 
145 int dvb_sat_set_parms(struct dvb_v5_fe_parms *parms);
146 
147 #ifdef __cplusplus
148 }
149 #endif
150 
151 #endif // _LIBSAT_H
Stores the information of a LNBf.
Definition: dvb-sat.h:74
unsigned low
Definition: dvb-sat.h:48
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:48
struct dvbsat_freqrange freqrange[2]
Definition: dvb-sat.h:81
unsigned rangeswitch
Definition: dvb-sat.h:79
Keeps data needed to handle the DVB frontend.
Definition: dvb-fe.h:118
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
int dvb_sat_search_lnb(const char *name)
search for a LNBf entry
unsigned highfreq
Definition: dvb-sat.h:77
const char * name
Definition: dvb-sat.h:75
unsigned lowfreq
Definition: dvb-sat.h:77
Defines a frequency range used by Satellite.
Definition: dvb-sat.h:47
const char * alias
Definition: dvb-sat.h:76