|
|
@ -102,6 +102,7 @@ typedef struct |
|
|
UT_array *m_pMutiDevArray; |
|
|
UT_array *m_pMutiDevArray; |
|
|
cbk_ComSend m_pfSend; |
|
|
cbk_ComSend m_pfSend; |
|
|
void *m_pUserData; |
|
|
void *m_pUserData; |
|
|
|
|
|
int m_iRecvTime; // check返回0时的超时时间
|
|
|
}TComCtrl; |
|
|
}TComCtrl; |
|
|
|
|
|
|
|
|
/*==============================================*
|
|
|
/*==============================================*
|
|
|
@ -114,6 +115,7 @@ typedef struct |
|
|
* routines' or functions' implementations * |
|
|
* routines' or functions' implementations * |
|
|
*----------------------------------------------*/ |
|
|
*----------------------------------------------*/ |
|
|
TComCtrl *rd_ComCreate(cbk_ComCheck _pfCheck, cbk_ComDecode _pfDecode, cbk_ComSend _pfSend, int _iSize, void *_pUserData); |
|
|
TComCtrl *rd_ComCreate(cbk_ComCheck _pfCheck, cbk_ComDecode _pfDecode, cbk_ComSend _pfSend, int _iSize, void *_pUserData); |
|
|
|
|
|
void rd_ComSetRecvTime(TComCtrl *_ptComCtrl, int _iRecvTime); |
|
|
void rd_ComAddDev(TComCtrl *_ptComCtrl, cbk_ComCheck _pfCheck, cbk_ComDecode _pfDecode); |
|
|
void rd_ComAddDev(TComCtrl *_ptComCtrl, cbk_ComCheck _pfCheck, cbk_ComDecode _pfDecode); |
|
|
int rd_ComDelete(TComCtrl *_ptComCtrl); |
|
|
int rd_ComDelete(TComCtrl *_ptComCtrl); |
|
|
int rd_ComSend(TComCtrl *_ptComCtrl, char *_pBuffer, uint32_t _iSize); |
|
|
int rd_ComSend(TComCtrl *_ptComCtrl, char *_pBuffer, uint32_t _iSize); |
|
|
|