Reading from Accelerometer via i2c on STM32F3 Discovery
Can anyone tell me the difference between those functions:
HAL_I2C_Master_Receive
HAL_I2C_Mem_Read
The problem with HAL_I2C_Master_Receive is that it accepts too few parameters (hi2c, DevAddress, pData, Size, Timeout).
I don't know how to tell the memory address of the register in the slave to be read!!
So, in my case I am trying to read data from LSM303DLHC whose DevAddress is 0X33 and the acceleration data are to read from the following addresses: 0X28 -> 2Dh (i.e. 6 bytes).
Thanks in advance for any help or if there is a ready example project.
