Loading...
 
Skip to main content

System Workbench for STM32


GPIO Toggle Question

Hey,

I haven't used the Hal library much. But i think the HAL_IC2_Master_Receive function just sends the address and then records size bytes.
This is useful for devices with a 2 step readout. In the first transmission you would tell the device which register you want to read and in the second transmission you would use this function.

And i think HAL_I2C_Mem_Read would first send the address, then the register you want to read and then record size bytes in a consecutive transmission.

Can't get more information from the usermanual and i haven't really worked with the i2c and the HAL so you better dont rely on me!

I hope someone else can help you!

Bab