File: lnb.h

package info (click to toggle)
dvbstreamer 2.1.0-5.8
  • links: PTS
  • area: main
  • in suites: forky, sid
  • size: 5,676 kB
  • sloc: ansic: 42,193; sh: 10,230; python: 519; makefile: 363
file content (41 lines) | stat: -rwxr-xr-x 1,449 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
/* From linuxtv.org's szap utility, just cleaned up a bit and made more dvbstreamer like. */
#ifndef _LNB_H
#define _LNB_H
#include "types.h"

/**
 * Structure describing an LNB type.
 */
typedef struct LNBInfo_s {
    char    *name;              /**< Name of the LNB type.*/
    char    **desc;             /**< Description of this LNB.*/
    unsigned long   lowFrequency;    /**< Low band LO frequency. */
    unsigned long   highFrequency;   /**< zero indicates no hiband */
    unsigned long   switchFrequency; /**< zero indicates no hiband */
}LNBInfo_t;

/** 
 * Enumerate through standard types of LNB's until NULL returned.
 * Increment curno each time.
 */
LNBInfo_t *LNBEnumerate(int curno);

/**
 * Decode an lnb type, for example given on a command line
 * If alpha and standard type, e.g. "Universal" then match that
 * otherwise low[,high[,switch]]
 */
int LNBDecode(char *str, LNBInfo_t *lnb);

/**
 * Convert a transponder frequency to the intermediate frequency to use with the
 * specified LNB.
 * @param info The LNB to use to convert the transponder frequency.
 * @param freq The transponder frequency to convert.
 * @param tone Pointer to a bool to store whether the 22Khz tone should be enabled for this 
 *             transponder.
 * @return The intermediate frequency to tune to.
 */
unsigned long LNBTransponderToIntermediateFreq(LNBInfo_t *info, unsigned long freq, bool *tone);

#endif