Function esp_idf_sys::uart_flush
source ยท pub unsafe extern "C" fn uart_flush(
uart_num: uart_port_t,
) -> esp_err_t
Expand description
@brief Alias of uart_flush_input. UART ring buffer flush. This will discard all data in the UART RX buffer. @note Instead of waiting the data sent out, this function will clear UART rx buffer. In order to send all the data in tx FIFO, we can use uart_wait_tx_done function. @param uart_num UART port number, the max port number is (UART_NUM_MAX -1).
@return - ESP_OK Success - ESP_FAIL Parameter error