26.1.5.7 i2c_m_async_disable
Async version of disable hardware.
int32_t i2c_m_async_disable(
struct i2c_m_async_desc *const i2c
)
This function disables the I2C master device and then waits for this disabling operation to be done.
Parameters
- i2c
-
Type: struct i2c_m_async_desc Struct *const
An I2C master descriptor, which is used to communicate through I2C
Returns
Type: int32_t
The status whether successfully disabled
- -1
-
The passed parameters were invalid or the device disable failed
- 0
-
The hardware disabling is completed successfully