i2c_m_os_get_io

Return I/O descriptor for this I2C instance.

static int32_t i2c_m_os_get_io(
    struct i2c_m_os_desc *const i2c,
    struct io_descriptor ** io
)

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

Parameters

i2c

Type: struct i2c_m_os_desc Struct *const

An I2C master descriptor, which is used to communicate through I2C

io

Type: struct io_descriptor Struct **

A pointer to an I/O descriptor pointer type

Returns

Type: int32_t

Error code

0

No error detected

<0

Error code