/* Checks whether the specified ADC interrupt has occurred or not.  */
INTStatus ADC_GetIntStatus(ADC_Module *ADCx, uint16_t ADC_IT)
/* Checks whether the specified ADC interrupt has occurred or not.  */
INTStatus ADC_GetIntStatus(ADC_Module *ADCx, uint16_t ADC_IT)
{
    INTStatus bitstatus = RESET;
    uint32_t itmask = 0, enablestatus = 0;
    assert_param(IsAdcModule(ADCx));
    assert_param(IsAdcGetInt(ADC_IT));
    itmask = ADC_IT >> 8;
    enablestatus = (ADCx->CTRL1 & (uint8_t)ADC_IT);
    if (((ADCx->STS & itmask) != (uint32_t)RESET) && enablestatus)
    {
        bitstatus = SET;
    }
    else
    {
        bitstatus = RESET;
    }
    return bitstatus;
}