锁存拼包功能初版
This commit is contained in:
@@ -127,9 +127,9 @@ public:
|
||||
//CSerialRaw *AttachWnd( CWnd *Wnd );
|
||||
// Convert ascii hex into an int
|
||||
int HexToInt(char* Data, int Bytes);
|
||||
|
||||
void hex2str(char* pszDest, byte* pbSrc, int nLen);
|
||||
//字节数据转换为16进制字符串
|
||||
CString ToHexStr(const char* pData, int nLen);
|
||||
CString HexToStr(const char* pData, int nLen);
|
||||
|
||||
DWORD Send(LPCSTR buffer, int l, BOOL needsResponse = FALSE) override;
|
||||
//virtual DWORD Send(CString what);
|
||||
@@ -193,6 +193,8 @@ public:
|
||||
BOOL m_iRecvState; //接收状态
|
||||
INT m_iRecvBytes; //接收字节数
|
||||
INT m_iRecvCount; //接收计数
|
||||
INT m_iExpectBytes =0; //定义期望接收的数据长度
|
||||
BOOL m_bDebug = true; //调试模式,默认关闭
|
||||
unsigned char m_RecvData[MAX_RECIEVE_BUFFER_SIZE];
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user