i2c_m_os_send_stop

Generate stop condition on the I2C bus.

int32_t i2c_m_os_send_stop(
    struct i2c_m_os_desc *const i2c
)

This function will generate a stop condition on the I2C bus

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

Operation status

0

Operation executed successfully

<0

Operation failed