Function esp_idf_svc::sys::i2c_master_bus_wait_all_done
source ยท pub unsafe extern "C" fn i2c_master_bus_wait_all_done(
bus_handle: *mut i2c_master_bus_t,
timeout_ms: i32,
) -> i32
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