ZT/sources/PCIIO/Comedilibinterface.h

59 lines
1.7 KiB
C++

/*******************************************************************************
* *
* Société de Transports de Montréal. *
* 2012 *
* *
* Projet Zones Tests *
* *
* *
* *
*******************************************************************************/
/*
Description:
Description du fichier si nécessaire.
*/
/* ************************************************************************** */
/* Revision:
### 20121219 JFM
Verision d'origine.
### YYYYMMDD Description du besoin ou du bug
Description du changement.
*/
/* ************************************************************************** */
#ifndef COMEDILIBINTERFACE_H
#define COMEDILIBINTERFACE_H
#include "GlobalDefine.h"
#include "PCI1756Definitions.h"
#include <comedilib.h>
#include "PCIIOMgr.h"
#include <QMutex>
class CComediLibInterface : public CPCIIOMgr
{
public:
CComediLibInterface();
~CComediLibInterface();
virtual unsigned int OpenPCIInterface(void);
virtual unsigned int GetInputs(void);
comedi_t *GetPCIDevice(void);
private:
comedi_t *mComediDevice;
bool mOpened;
QMutex mMutex;
unsigned int mInputBuf;
};
#endif // COMEDILIBINTERFACE_H