/* Reads the specified I2C register and returns its value.  */
uint32_t I2C_ReadRegister(I2C_T *i2c, uint8_t registers)
/* Reads the specified I2C register and returns its value.  */
uint32_t I2C_ReadRegister(I2C_T *i2c, uint8_t registers)
{
    __IO uint32_t temp = 0;
    temp = (uint32_t)i2c;
    temp += registers;
    return (*(__IO uint32_t*) temp);
}