How to use HAL_I2C with repeated start conditions
Hello! I'm trying to interface with a sensor that requires a repeated start condition.
Datasheet: https://www.mouser.com/datasheet/2/348/ROHM_S_A0005047448_1-2562246.pdf
I have other sensors on my I2C bus that I can communicate with.
I also get '1' on HAL_I2C_IsDeviceReady(&hi2c1, 0x5B, 3, 5);
I tried using HAL_I2C_Mem_Read, as it's my understanding that this function does a repeated start, but it doesn't seem to work with the sensor (this function works with 3 other sensors on my bus).
I'm assuming the implementation of HAL_I2C_Mem_Read doesn't meet my requirements.
The sensor I'm interfacing requires: [ST][SLAVE ADDR][W/0][ACK][READ REG][ACK][ST][SLAVE ADDR][R/1][ACK][DATA][NACK][SP]
What am I getting wrong here?
Using STM32WB, with CubeIDE.
Thank you!!! :)