1 of 1 people found this helpful
You can make use of Cy_SCB_I2C_RegisterEventCallback() to register a callback function that notifies various events such as write and read completion occurred in the Cy_SCB_I2C_Interrupt. Please make use of PDL documentation and code example CE221119 – PSoC 6 MCU I2C Slave. It demonstrates I2C slave using callback method.
Here is the PDL documentation location in my machine : file:///C:/Program%20Files%20(x86)/Cypress/PDL/3.0.1/doc/pdl_api_reference_manual/html/group__group__scb__i2c__interrupt__functions.html
Thank you for your response!
I was able to try out the callback method today and it worked like a charm!
Thank you for your help!