AnsweredAssumed Answered

How to de-activate HAL_I2C_Slave_Receive_IT()

Question asked by Ed Boris on Apr 3, 2018
Latest reply on May 10, 2018 by Sandro G

I have a slave device that is monitoring the I2C bus for its address from a master. This was done using the API HAL_I2C_Slave_Receive_IT(). This works successfully. My question is - if you want the slave device to stop monitoring the bus because would like to perform a different operation - how do you get the slave to stop? It seems like once you invoke this API there is no way to get out of this mode until an I2C address frame comes along with a matching address. There doesn't seem to be an API to do this. I tried HAL_I2C_DisableListen_IT() but that didn't seem to work. ANy tricks to this?