Function esp_idf_sys::uart_set_dtr

source ·
pub unsafe extern "C" fn uart_set_dtr(
    uart_num: uart_port_t,
    level: c_int
) -> esp_err_t
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