vdr  2.2.0
dvbci.h
Go to the documentation of this file.
1 /*
2  * dvbci.h: Common Interface for DVB devices
3  *
4  * See the main source file 'vdr.c' for copyright information and
5  * how to reach the author.
6  *
7  * $Id: dvbci.h 3.0 2006/11/26 11:19:42 kls Exp $
8  */
9 
10 #ifndef __DVBCI_H
11 #define __DVBCI_H
12 
13 #include "ci.h"
14 
15 class cDvbCiAdapter : public cCiAdapter {
16 private:
18  int fd;
19 protected:
20  virtual int Read(uint8_t *Buffer, int MaxLength);
21  virtual void Write(const uint8_t *Buffer, int Length);
22  virtual bool Reset(int Slot);
23  virtual eModuleStatus ModuleStatus(int Slot);
24  virtual bool Assign(cDevice *Device, bool Query = false);
25  cDvbCiAdapter(cDevice *Device, int Fd);
26 public:
27  virtual ~cDvbCiAdapter();
28  static cDvbCiAdapter *CreateCiAdapter(cDevice *Device, int Fd);
29  };
30 
31 #endif //__DVBCI_H
cDvbCiAdapter(cDevice *Device, int Fd)
Definition: dvbci.c:17
virtual bool Reset(int Slot)
Resets the CAM in the given Slot.
Definition: dvbci.c:70
virtual void Write(const uint8_t *Buffer, int Length)
Writes Length bytes of the given Buffer.
Definition: dvbci.c:62
cDevice * device
Definition: dvbci.h:17
static cDvbCiAdapter * CreateCiAdapter(cDevice *Device, int Fd)
Definition: dvbci.c:102
Definition: ci.h:79
int fd
Definition: dvbci.h:18
virtual bool Assign(cDevice *Device, bool Query=false)
Assigns this adapter to the given Device, if this is possible.
Definition: dvbci.c:94
virtual int Read(uint8_t *Buffer, int MaxLength)
Reads one chunk of data into the given Buffer, up to MaxLength bytes.
Definition: dvbci.c:46
virtual ~cDvbCiAdapter()
Definition: dvbci.c:41
virtual eModuleStatus ModuleStatus(int Slot)
Returns the status of the CAM in the given Slot.
Definition: dvbci.c:79
eModuleStatus
Definition: ci.h:77
The cDevice class is the base from which actual devices can be derived.
Definition: device.h:109