/* Checks whether the specified I2C interrupt has occurred or not.  */
ITStatus I2C_GetITStatus(I2C_TypeDef *i2c, u32 it)
/* Checks whether the specified I2C interrupt has occurred or not.  */
ITStatus I2C_GetITStatus(I2C_TypeDef *i2c, u32 it)
{
    return ((i2c->IC_RAW_INTR_STAT & it) ? SET : RESET);
}