UART handshake modes. More...
![]() |
Defines | |
#define | UART_HS_RTSCTS 0x0003 |
RTS / CTS hardware handshake. | |
#define | UART_HS_MODEM 0x001F |
Full modem hardware handshake. | |
#define | UART_HS_SOFT 0x0020 |
XON / XOFF software handshake. | |
#define | UART_HS_HALFDUPLEX 0x0400 |
Half duplex mode. |
UART handshake modes.
Any of these values may be used by the _ioctl() commands UART_SETFLOWCONTROL and UART_GETFLOWCONTROL.
#define UART_HS_RTSCTS 0x0003 |
#define UART_HS_MODEM 0x001F |
#define UART_HS_SOFT 0x0020 |
XON / XOFF software handshake.
It is recommended to set a proper read timeout with software handshake. In this case a timeout may occur, if the communication peer lost our last XON character. The application may then use ioctl() to disable the receiver and do the read again. This will send out another XON.