int HAL_UARTModemControl(int port, int eor, int mask)
Entry | |
---|---|
port | Port number to modify |
eor | EOR mask |
mask | AND mask |
Exit | |
---|---|
- | Returns the previous state |
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:
Bit | Meaning |
---|---|
0 | DTR |
1 | RTS |
Note that these are logical outputs, although the physical pins may be inverted. So 1 indicates a request to send.