i2c_m_sync_deinit

Deinitialize I2C interface.

int32_t i2c_m_sync_deinit(
    struct i2c_m_sync_desc * i2c
)

This function deinitializes the given I/O 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_sync_desc Struct *

An I2C descriptor, which is used to communicate through I2C

Returns

Type: int32_t

Uninitialization status.

-1

The passed parameters were invalid or the interface is already deinitialized

0

The de-initialization is completed successfully