This test requires connecting the I2C Master and Slave externally.
1) Master periodically sends I2C data (from 0x00 to 0xFF one by one) addressing the slave [0x08].
2) Slave reads the data, complements, and writes to slave read buffer.
3) Master reads the data from slave and compares it with the complement of data sent in last interaction.
I2C Write API - Operation:
1) Initiates I2C Master transaction to write data to the slave. 2) Waits for Write transfer completion. 3) Reads the Slave Write buffer. 4) Performs 1's complement on the read data. 5) Writes the complemented data to Slave Read Buffer.
I2C Read API - Operation:
1) Initiates I2C Master transaction to read data from the slave. 2) Waits for Read transfer completion. 3) Checks whether the data read is equal to the complement of data written.
API Reference | |
| Macros | |
| Functions | |