Home

Dokumentation

Impressum

Dokumentation VDR
 

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

cDvbTuner Class Reference

Inheritance diagram for cDvbTuner:

Inheritance graph
[legend]
Collaboration diagram for cDvbTuner:

Collaboration graph
[legend]

Public Methods

 cDvbTuner (int Fd_Frontend, int CardIndex, fe_type_t FrontendType)
virtual ~cDvbTuner ()
bool IsTunedTo (const cChannel *Channel) const
void Set (const cChannel *Channel)
bool Locked (void)

Private Types

enum  eTunerStatus { tsIdle, tsSet, tsTuned, tsLocked }

Private Methods

bool SetFrontend (void)
virtual void Action (void)

Private Attributes

int fd_frontend
int cardIndex
fe_type_t frontendType
cChannel channel
const char * diseqcCommands
bool active
eTunerStatus tunerStatus
cMutex mutex
cCondVar newSet

Member Enumeration Documentation

enum cDvbTuner::eTunerStatus [private]
 

Enumeration values:
tsIdle 
tsSet 
tsTuned 
tsLocked 

Definition at line 67 of file dvbdevice.c.


Constructor & Destructor Documentation

cDvbTuner::cDvbTuner int    Fd_Frontend,
int    CardIndex,
fe_type_t    FrontendType
 

Definition at line 87 of file dvbdevice.c.

References active, cardIndex, diseqcCommands, fd_frontend, frontendType, cThread::Start(), tsIdle, and tunerStatus.

cDvbTuner::~cDvbTuner   [virtual]
 

Definition at line 98 of file dvbdevice.c.

References active, cCondVar::Broadcast(), cThread::Cancel(), newSet, tsIdle, and tunerStatus.


Member Function Documentation

void cDvbTuner::Action void    [private, virtual]
 

Implements cThread.

Definition at line 232 of file dvbdevice.c.

References active, CHECK, dsyslog, esyslog, newSet, SetFrontend(), cCondVar::TimedWait(), tsIdle, tsLocked, tsSet, tsTuned, and tunerStatus.

bool cDvbTuner::IsTunedTo const cChannel   Channel const
 

Definition at line 106 of file dvbdevice.c.

References channel, cChannel::Frequency(), cChannel::Source(), tsIdle, and tunerStatus.

Referenced by cDvbDevice::ProvidesChannel(), and cDvbDevice::SetChannelDevice().

bool cDvbTuner::Locked void    [inline]
 

Definition at line 84 of file dvbdevice.c.

void cDvbTuner::Set const cChannel   Channel
 

Definition at line 111 of file dvbdevice.c.

References cCondVar::Broadcast(), channel, newSet, tsSet, and tunerStatus.

Referenced by cDvbDevice::SetChannelDevice().

bool cDvbTuner::SetFrontend void    [private]
 

Definition at line 126 of file dvbdevice.c.

References cChannel::Bandwidth(), channel, CHECK, cChannel::CoderateH(), cChannel::CoderateL(), cDiseqc::Codes(), cDiseqc::Commands(), cDiseqc::daCodes, cDiseqc::daMiniA, cDiseqc::daMiniB, cDiseqc::daNone, cDiseqc::daToneOff, cDiseqc::daToneOn, cDiseqc::daVoltage13, cDiseqc::daVoltage18, diseqcCommands, cDiseqc::eDiseqcActions, esyslog, cDiseqc::Execute(), cChannel::Frequency(), FrequencyToHz(), cChannel::Guard(), cChannel::Hierarchy(), cChannel::Inversion(), cDiseqc::Lof(), min(), cChannel::Modulation(), cChannel::Number(), cChannel::Polarization(), cChannel::Source(), cChannel::Srate(), cChannel::Transmission(), and uchar.

Referenced by Action().


Field Documentation

bool cDvbTuner::active [private]
 

Definition at line 73 of file dvbdevice.c.

Referenced by Action(), cDvbTuner(), and ~cDvbTuner().

int cDvbTuner::cardIndex [private]
 

Definition at line 69 of file dvbdevice.c.

Referenced by cDvbTuner().

cChannel cDvbTuner::channel [private]
 

Definition at line 71 of file dvbdevice.c.

Referenced by IsTunedTo(), Set(), and SetFrontend().

const char* cDvbTuner::diseqcCommands [private]
 

Definition at line 72 of file dvbdevice.c.

Referenced by cDvbTuner(), and SetFrontend().

int cDvbTuner::fd_frontend [private]
 

Definition at line 68 of file dvbdevice.c.

Referenced by cDvbTuner().

fe_type_t cDvbTuner::frontendType [private]
 

Definition at line 70 of file dvbdevice.c.

Referenced by cDvbTuner().

cMutex cDvbTuner::mutex [private]
 

Reimplemented from cThread.

Definition at line 75 of file dvbdevice.c.

cCondVar cDvbTuner::newSet [private]
 

Definition at line 76 of file dvbdevice.c.

Referenced by Action(), Set(), and ~cDvbTuner().

eTunerStatus cDvbTuner::tunerStatus [private]
 

Definition at line 74 of file dvbdevice.c.

Referenced by Action(), cDvbTuner(), IsTunedTo(), Set(), and ~cDvbTuner().


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