Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
7 years, 6 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?