i2c slave read/write direction - how to determine?

pctj101
Posts: 23
Joined: Wed Aug 23, 2017 3:20 pm

i2c slave read/write direction - how to determine?

Postby pctj101 » Tue Jun 01, 2021 2:37 pm

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!

Who is online

Users browsing this forum: No registered users and 80 guests