Function esp_idf_svc::hal::sys::uart_set_hw_flow_ctrl
source ยท pub unsafe extern "C" fn uart_set_hw_flow_ctrl(
uart_num: u32,
flow_ctrl: u32,
rx_thresh: u8,
) -> i32
Expand description
@brief Set hardware flow control.
@param uart_num UART port number, the max port number is (UART_NUM_MAX -1). @param flow_ctrl Hardware flow control mode @param rx_thresh Threshold of Hardware RX flow control (0 ~ UART_HW_FIFO_LEN(uart_num)). Only when UART_HW_FLOWCTRL_RTS is set, will the rx_thresh value be set.
@return - ESP_OK Success - ESP_FAIL Parameter error