99 lines
1.4 KiB
C++
99 lines
1.4 KiB
C++
#ifndef BCMIL_H
|
|
#define BCMIL_H
|
|
|
|
#include <QObject>
|
|
|
|
//*******************
|
|
//#include "WDMTMKv2.h"
|
|
//#include "windows.h"
|
|
//*******************
|
|
/*typedef struct
|
|
{
|
|
int nInt;
|
|
unsigned short wMode;
|
|
union
|
|
{
|
|
struct
|
|
{
|
|
unsigned short wResult;
|
|
unsigned short wAW1;
|
|
unsigned short wAW2;
|
|
} bc;
|
|
struct
|
|
{
|
|
unsigned short wBase;
|
|
unsigned short wResultX;
|
|
} bcx;
|
|
struct
|
|
{
|
|
unsigned short wStatus;
|
|
unsigned short wCmd;
|
|
} rt;
|
|
struct
|
|
{
|
|
unsigned short wBase;
|
|
unsigned short wResultX;
|
|
} mt;
|
|
struct
|
|
{
|
|
unsigned short wStatus;
|
|
} mrt;
|
|
struct
|
|
{
|
|
unsigned short wRequest;
|
|
// DWORD dwTimer;
|
|
} tmk;
|
|
struct
|
|
{
|
|
unsigned short wData1;
|
|
unsigned short wData2;
|
|
} raw;
|
|
};
|
|
} TTmkEventData1;*/
|
|
|
|
#define TMK_DATA unsigned short
|
|
typedef void *HANDLE;
|
|
|
|
//class BC_MIL;
|
|
//class RT_MIL;
|
|
class MIL:public QObject
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
|
|
MIL(int dev_index);
|
|
~MIL();
|
|
|
|
//int WaitInt(TMK_DATA wCtrlCode);
|
|
//void closeAll();
|
|
void closeAllrt();
|
|
//bool GetEvent(TTmkEventData1 *pEv, unsigned short Timeout);
|
|
|
|
protected:
|
|
|
|
int m_TmkIndex;
|
|
//HANDLE m_hEvent;
|
|
};
|
|
|
|
/*class BC_MIL:public MIL
|
|
{
|
|
public:
|
|
|
|
BC_MIL(int dev_index);
|
|
~BC_MIL(void);
|
|
};
|
|
*/
|
|
class RT_MIL:public MIL
|
|
{
|
|
public:
|
|
|
|
RT_MIL(int dev_indexi, unsigned short Addr);
|
|
~RT_MIL();
|
|
|
|
protected:
|
|
|
|
unsigned short m_Addr;
|
|
};
|
|
|
|
#endif // BCMIL_H
|