Function esp_idf_svc::hal::sys::uart_get_collision_flag

source ยท
pub unsafe extern "C" fn uart_get_collision_flag(
    uart_num: u32,
    collision_flag: *mut bool,
) -> i32
Expand description

@brief Returns collision detection flag for RS485 mode Function returns the collision detection flag into variable pointed by collision_flag. *collision_flag = true, if collision detected else it is equal to false. This function should be executed when actual transmission is completed (after uart_write_bytes()).

@param uart_num Uart number to configure the max port number is (UART_NUM_MAX -1). @param collision_flag Pointer to variable of type bool to return collision flag.

@return - ESP_OK Success - ESP_ERR_INVALID_ARG Parameter error