rt mode v1

This commit is contained in:
2025-08-12 21:51:30 +03:00
commit 603fec6fc3
16 changed files with 4379 additions and 0 deletions

98
bcmil.h Normal file
View File

@@ -0,0 +1,98 @@
#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