i2c_m_sync_get_io_descriptor

Return I/O descriptor for this I2C instance.

int32_t i2c_m_sync_get_io_descriptor(
    struct i2c_m_sync_desc *const i2c,
    struct io_descriptor ** io
)

This function will return a I/O instance for this I2C driver instance

Parameters

i2c_m_sync_desc

An I2C descriptor, which is used to communicate through I2C

io_descriptor

A pointer to an I/O descriptor pointer type

Returns

Type: int32_t

Error code

0

No error detected

<0

Error code