/* Return either enabled or raw selected ADC interrupt status.  */
uint32_t am_hal_adc_int_status_get(bool bEnabledOnly)
/* Return either enabled or raw selected ADC interrupt status.  */
uint32_t am_hal_adc_int_status_get(bool bEnabledOnly)
{
    if (bEnabledOnly)
    {
        uint32_t u32RetVal = AM_REG(ADC, INTEN);
        u32RetVal &= AM_REG(ADC, INTSTAT);
        return u32RetVal;
    }
    else
    {
        return AM_REG(ADC, INTSTAT);
    }
}