I2C_Repair


After an interruption in protocol, power loss or system reset, any I2C part can be reset by following these steps: - Clock up to 9 cycles; - Look for SDA high in each cycle while SCL is high - and then create a start condition as SDA is high.

ERRCODE I2C_Repair()

Parameters


None

Return Value


ERRCODE - SUCCESS if operation successful, non-zero error code otherwise

Remarks


N/A

Requirements


i2c.h

Example


N/A

Library


SDCC Library Reference