libdvbv5: lib/include/libdvbv5/dvb-sat.h Source File

libdvbv5 1.28.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
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;
63 struct dvbsat_freqrange {
64 unsigned low, high;
65 } freqrange[2];
66};
67
68struct dvb_v5_fe_parms;
69
70#ifdef __cplusplus
71extern "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
157 int dvb_sat_real_freq(struct dvb_v5_fe_parms *p, int freq);
158
159
160#ifdef __cplusplus
161}
162#endif
163
164#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