AnsweredAssumed Answered

Do i need one handle per I2C slave device or per STM32 I2C interface?

Question asked by Patrick Morwald on Jul 17, 2017
Latest reply on Jul 18, 2017 by Patrick Morwald

Hi,

 

i have multiple slaves on an I2C bus on STM32F4. 

 

Since a "I2C_HandleTypeDef hi2c_x;" contains also fields like "DevAddress", do i need one HandleTypeDef per slave device on the bus or should they share one handle? Sorry if its a trivial question i just want to clarify whats the proper approach and couldnt find the answer in the HAL Driver description documents.

 

Thanks for your help,

 

Patrick

Outcomes