Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #ifndef __INCLUDE_MICOM__
- #define __INCLUDE_MICOM__
- #ifdef __cplusplus
- extern "C" {
- #endif
- #define MSG_BUFFER_SIZE 256
- struct MPacket {
- BYTE mgr;
- BYTE grp;
- BYTE cmd;
- BYTE len;
- BYTE* data;
- BYTE checkSum;
- BYTE* rData;
- int rLen;
- };
- typedef int (* CBReadMicom)(MPacket* packet);
- typedef int (* CBWriteMicom)(MPacket* packet);
- HANDLE WINAPI GetMicomHandle();
- int WINAPI SetCallBackRead(CBReadMicom cbReadMicom);
- int WINAPI SetCallBackWrite(CBWriteMicom cbWriteMicom);
- DWORD WINAPI SendCommandEx(BYTE mgr, BYTE cmd, BYTE len, BYTE* buffer);
- DWORD WINAPI SendReadCmd(BYTE mgr, DWORD addr, BYTE len);
- DWORD WINAPI SendWriteCmd(BYTE mgr, DWORD addr, BYTE len, BYTE* buffer);
- #ifdef __cplusplus
- }
- #endif
- #endif//__INCLUDE_MICOM__
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement