HAL_NVIC_GetPendingIRQ() function
Gets Pending Interrupt (reads the pending register in the NVIC and returns the pending bit for the specified interrupt).
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.