int HAL_UARTModemControl(int port, int eor, int mask)
|port||Port number to modify|
|-||Returns the previous state|
This is an internal call for use by the DualSerial module and should not be used by user code. Instead of calling the HAL directly, user code should interact with the Serial* entries that DualSerial creates in DeviceFS.
Modifies the modem control outputs. The state is updated as follows:
new_state = (old_state AND mask) EOR eor
The meanings of the bits are as follows:
|1||RTS (read-only if bit 5 set)|
|5||Enable hardware RTS/CTS control|
Note that these are logical outputs, although the physical pins may be inverted. So 1 indicates a request to send.