STM32U5 I2C
STM32U5 + LSM6dsl
I want to read the general accelerometer register of the I2C interface.
I think it can be achieved by using HAL_I2C_Mem_Read ().
I set the second argument DevAddress to the value of the accelerometer slave address shifted left by 1 bit.
This is a HAL rule.
At this time, is it unnecessary to set bit0 of DevAddress to 1?
HAL_ I2C_ Mem_ Read did not set the bit0 of DevAddress to 1.
I don't know why
Code
HAL_StatusTypeDef status = HAL_OK;
status = HAL_I2C_Mem_Read( &hi2c3, (0x6a<<1), reg_addr, I2C_MEMADD_SIZE_8BIT, data_ptr, len, I2Cx_FLAG_TIMEOUT);

It should be 0XD5
