#include <diseqc.h>
|
enum | eDiseqcActions {
daNone,
daToneOff,
daToneOn,
daVoltage13,
daVoltage18,
daMiniA,
daMiniB,
daPositionN,
daPositionA,
daScr,
daCodes,
daWait
} |
|
enum | { MaxDiseqcCodes = 6
} |
|
|
uint | SetScrFrequency (uint SatFrequency, const cScr *Scr, uint8_t *Codes) const |
|
int | SetScrPin (const cScr *Scr, uint8_t *Codes) const |
|
const char * | Wait (const char *s) const |
|
const char * | GetPosition (const char *s) const |
|
const char * | GetScrBank (const char *s) const |
|
const char * | GetCodes (const char *s, uchar *Codes=NULL, uint8_t *MaxCodes=NULL) const |
|
Definition at line 62 of file diseqc.h.
Enumerator |
---|
daNone |
|
daToneOff |
|
daToneOn |
|
daVoltage13 |
|
daVoltage18 |
|
daMiniA |
|
daMiniB |
|
daPositionN |
|
daPositionA |
|
daScr |
|
daCodes |
|
daWait |
|
Definition at line 64 of file diseqc.h.
cDiseqc::cDiseqc |
( |
void |
| ) |
|
const char* cDiseqc::Commands |
( |
void |
| ) |
const |
|
inline |
Returns a pointer to the actual commands of this DiSEqC sequence.
Definition at line 134 of file diseqc.h.
int cDiseqc::Devices |
( |
void |
| ) |
const |
|
inline |
Returns an integer where each bit represents one of the system's devices.
If a bit is set, this DiSEqC sequence applies to the corresponding device.
Definition at line 115 of file diseqc.h.
Parses the DiSEqC commands and returns the appropriate action code with every call.
CurrentAction must be the address of a character pointer, which is initialized to NULL. This pointer is used internally while parsing the commands and shall not be modified once Execute() has been called with it. Call Execute() repeatedly (always providing the same CurrentAction pointer) until it returns daNone. After a successful execution of all commands *CurrentAction points to the value 0x00. If the current action consists of sending code bytes to the device, those bytes will be copied into Codes. MaxCodes must be initialized to the maximum number of bytes Codes can handle, and will be set to the actual number of bytes copied to Codes upon return. If this DiSEqC entry requires SCR, the given Scr will be used. This must be a pointer returned from a previous call to cDiseqcs::Get(). Frequency must be the frequency the tuner will be tuned to, and will be set to the proper SCR frequency upon return (if SCR is used).
Definition at line 402 of file diseqc.c.
References esyslog, Setup, and cSetup::UsePositioner.
Referenced by cDvbTuner::ExecuteDiseqc().
const char * cDiseqc::GetCodes |
( |
const char * |
s, |
|
|
uchar * |
Codes = NULL , |
|
|
uint8_t * |
MaxCodes = NULL |
|
) |
| const |
|
private |
const char * cDiseqc::GetPosition |
( |
const char * |
s | ) |
const |
|
private |
const char * cDiseqc::GetScrBank |
( |
const char * |
s | ) |
const |
|
private |
bool cDiseqc::IsScr |
( |
void |
| ) |
const |
|
inline |
int cDiseqc::Lof |
( |
void |
| ) |
const |
|
inline |
Returns the local oscillator frequency of the LNB this DiSEqC sequence applies to.
Definition at line 124 of file diseqc.h.
bool cDiseqc::Parse |
( |
const char * |
s | ) |
|
char cDiseqc::Polarization |
( |
void |
| ) |
const |
|
inline |
Returns the signal polarization this DiSEqC sequence applies to.
Definition at line 122 of file diseqc.h.
int cDiseqc::Position |
( |
void |
| ) |
const |
|
inline |
Indicates which positioning mode to use in order to move the dish to a given satellite position.
-1 means "no positioning" (i.e. fixed dish); 0 means the positioner can be moved to any arbitrary satellite position (within its limits); and a positive number means "move the dish to the position stored
under the given number".
Definition at line 126 of file diseqc.h.
Referenced by cDvbTuner::ExecuteDiseqc().
uint cDiseqc::SetScrFrequency |
( |
uint |
SatFrequency, |
|
|
const cScr * |
Scr, |
|
|
uint8_t * |
Codes |
|
) |
| const |
|
private |
int cDiseqc::SetScrPin |
( |
const cScr * |
Scr, |
|
|
uint8_t * |
Codes |
|
) |
| const |
|
private |
int cDiseqc::Slof |
( |
void |
| ) |
const |
|
inline |
Returns the switch frequency of the LNB this DiSEqC sequence applies to.
Definition at line 120 of file diseqc.h.
int cDiseqc::Source |
( |
void |
| ) |
const |
|
inline |
Returns the satellite source this DiSEqC sequence applies to.
Definition at line 118 of file diseqc.h.
const char * cDiseqc::Wait |
( |
const char * |
s | ) |
const |
|
private |
char cDiseqc::polarization |
|
private |
The documentation for this class was generated from the following files: