/* Returns the most recent received data by the i2c peripheral.  */
u8 I2C_ReceiveData(I2C_TypeDef *i2c)
/* Returns the most recent received data by the i2c peripheral.  */
u8 I2C_ReceiveData(I2C_TypeDef *i2c)
{
    I2C_CMD_DIR = 0;
    return (u8)i2c->IC_DATA_CMD;
}