AnsweredAssumed Answered

K82 : cancel I2C transfer

Question asked by Eugene Hiihtaja on Dec 13, 2018
Latest reply on Dec 14, 2018 by Kerry Zhou

Hello !


I should be able to cancel any ongoing transaction  for I2C Master and Slave interfaces.



In case of slave I'm using I2C_SlaveTransferAbort() what should cancel any read/write operation on I2C bus.

Is this OK ?


2. For I2C master I'm using freeRTOS wrappers and they dosn't have any API for aborting transfers.

 Should I use I2C_MasterStop(I2C_Type *base) ?


I'm using interrupt driver I2C master and slave interfaces and nonblocking transfers. DMA is disabled.