cDvbCiAdapter Class Reference

#include <dvbci.h>

Inheritance diagram for cDvbCiAdapter:

Inheritance graph
[legend]
Collaboration diagram for cDvbCiAdapter:

Collaboration graph
[legend]

List of all members.

Public Member Functions

virtual ~cDvbCiAdapter ()

Static Public Member Functions

static cDvbCiAdapterCreateCiAdapter (cDevice *Device, int Fd)

Protected Member Functions

virtual int Read (uint8_t *Buffer, int MaxLength)
virtual void Write (const uint8_t *Buffer, int Length)
 Writes Length bytes of the given Buffer.
virtual bool Reset (int Slot)
virtual eModuleStatus ModuleStatus (int Slot)
 Returns the status of the CAM in the given Slot.
virtual bool Assign (cDevice *Device, bool Query=false)
 cDvbCiAdapter (cDevice *Device, int Fd)

Private Attributes

cDevicedevice
int fd


Detailed Description

Definition at line 15 of file dvbci.h.


Constructor & Destructor Documentation

cDvbCiAdapter::cDvbCiAdapter ( cDevice Device,
int  Fd 
) [protected]

Definition at line 17 of file dvbci.c.

References cCiAdapter::cCamSlot, device, cDevice::DeviceNumber(), esyslog, fd, isyslog, cThread::SetDescription(), and cThread::Start().

Referenced by CreateCiAdapter().

Here is the call graph for this function:

cDvbCiAdapter::~cDvbCiAdapter (  )  [virtual]

Definition at line 41 of file dvbci.c.

References cThread::Cancel().

Here is the call graph for this function:


Member Function Documentation

int cDvbCiAdapter::Read ( uint8_t *  Buffer,
int  MaxLength 
) [protected, virtual]

Reads one chunk of data into the given Buffer, up to MaxLength bytes. If no data is available immediately, wait for up to CAM_READ_TIMEOUT. Returns the number of bytes read (in case of an error it will also return 0).

Implements cCiAdapter.

Definition at line 46 of file dvbci.c.

References CAM_READ_TIMEOUT, device, cDevice::DeviceNumber(), esyslog, fd, and safe_read().

Here is the call graph for this function:

void cDvbCiAdapter::Write ( const uint8_t *  Buffer,
int  Length 
) [protected, virtual]

Writes Length bytes of the given Buffer.

Implements cCiAdapter.

Definition at line 62 of file dvbci.c.

References device, cDevice::DeviceNumber(), esyslog, fd, and safe_write().

Here is the call graph for this function:

bool cDvbCiAdapter::Reset ( int  Slot  )  [protected, virtual]

Resets the CAM in the given Slot. Returns true if the operation was successful.

Implements cCiAdapter.

Definition at line 70 of file dvbci.c.

References device, cDevice::DeviceNumber(), esyslog, and fd.

Here is the call graph for this function:

eModuleStatus cDvbCiAdapter::ModuleStatus ( int  Slot  )  [protected, virtual]

Returns the status of the CAM in the given Slot.

Implements cCiAdapter.

Definition at line 79 of file dvbci.c.

References device, cDevice::DeviceNumber(), esyslog, fd, msNone, msPresent, and msReady.

Here is the call graph for this function:

bool cDvbCiAdapter::Assign ( cDevice Device,
bool  Query = false 
) [protected, virtual]

Assigns this adapter to the given Device, if this is possible. If Query is 'true', the adapter only checks whether it can be assigned to the Device, but doesn't actually assign itself to it. Returns true if the adapter can be assigned to the Device. If Device is NULL, the adapter will be unassigned from any device it was previously assigned to. The value of Query is ignored in that case, and this function always returns 'true'.

Implements cCiAdapter.

Definition at line 94 of file dvbci.c.

References device.

cDvbCiAdapter * cDvbCiAdapter::CreateCiAdapter ( cDevice Device,
int  Fd 
) [static]

Definition at line 102 of file dvbci.c.

References cDvbCiAdapter().

Referenced by cDvbDevice::cDvbDevice().

Here is the call graph for this function:


Member Data Documentation

Definition at line 17 of file dvbci.h.

Referenced by Assign(), cDvbCiAdapter(), ModuleStatus(), Read(), Reset(), and Write().

int cDvbCiAdapter::fd [private]

Definition at line 18 of file dvbci.h.

Referenced by cDvbCiAdapter(), ModuleStatus(), Read(), Reset(), and Write().


The documentation for this class was generated from the following files:

Generated on Tue Nov 4 19:58:27 2008 for VDR by  doxygen 1.5.6