i2c_m_async_deinit

Deinitialize asynchronous I2C master interface.

int32_t i2c_m_async_deinit(
    struct i2c_m_async_desc *const i2c
)

This function deinitializes the given asynchronous 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_async_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