[][src]Function esp_idf_sys::uart_flush

pub unsafe extern "C" fn uart_flush(uart_num: uart_port_t) -> esp_err_t

@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_NUM_0, UART_NUM_1 or UART_NUM_2

@return - ESP_OK Success - ESP_FAIL Parameter error