HAL
__HAL_RTC_ALARM_GET_IT_SOURCE is only used within HAL.
 
Symbols
loading...
Files
loading...
CodeScopeSTM32 Libraries and SamplesHAL__HAL_RTC_ALARM_GET_IT_SOURCE

__HAL_RTC_ALARM_GET_IT_SOURCE macro

Check whether the specified RTC Alarm interrupt has been enabled or not.

Syntax

#define __HAL_RTC_ALARM_GET_IT_SOURCE(__HANDLE__, __INTERRUPT__) (((((__HANDLE__)->Instance->CR) & (__INTERRUPT__)) != 0U) ? 1U : 0U)

Arguments

__HANDLE__

specifies the RTC handle.

__INTERRUPT__

specifies the RTC Alarm interrupt sources to check. This parameter can be: @arg RTC_IT_ALRA: Alarm A interrupt @arg RTC_IT_ALRB: Alarm B interrupt

Return value

None

References

LocationText
stm32f4xx_hal_rtc.h:593
#define __HAL_RTC_ALARM_GET_IT_SOURCE(__HANDLE__, __INTERRUPT__) (((((__HANDLE__)->Instance->CR) & (__INTERRUPT__)) != 0U) ? 1U : 0U)
stm32f4xx_hal_rtc.c:1550
if (__HAL_RTC_ALARM_GET_IT_SOURCE(hrtc, RTC_IT_ALRA) != 0U)
stm32f4xx_hal_rtc.c:1568
if (__HAL_RTC_ALARM_GET_IT_SOURCE(hrtc, RTC_IT_ALRB) != 0U)