SASC-NG
DVBSoftCAM

cCiAdapter Class Reference

#include <ci.h>

Inheritance diagram for cCiAdapter:

List of all members.

Public Member Functions

 cCiAdapter (void)
virtual ~cCiAdapter ()
 The derived class must call Cancel(3) in its destructor.
virtual bool Ready (void)
 Returns 'true' if all present CAMs in this adapter are ready.

Protected Member Functions

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

Friends

class cCamSlot

Detailed Description

Definition at line 79 of file ci.h.


Constructor & Destructor Documentation

cCiAdapter::cCiAdapter ( void  )
virtual cCiAdapter::~cCiAdapter ( ) [virtual]

The derived class must call Cancel(3) in its destructor.


Member Function Documentation

virtual void cCiAdapter::Action ( void  ) [protected, virtual]

Handles the attached CAM slots in a separate thread. The derived class must call the Start() function to actually start CAM handling.

Implements cThread.

virtual bool cCiAdapter::Assign ( cDevice *  Device,
bool  Query = false 
) [protected, pure 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'.

Implemented in cCam.

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

Returns the status of the CAM in the given Slot.

Implemented in cCam.

virtual int cCiAdapter::Read ( uint8_t *  Buffer,
int  MaxLength 
) [protected, pure 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).

virtual bool cCiAdapter::Ready ( void  ) [virtual]

Returns 'true' if all present CAMs in this adapter are ready.

Referenced by SCDEVICE::Ready().

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

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

Implemented in cCam.

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

Writes Length bytes of the given Buffer.


Friends And Related Function Documentation

friend class cCamSlot [friend]

Definition at line 80 of file ci.h.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines