How to use Psoc 4 SCB EZI2C? | Cypress Semiconductor
How to use Psoc 4 SCB EZI2C?
I don't know how to use I2c communication.
Now, I use CY8C4125AXI-483 as slaver.it will send data to master and receive data from master.
Question 1:And i will choose I2C SCB or EZI2C SCB?
I find EZI2C easier than I2C,so i choose EZI2C SCB.but its sample code is so short that i don't konw how to use.
the sample code like this:
if(EZI2C_EzI2CGetActivity() & EZI2C_EZI2C_STATUS_WRITE1)
if i want to send data to master,i will write code like this?
if(EZI2C_EzI2CGetActivity() & EZI2C_EZI2C_STATUS_READ1)
Question 2:Could you give me some sample code that not short?