int HAL_UARTInterruptEnable(int port, int eor, int mask)
Entry | |
---|---|
port | Port number to modify |
eor | EOR mask |
mask | AND mask |
Exit | |
---|---|
- | Returns previous interrupt state |
Enables/disables interrupts for the specified port. Interrupts are modified in the following manner:
new_state = (old_state AND mask) EOR eor
The meaning of each interrupt bit is as follows:
Bit | Meaning |
---|---|
0 | Receiver Data Available (and Character Timeout) |
1 | Transmitter Holding Register Empty |
2 | Received Line Status |
3 | Modem Status |