Question
Do i need one handle per I2C slave device or per STM32 I2C interface?
Posted on July 17, 2017 at 17:09
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
#stm32f4 #i2c