cancel
Showing results for 
Search instead for 
Did you mean: 

Knowledge Base Articles

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

chaitanyav_41
Employee

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

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
Version history
Revision #:
1 of 1
Last update:
‎Feb 19, 2018 12:04 AM
Updated by:
 
Contributors