COMSTAT结构 COMSTAT结构包含串口的信息,结构定义如下: typedef struct _COMSTAT { // cst DWORD fCtsHold : 1; // Tx waiting for CTS signal DWORD fDsrHold : 1; // Tx waiting for DSR signal DWORD fRlsdHold : 1; // Tx waiting for RLSD signal DWORD fXoffHold : 1; // Tx waiting, XOFF char rec''d DWORD fXoffSent : 1; // Tx waiting, XOFF char sent DWORD fEof : 1; // EOF character sent DWORD fTxim : 1; // character waiting for Tx DWORD fReserved : 25; // reserved DWORD cbInQue; // bytes in input buffer该成员变量的值代表输入缓冲区的字节数 DWORD cbOutQue; // bytes in output buffer } COMSTAT, *LPCOMSTAT; |
|
来自: BeautymengRoom > 《c 》