EXTI: Added function to get flag status