Home |
RTKernel-32 Programming Manual Function COMWaitSendBufferEmpty Function COMSetModemStatusHook Function COMLineStatus |
Function COMLineStatusCOMLineStatus enquires the line status register of a port: BYTE COMLineStatus(int Port); ParametersPortThe port to enquire. return valueThe contents of the Line Status Register is returned. The return value is bit-oriented; the following bits can be set:
All error bits (COM_OVERRUN, COM_PARITY, COM_FRAME, and COM_BREAK) are cleared after they have been read once. Since RTCom's interrupt handler also reads the line status register, these can never be read with COMLineStatus if interrupt-driven communication is used.
|