Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob

Difference between ‘slaveAddress’ Parameter of CY_I2C_CONFIG and CY_I2C_DATA_CONFIG - KBA222701

Difference between ‘slaveAddress’ Parameter of CY_I2C_CONFIG and CY_I2C_DATA_CONFIG - KBA222701

Community-Team
Employee
Employee
50 questions asked 10 questions asked 5 questions asked

Version: **

Translation - Japanese: CY_I2C_CONFIGとCY_I2C_DATA_CONFIGの「slaveAddress」パラメータの違い - KBA222701 - Community Translated (JA)

Question:

What is the difference between the ‘slaveAddress’ parameter in the two structure types CY_I2C_CONFIG and CY_I2C_DATA_CONFIG?

Answer:

USB-Serial devices use two structure data types namely, CY_I2C_CONFIG and CY_I2C_DATA_CONFIG for I2C communications. Both these structure types have a parameter named ‘slaveAddress’.

The ‘slaveAddress’ parameter of the CY_I2C_CONFIG structure indicates the actual slave address of the device. This parameter has no effect if the device is configured as an I2C master.

The ‘slaveAddress’ parameter of the CY_I2C_DATA_CONFIG structure indicates the slave address with which the master will communicate. This parameter has no meaning when the device is configured as I2C slave.

In other words, the effectivity of the ‘slaveAddress’ parameter of the structure is dependent on the ‘isMaster’ parameter.

0 Likes
330 Views
Contributors