2019-09-16 04:12 PM
HAL_I2C_Mem_Read(&hi2c1, MAX_READ, FIFO_DATA_REGISTER , I2C_MEMADD_SIZE_8BIT, &buffer, 6 , HAL_MAX_DELAY);
while((HAL_I2C_IsDeviceReady(&hi2c1, MAX_READ, 1 , HAL_MAX_DELAY)) != HAL_OK);
2019-09-16 04:57 PM
Maybe &buffer[0] or simply buffer maybe more appropriate if you want to pass the address of the buffer in memory to fill.