Page 1 of 1

I2C Slave Transaction

Posted: Sat Jul 20, 2024 3:42 am
by equinox2k
I have a I2C Master device which sends a command then expects to read a value back based on command sent.

My problem is i can receive the command sent, how ever transmitting a value back seems to be another transaction and thus master device does not get expected value.

I've been following the i2c_slave examples, however there is nothing i can see where i can begin a transaction, receive command, then send result, end transaction.

Do i have to use the hal_i2c_slave somehow or something else?

Thanks in advance