I2C API I2C time-out value

Table 1. I2C API I2C time-out value
Routine I2C time-out value
Prototype ErrorCode_t i2c_set_timeout(I2C_HANDLE_T* h_i2c, uint32_t timeout)
Input parameter I2C_HANDLE_T - Handle to the allocated SRAM area.

uint32_t timeout - time value is timeout*16 i2c function clock. If timeout = 0, timeout feature is disabled.

Return Status code.
Description Returns status code. The status code indicates the state of the I2C bus. Refer to I2C Status Code Table.