int HAL_UARTModemStatus(int port)
Entry | |
---|---|
port | Port number to query |
Exit | |
---|---|
Bit 0 | CTS changed since last call |
Bit 1 | DSR changed since last call |
Bit 2 | RI changed from high to low since last call |
Bit 3 | DCD changed since last call |
Bit 4 | CTS |
Bit 5 | DSR |
Bit 6 | RI |
Bit 7 | DCD |
Reads the modem status inputs. Note that these are logical inputs, although the physical pins may be inverted. So 1 indicates a Clear To Send condition.