|
SASC-NG
DVBSoftCAM
|
#include <ci.h>
Inheritance diagram for cCiAdapter: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 |
| cCiAdapter::cCiAdapter | ( | void | ) |
| virtual cCiAdapter::~cCiAdapter | ( | ) | [virtual] |
The derived class must call Cancel(3) in its destructor.
| virtual void cCiAdapter::Action | ( | void | ) | [protected, virtual] |
| 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.