6 years, 10 months ago.

I2CSlave receive()

I'm programming an I2CSlave, which receives a register address and several data byte. They can vary between 1 and 16 per write command. Therefore i need to know, if the received bytes in the buffer from I2CSlave.read(char *data, int length) are complete.

Now when does I2CSlave.receive() returns an integer > 0? Will it return I2CSlave::WriteAddressed after the Stop condition, or can it happen mid-sending?

Be the first to answer this question.