/* Check whether the specified ADC flag is set or not.  */
flag_status_t ald_adc_get_flag_status(ald_adc_handle_t *hperh, ald_adc_flag_t flag)
/* Check whether the specified ADC flag is set or not.  */
flag_status_t ald_adc_get_flag_status(ald_adc_handle_t *hperh, ald_adc_flag_t flag)
{
    assert_param(IS_ADC_TYPE(hperh->perh));
    assert_param(IS_ADC_FLAGS_TYPE(flag));
    if (READ_BIT(hperh->perh->STAT, flag))
        return SET;
    return RESET;
}