I2C Interrupt operation | Cypress Semiconductor
I2C Interrupt operation
I want to receive a message from the I2C and upon an interrupt, process the received message, this means that the I2C is in slave mode.
I have insured that the message is actually coming in my using a poll method in an idle loop to monitor the status and upon a SCB_I2C_SSTAT_WR_CMPLT status indication, process the message. This works.
However, when I register the custom interrupt handler and process the SCB_INTR_SLAVE_I2C_WRITE_STOP interrupt source, there is no data in the receive buffer.
Is there someway to force the data to be copied into the buffer upon this interrupt.