How to distinguish back-to-back I2C slave writes in a single buffer? | Cypress Semiconductor
How to distinguish back-to-back I2C slave writes in a single buffer?
Suppose you're implementing an I2C slave and you have a sufficiently large receive buffer to hold several transactions worth of data. What is the preferred method for figuring out where one transaction stops and the next one starts?
E.g., when you have an auto-increment style slave command where the master terminates the command with an I2C stop condition, how can you recognize the stop condition outside of the ISR?
There's a _customIntrHandler() hook in the slave ISR, but it's not clear to me how to use it for this purpose.