vdr 2.7.2
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 1.1 2007/01/07 14:38:00 kls Exp $
8 */
9
10#ifndef __DVBCI_H
11#define __DVBCI_H
12
13#include "ci.h"
14
15class cDvbCiAdapter : public cCiAdapter {
16private:
18 int fd;
19protected:
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);
26public:
27 virtual ~cDvbCiAdapter();
28 static cDvbCiAdapter *CreateCiAdapter(cDevice *Device, int Fd);
29 };
30
31#endif //__DVBCI_H
eModuleStatus
Definition ci.h:170
cDvbCiAdapter(cDevice *Device, int Fd)
Definition dvbci.c:17
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
static cDvbCiAdapter * CreateCiAdapter(cDevice *Device, int Fd)
Definition dvbci.c:102
virtual bool Assign(cDevice *Device, bool Query=false)
Assigns this adapter to the given Device, if this is possible.
Definition dvbci.c:94
virtual bool Reset(int Slot)
Resets the CAM in the given Slot.
Definition dvbci.c:70
cDevice * device
Definition dvbci.h:17
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
virtual void Write(const uint8_t *Buffer, int Length)
Writes Length bytes of the given Buffer.
Definition dvbci.c:62