[−][src]Function esp_idf_sys::uart_get_collision_flag
pub unsafe extern "C" fn uart_get_collision_flag(
uart_num: uart_port_t,
collision_flag: *mut bool
) -> esp_err_t
@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 @param collision_flag Pointer to variable of type bool to return collision flag.
@return - ESP_OK Success - ESP_ERR_INVALID_ARG Parameter error