Function esp_idf_sys::i2c_master_bus_wait_all_done
source ยท pub unsafe extern "C" fn i2c_master_bus_wait_all_done(
bus_handle: i2c_master_bus_handle_t,
timeout_ms: c_int,
) -> esp_err_t
Expand description
@brief Wait for all pending I2C transactions done
@param[in] bus_handle I2C bus handle @param[in] timeout_ms Wait timeout, in ms. Specially, -1 means to wait forever. @return - ESP_OK: Flush transactions successfully - ESP_ERR_INVALID_ARG: Flush transactions failed because of invalid argument - ESP_ERR_TIMEOUT: Flush transactions failed because of timeout - ESP_FAIL: Flush transactions failed because of other error