Function esp_idf_svc::sys::uart_set_dtr

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

@brief Manually set the UART DTR pin level.

@param uart_num UART port number, the max port number is (UART_NUM_MAX -1). @param level 1: DTR output low; 0: DTR output high

@return - ESP_OK Success - ESP_FAIL Parameter error