Function esp_idf_sys::uart_set_hw_flow_ctrl

source ยท
pub unsafe extern "C" fn uart_set_hw_flow_ctrl(
    uart_num: uart_port_t,
    flow_ctrl: uart_hw_flowcontrol_t,
    rx_thresh: u8,
) -> esp_err_t
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_FIFO_LEN). Only when UART_HW_FLOWCTRL_RTS is set, will the rx_thresh value be set.

@return - ESP_OK Success - ESP_FAIL Parameter error