Function esp_idf_svc::hal::sys::uart_set_always_rx_timeout

source ยท
pub unsafe extern "C" fn uart_set_always_rx_timeout(
    uart_num: u32,
    always_rx_timeout_en: bool,
)
Expand description

@brief Configure behavior of UART RX timeout interrupt.

When always_rx_timeout is true, timeout interrupt is triggered even if FIFO is full. This function can cause extra timeout interrupts triggered only to send the timeout event. Call this function only if you want to ensure timeout interrupt will always happen after a byte stream.

@param uart_num UART number @param always_rx_timeout_en Set to false enable the default behavior of timeout interrupt, set it to true to always trigger timeout interrupt.