vdr  2.7.6
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 5.1 2025/03/02 11:03:35 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) override;
21  virtual void Write(const uint8_t *Buffer, int Length) override;
22  virtual bool Reset(int Slot) override;
23  virtual eModuleStatus ModuleStatus(int Slot) override;
24  virtual bool Assign(cDevice *Device, bool Query = false) override;
25  cDvbCiAdapter(cDevice *Device, int Fd);
26 public:
27  virtual ~cDvbCiAdapter() override;
28  static cDvbCiAdapter *CreateCiAdapter(cDevice *Device, int Fd);
29  };
30 
31 #endif //__DVBCI_H
eModuleStatus
Definition: ci.h:170
Definition: ci.h:172
cDvbCiAdapter(cDevice *Device, int Fd)
Definition: dvbci.c:17
virtual void Write(const uint8_t *Buffer, int Length) override
Writes Length bytes of the given Buffer.
Definition: dvbci.c:62
virtual int Read(uint8_t *Buffer, int MaxLength) override
Reads one chunk of data into the given Buffer, up to MaxLength bytes.
Definition: dvbci.c:46
static cDvbCiAdapter * CreateCiAdapter(cDevice *Device, int Fd)
Definition: dvbci.c:102
virtual ~cDvbCiAdapter() override
Definition: dvbci.c:41
virtual eModuleStatus ModuleStatus(int Slot) override
Returns the status of the CAM in the given Slot.
Definition: dvbci.c:79
cDevice * device
Definition: dvbci.h:17
int fd
Definition: dvbci.h:18
virtual bool Reset(int Slot) override
Resets the CAM in the given Slot.
Definition: dvbci.c:70
virtual bool Assign(cDevice *Device, bool Query=false) override
Assigns this adapter to the given Device, if this is possible.
Definition: dvbci.c:94