HAL_NVIC_GetActive() function
Gets active interrupt ( reads the active register in NVIC and returns the active bit).
Arguments
IRQn
External interrupt number This parameter can be an enumerator of IRQn_Type enumeration (For the complete STM32 Devices IRQ Channels list, please refer to the appropriate CMSIS device file (stm32f4xxxx.h))
Return value
status: - 0 Interrupt status is not pending. - 1 Interrupt status is pending.