Strictly necessary cookies are on by default and cannot be turned off. Functional, Performance and Tracking/targeting/sharing cookies can be turned on below based on your preferences (this banner will remain available for you to accept cookies). You may change your cookie settings by deleting cookies from your browser. Then this banner will appear again. You can learn more details about cookies HERE.
Strictly necessary (always on)
Functional, Performance and Tracking/targeting/sharing (default off)
What is the difference between the ‘slaveAddress’ parameter in the two structure types CY_I2C_CONFIG and CY_I2C_DATA_CONFIG?
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.