AnsweredAssumed Answered

HAL I2C slave with read/write

Question asked by kureigu on Aug 27, 2015
Latest reply on Aug 28, 2015 by kureigu
Hi,

I've been looking over an example of master/slave I2C communication using an interrupt and I just can't seem to figure out how it actually works. The description is really vague and the HAL documentation isn't much better.

I need to write some firmware that will receive some commands/data, and act upon the data received, but it will also receive requests where it will have to reply to the master with data.

How can I modify this code to either just receive commands when sent to the write address, or respond to commands when sent to the read address?

Outcomes