Page 1 of 1

i2c slave read/write direction - how to determine?

Posted: Tue Jun 01, 2021 2:37 pm
by pctj101
When using i2c_slave_read_buffer()

It it possible to determine if the master wants to "read" or "write" to me as the esp32 i2c slave target?

I figure the i2c address + write bit would allow me to figure out the intent, but it appears that write=true/false bit is not available via the esp-idf API.

Did I miss something? Or perhaps is it customary to not need to know if the master wants a read/write?

Thanks!