Home

Dokumentation

Impressum

Dokumentation VDR
 

Main Page   Class Hierarchy   Alphabetical List   Data Structures   File List   Data Fields   Globals  

cDiseqc Class Reference

#include <diseqc.h>

Inheritance diagram for cDiseqc:

Inheritance graph
[legend]
Collaboration diagram for cDiseqc:

Collaboration graph
[legend]

Detailed Description

Diseqc handling.

diseqc.h: DiSEqC handling

See the main source file 'vdr.c' for copyright information and how to reach the author.

Id
diseqc.h 1.2 2002/12/07 13:54:02 kls Exp

Definition at line 16 of file diseqc.h.

Public Types

enum  eDiseqcActions {
  daNone, daToneOff, daToneOn, daVoltage13,
  daVoltage18, daMiniA, daMiniB, daCodes
}
enum  { MaxDiseqcCodes = 6 }

Public Methods

 cDiseqc (void)
 ~cDiseqc ()
bool Parse (const char *s)
eDiseqcActions Execute (char **CurrentAction)
int Source (void) const
int Slof (void) const
char Polarization (void) const
int Lof (void) const
const char * Commands (void) const
ucharCodes (int &NumCodes)

Private Methods

char * Wait (char *s)
char * Codes (char *s)

Private Attributes

int source
int slof
char polarization
int lof
char * commands
bool parsing
uchar codes [MaxDiseqcCodes]
int numCodes


Member Enumeration Documentation

anonymous enum
 

Enumeration values:
MaxDiseqcCodes 

Definition at line 31 of file diseqc.h.

enum cDiseqc::eDiseqcActions
 

definition of possible diseqc actions

Enumeration values:
daNone 
daToneOff 
daToneOn 
daVoltage13 
daVoltage18 
daMiniA 
daMiniB 
daCodes 

Definition at line 21 of file diseqc.h.

Referenced by Execute(), and cDvbTuner::SetFrontend().


Constructor & Destructor Documentation

cDiseqc::cDiseqc void   
 

Definition at line 16 of file diseqc.c.

References commands, numCodes, and parsing.

cDiseqc::~cDiseqc  
 

Definition at line 23 of file diseqc.c.


Member Function Documentation

uchar* cDiseqc::Codes int &    NumCodes [inline]
 

Definition at line 63 of file diseqc.h.

References uchar.

char * cDiseqc::Codes char *    s [private]
 

Definition at line 71 of file diseqc.c.

References codes, esyslog, MaxDiseqcCodes, numCodes, and skipspace().

Referenced by Execute(), and cDvbTuner::SetFrontend().

const char* cDiseqc::Commands void    const [inline]
 

Definition at line 62 of file diseqc.h.

Referenced by cDvbTuner::SetFrontend().

cDiseqc::eDiseqcActions cDiseqc::Execute char **    CurrentAction
 

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.

Definition at line 103 of file diseqc.c.

References Codes(), commands, daCodes, daMiniA, daMiniB, daNone, daToneOff, daToneOn, daVoltage13, daVoltage18, eDiseqcActions, and Wait().

Referenced by Parse(), and cDvbTuner::SetFrontend().

int cDiseqc::Lof void    const [inline]
 

Definition at line 61 of file diseqc.h.

Referenced by cDvbTuner::SetFrontend().

bool cDiseqc::Parse const char *    s
 

Definition at line 28 of file diseqc.c.

References commands, daNone, esyslog, Execute(), cSource::FromString(), parsing, polarization, and source.

char cDiseqc::Polarization void    const [inline]
 

Definition at line 60 of file diseqc.h.

Referenced by cDiseqcs::Get().

int cDiseqc::Slof void    const [inline]
 

Definition at line 59 of file diseqc.h.

Referenced by cDiseqcs::Get().

int cDiseqc::Source void    const [inline]
 

Definition at line 58 of file diseqc.h.

Referenced by cDiseqcs::Get().

char * cDiseqc::Wait char *    s [private]
 

Definition at line 57 of file diseqc.c.

References esyslog, and parsing.

Referenced by Execute().


Field Documentation

uchar cDiseqc::codes[MaxDiseqcCodes] [private]
 

Definition at line 39 of file diseqc.h.

Referenced by Codes().

char* cDiseqc::commands [private]
 

Definition at line 37 of file diseqc.h.

Referenced by cDiseqc(), Execute(), and Parse().

int cDiseqc::lof [private]
 

Definition at line 36 of file diseqc.h.

int cDiseqc::numCodes [private]
 

Definition at line 40 of file diseqc.h.

Referenced by cDiseqc(), and Codes().

bool cDiseqc::parsing [private]
 

Definition at line 38 of file diseqc.h.

Referenced by cDiseqc(), Parse(), and Wait().

char cDiseqc::polarization [private]
 

Definition at line 35 of file diseqc.h.

Referenced by Parse().

int cDiseqc::slof [private]
 

Definition at line 34 of file diseqc.h.

int cDiseqc::source [private]
 

Definition at line 33 of file diseqc.h.

Referenced by Parse().


The documentation for this class was generated from the following files:
Generated on Wed Feb 5 23:31:07 2003 for VDR by doxygen1.3-rc2