26.2.2.2 i2c_m_os_deinit
Deinitialize I2C master interface.
int32_t i2c_m_os_deinit(
struct i2c_m_os_desc *const i2c
)
This function deinitializes the given RTOS I2C master descriptor. It checks if the given hardware is initialized and if the given hardware is permitted to be deinitialized.
Parameters
- i2c
-
Type: struct i2c_m_os_desc Struct *const
An I2C master descriptor, which is used to communicate through I2C
Returns
Type: int32_t
De-initialization status.
- -1
-
The passed parameters were invalid or the interface is already deinitialized
- 0
-
The de-initialization is completed successfully