Function esp_idf_svc::hal::sys::uart_set_mode

source ยท
pub unsafe extern "C" fn uart_set_mode(
    uart_num: u32,
    mode: u32,
) -> i32
Expand description

@brief UART set communication mode

@note This function must be executed after uart_driver_install(), when the driver object is initialized. @param uart_num Uart number to configure, the max port number is (UART_NUM_MAX -1). @param mode UART UART mode to set

@return - ESP_OK Success - ESP_ERR_INVALID_ARG Parameter error