26.1.5.10 i2c_m_async_transfer
Async version of transfer message to/from I2C slave.
int32_t i2c_m_async_transfer(
struct i2c_m_async_desc *const i2c,
struct _i2c_m_msg * msg
)
This function will transfer a message between the I2C slave and the master. This function will not wait for the transfer to complete.
Parameters
- i2c
-
Type: struct i2c_m_async_desc Struct *const
An I2C master descriptor, which is used to communicate through I2C
- msg
-
Type: struct _i2c_m_msg *
An i2c_m_msg struct
Returns
Type: int32_t
The status of the operation
- 0
-
Operation completed successfully
- <0
-
Operation failed