Showing changes from revision #3 to #4:
Added | Removed | Changed
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 |
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:
Bit | Meaning |
---|---|
0 | DTR |
1 | RTS (read-only if bit |
2 | |
3 | internal use |
4 | internal use |
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.