/* Get the status of interrupt flag and interupt source.  */
flag_status_t ald_i2c_get_mask_flag_status(ald_i2c_handle_t *hperh, ald_i2c_interrupt_t flag)
/* Get the status of interrupt flag and interupt source.  */
flag_status_t ald_i2c_get_mask_flag_status(ald_i2c_handle_t *hperh, ald_i2c_interrupt_t flag)
{
    assert_param(IS_I2C_TYPE(hperh->perh));
    assert_param(IS_I2C_IT(flag));
    if (hperh->perh->IFM & flag)
        return SET;
    return RESET;
}