SERIAL_DEV_STATUS (Compact 2013)
3/26/2014
This structure stores the type of error and the communication status. Executing IOCTL_SERIAL_GET_COMMSTATUS populates this structure.
Syntax
typedef struct _SERIAL_DEV_STATUS {
DWORD Errors;
COMSTAT ComStat;
} SERIAL_DEV_STATUS, *PSERIAL_DEV_STATUS;
Members
Errors
Bitmask containing the types of errors.The following table shows this bitmask.
Bit
Description
CE_BREAK
Hardware detected a break condition.
CE_FRAME
Hardware detected a framing error.
CE_IOE
I/O error occurred during communications with the device.
CE_MODE
Requested mode is not supported, or the hCommDevparameter is invalid. If this value is specified, it is the only valid error.
CE_OVERRUN
Character-buffer overrun. The next character is lost.
CE_RXOVER
Input-buffer overrun. There is either no room in the input buffer or a character was received after the end-of-file (EOF) character.
CE_RXPARITY
Hardware detected a parity error.
CE_TXFULL
Application tried to transmit a character, but the output buffer was full.
CE_DNS
Parallel device is not selected.
CE_PTO
Time-out event occurred on a parallel device.
CE_OOP
Parallel device signaled that it is out of paper.
- ComStat
COMSTAT structure.
Requirements
Header |
pegdser.h |
See Also
Reference
Serial Port Driver Structures
IOCTL_SERIAL_GET_COMMSTATUS