/* Writes a Byte to a given register to the sensors through the control interface (I2C)  */
unsigned long ST_Sensors_I2C_WriteRegister(unsigned char Address, unsigned char RegisterAddr, unsigned short RegisterLen, const unsigned char *RegisterValue)
/* Writes a Byte to a given register to the sensors through the control interface (I2C)  */
unsigned long ST_Sensors_I2C_WriteRegister(unsigned char Address, unsigned char RegisterAddr, unsigned short RegisterLen, const unsigned char *RegisterValue)
{
  uint32_t  result = HAL_I2C_Mem_Write(&hi2c2, Address << 1, RegisterAddr, 1, (unsigned char *)RegisterValue, RegisterLen, I2Cx_LONG_TIMEOUT);
  return result;
}