Home

Dokumentation

Impressum

Dokumentation VDR
 

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

cRcuRemote Class Reference

#include <rcu.h>

Inheritance diagram for cRcuRemote:

Inheritance graph
[legend]
Collaboration diagram for cRcuRemote:

Collaboration graph
[legend]

Detailed Description

Rcu configuration.

rcu.h: RCU remote control

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

Id
rcu.h 1.2 2002/12/07 12:21:25 kls Exp

Definition at line 18 of file rcu.h.

Public Methods

 cRcuRemote (char *DeviceName)
virtual ~cRcuRemote ()
virtual bool Initialize (void)

Private Types

enum  { modeH = 'h', modeB = 'b', modeS = 's' }

Private Methods

bool SendCommand (unsigned char Cmd)
int ReceiveByte (int TimeoutMs=0)
bool SendByteHandshake (unsigned char c)
bool SendByte (unsigned char c)
bool Digit (int n, int v)
bool SetCode (unsigned char Code)
bool SetMode (unsigned char Mode)
bool Number (int n, bool Hex=false)
void SetPoints (unsigned char Dp, bool On)
bool String (char *s)
bool DetectCode (unsigned char *Code)
virtual void Action (void)
virtual void ChannelSwitch (const cDevice *Device, int ChannelNumber)
virtual void Recording (const cDevice *Device, const char *Name)

Private Attributes

int f
unsigned char dp
unsigned char code
unsigned char mode
int numberToSend
int lastNumber
bool receivedCommand


Member Enumeration Documentation

anonymous enum [private]
 

Enumeration values:
modeH 
modeB 
modeS 

Definition at line 20 of file rcu.h.


Constructor & Destructor Documentation

cRcuRemote::cRcuRemote char *    DeviceName
 

Definition at line 19 of file rcu.c.

References code, dp, f, cRemote::GetSetup(), isyslog, lastNumber, LOG_ERROR_STR, mode, modeB, cRemote::Name(), Number(), numberToSend, receivedCommand, SetCode(), and cThread::Start().

cRcuRemote::~cRcuRemote   [virtual]
 

Definition at line 53 of file rcu.c.

References cThread::Cancel().


Member Function Documentation

void cRcuRemote::Action void    [private, virtual]
 

Implements cThread.

Definition at line 78 of file rcu.c.

References code, dsyslog, f, LOCK_THREAD, Number(), numberToSend, cRemote::Put(), ReceiveByte(), receivedCommand, REPEATDELAY, SendCommand(), time_ms(), and uint64.

void cRcuRemote::ChannelSwitch const cDevice   Device,
int    ChannelNumber
[private, virtual]
 

Indicates a channel switch on the given DVB device. If ChannelNumber is 0, this is before the channel is being switched, otherwise ChannelNumber is the number of the channel that has been switched to.

Reimplemented from cStatus.

Definition at line 309 of file rcu.c.

References cDevice::IsPrimaryDevice(), LOCK_THREAD, and numberToSend.

bool cRcuRemote::DetectCode unsigned char *    Code [private]
 

Definition at line 275 of file rcu.c.

References delay_ms(), SetCode(), SetMode(), and String().

Referenced by Initialize().

bool cRcuRemote::Digit int    n,
int    v
[private]
 

Definition at line 219 of file rcu.c.

References SendByte().

Referenced by Number().

bool cRcuRemote::Initialize void    [virtual]
 

Reimplemented from cRemote.

Definition at line 58 of file rcu.c.

References code, DetectCode(), f, isyslog, cRemote::Name(), and cRemote::PutSetup().

bool cRcuRemote::Number int    n,
bool    Hex = false
[private]
 

Definition at line 224 of file rcu.c.

References Digit(), lastNumber, LOCK_THREAD, and SendCommand().

Referenced by Action(), cRcuRemote(), SetPoints(), and String().

int cRcuRemote::ReceiveByte int    TimeoutMs = 0 [private]
 

Definition at line 154 of file rcu.c.

References cFile::FileReady(), LOG_ERROR, and safe_read().

Referenced by Action(), and SendByteHandshake().

void cRcuRemote::Recording const cDevice   Device,
const char *    Name
[private, virtual]
 

The given DVB device has started recording Name. Name is the name of the recording, without any directory path. If Name is NULL, the recording has ended.

Reimplemented from cStatus.

Definition at line 317 of file rcu.c.

References cDevice::DeviceNumber(), cDevice::Receiving(), and SetPoints().

bool cRcuRemote::SendByte unsigned char    c [private]
 

Definition at line 191 of file rcu.c.

References LOCK_THREAD, and SendByteHandshake().

Referenced by Digit(), and SendCommand().

bool cRcuRemote::SendByteHandshake unsigned char    c [private]
 

Definition at line 167 of file rcu.c.

References f, LOG_ERROR, and ReceiveByte().

Referenced by SendByte().

bool cRcuRemote::SendCommand unsigned char    Cmd [private]
 

Definition at line 214 of file rcu.c.

References SendByte().

Referenced by Action(), Number(), SetCode(), and SetMode().

bool cRcuRemote::SetCode unsigned char    Code [private]
 

Definition at line 202 of file rcu.c.

References code, and SendCommand().

Referenced by cRcuRemote(), and DetectCode().

bool cRcuRemote::SetMode unsigned char    Mode [private]
 

Definition at line 208 of file rcu.c.

References mode, and SendCommand().

Referenced by DetectCode().

void cRcuRemote::SetPoints unsigned char    Dp,
bool    On
[private]
 

Definition at line 266 of file rcu.c.

References dp, and Number().

Referenced by Recording().

bool cRcuRemote::String char *    s [private]
 

Definition at line 247 of file rcu.c.

References LOCK_THREAD, mode, modeH, and Number().

Referenced by DetectCode().


Field Documentation

unsigned char cRcuRemote::code [private]
 

Definition at line 22 of file rcu.h.

Referenced by Action(), cRcuRemote(), Initialize(), and SetCode().

unsigned char cRcuRemote::dp [private]
 

Definition at line 22 of file rcu.h.

Referenced by cRcuRemote(), and SetPoints().

int cRcuRemote::f [private]
 

Definition at line 21 of file rcu.h.

Referenced by Action(), cRcuRemote(), Initialize(), and SendByteHandshake().

int cRcuRemote::lastNumber [private]
 

Definition at line 24 of file rcu.h.

Referenced by cRcuRemote(), and Number().

unsigned char cRcuRemote::mode [private]
 

Definition at line 22 of file rcu.h.

Referenced by cRcuRemote(), SetMode(), and String().

int cRcuRemote::numberToSend [private]
 

Definition at line 23 of file rcu.h.

Referenced by Action(), ChannelSwitch(), and cRcuRemote().

bool cRcuRemote::receivedCommand [private]
 

Definition at line 25 of file rcu.h.

Referenced by Action(), and cRcuRemote().


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