2023-02-17 10:09 PM
I hope someone can clarify for me these details. Thanks.
2023-02-17 11:33 PM
2023-02-18 12:15 AM
You don't need 10-bit addressing for LSM303DLHC, it has a 7-bit address.
SUB in those figures mean a number which determines, which register are you going to read or write. There's no support for this "subaddress" in the I2C hardware in 'F4 (or any other STM32 AFAIK) - you simply treat it as one byte of data.
As AScha3 said above, Cube/HAL (i.e. the library) may have software support for such "subaddress" ("register address") - I don't use Cube.
JW
2023-02-18 12:00 PM
Thank you everyone for help.
I suspected that SUB just a part of data packet. Just that 'Repeat Start' a bit confusing, looking like it is a part of i2c specification. I wanted to see general picture applicable to future projects.