STM32F103xB HAL User Manual
Defines
RTCEx Exported Macros
RTCEx

Defines

#define __HAL_RTC_TAMPER_ENABLE_IT(__HANDLE__, __INTERRUPT__)   SET_BIT(BKP->CSR, (__INTERRUPT__))
 Enable the RTC Tamper interrupt.
#define __HAL_RTC_TAMPER_DISABLE_IT(__HANDLE__, __INTERRUPT__)   CLEAR_BIT(BKP->CSR, (__INTERRUPT__))
 Disable the RTC Tamper interrupt.
#define __HAL_RTC_TAMPER_GET_IT_SOURCE(__HANDLE__, __INTERRUPT__)   ((((BKP->CSR) & ((__INTERRUPT__))) != RESET)? SET : RESET)
 Check whether the specified RTC Tamper interrupt has been enabled or not.
#define __HAL_RTC_TAMPER_GET_FLAG(__HANDLE__, __FLAG__)   ((((BKP->CSR) & (__FLAG__)) != RESET)? SET : RESET)
 Get the selected RTC Tamper's flag status.
#define __HAL_RTC_TAMPER_GET_IT(__HANDLE__, __INTERRUPT__)   ((((BKP->CSR) & (BKP_CSR_TEF)) != RESET)? SET : RESET)
 Get the selected RTC Tamper's flag status.
#define __HAL_RTC_TAMPER_CLEAR_FLAG(__HANDLE__, __FLAG__)   SET_BIT(BKP->CSR, BKP_CSR_CTE | BKP_CSR_CTI)
 Clear the RTC Tamper's pending flags.
#define __HAL_RTC_SECOND_ENABLE_IT(__HANDLE__, __INTERRUPT__)   SET_BIT((__HANDLE__)->Instance->CRH, (__INTERRUPT__))
 Enable the RTC Second interrupt.
#define __HAL_RTC_SECOND_DISABLE_IT(__HANDLE__, __INTERRUPT__)   CLEAR_BIT((__HANDLE__)->Instance->CRH, (__INTERRUPT__))
 Disable the RTC Second interrupt.
#define __HAL_RTC_SECOND_GET_IT_SOURCE(__HANDLE__, __INTERRUPT__)   ((((((__HANDLE__)->Instance->CRH)& ((__INTERRUPT__)))) != RESET)? SET : RESET)
 Check whether the specified RTC Second interrupt has occurred or not.
#define __HAL_RTC_SECOND_GET_FLAG(__HANDLE__, __FLAG__)   (((((__HANDLE__)->Instance->CRL) & (__FLAG__)) != RESET)? SET : RESET)
 Get the selected RTC Second's flag status.
#define __HAL_RTC_SECOND_CLEAR_FLAG(__HANDLE__, __FLAG__)   ((__HANDLE__)->Instance->CRL) &= ~(__FLAG__)
 Clear the RTC Second's pending flags.
#define __HAL_RTC_OVERFLOW_ENABLE_IT(__HANDLE__, __INTERRUPT__)   SET_BIT((__HANDLE__)->Instance->CRH, (__INTERRUPT__))
 Enable the RTC Overflow interrupt.
#define __HAL_RTC_OVERFLOW_DISABLE_IT(__HANDLE__, __INTERRUPT__)   CLEAR_BIT((__HANDLE__)->Instance->CRH, (__INTERRUPT__))
 Disable the RTC Overflow interrupt.
#define __HAL_RTC_OVERFLOW_GET_IT_SOURCE(__HANDLE__, __INTERRUPT__)   ((((((__HANDLE__)->Instance->CRH)& ((__INTERRUPT__))) ) != RESET)? SET : RESET)
 Check whether the specified RTC Overflow interrupt has occurred or not.
#define __HAL_RTC_OVERFLOW_GET_FLAG(__HANDLE__, __FLAG__)   (((((__HANDLE__)->Instance->CRL) & (__FLAG__)) != RESET)? SET : RESET)
 Get the selected RTC Overflow's flag status.
#define __HAL_RTC_OVERFLOW_CLEAR_FLAG(__HANDLE__, __FLAG__)   ((__HANDLE__)->Instance->CRL) = ~(__FLAG__)
 Clear the RTC Overflow's pending flags.

Define Documentation

#define __HAL_RTC_OVERFLOW_CLEAR_FLAG (   __HANDLE__,
  __FLAG__ 
)    ((__HANDLE__)->Instance->CRL) = ~(__FLAG__)

Clear the RTC Overflow's pending flags.

Parameters:
__HANDLE__,:specifies the RTC handle.
__FLAG__,:specifies the RTC Overflow Flag sources to be enabled or disabled. This parameter can be:
  • RTC_FLAG_OW
Return values:
None

Definition at line 342 of file stm32f1xx_hal_rtc_ex.h.

Referenced by HAL_RTCEx_RTCIRQHandler().

#define __HAL_RTC_OVERFLOW_DISABLE_IT (   __HANDLE__,
  __INTERRUPT__ 
)    CLEAR_BIT((__HANDLE__)->Instance->CRH, (__INTERRUPT__))

Disable the RTC Overflow interrupt.

Parameters:
__HANDLE__,:specifies the RTC handle.
__INTERRUPT__,:specifies the RTC Overflow interrupt sources to be disabled. This parameter can be any combination of the following values:
  • RTC_IT_OW: Overflow A interrupt
Return values:
None

Definition at line 312 of file stm32f1xx_hal_rtc_ex.h.

#define __HAL_RTC_OVERFLOW_ENABLE_IT (   __HANDLE__,
  __INTERRUPT__ 
)    SET_BIT((__HANDLE__)->Instance->CRH, (__INTERRUPT__))

Enable the RTC Overflow interrupt.

Parameters:
__HANDLE__,:specifies the RTC handle.
__INTERRUPT__,:specifies the RTC Overflow interrupt sources to be enabled This parameter can be any combination of the following values:
  • RTC_IT_OW: Overflow A interrupt
Return values:
None

Definition at line 302 of file stm32f1xx_hal_rtc_ex.h.

#define __HAL_RTC_OVERFLOW_GET_FLAG (   __HANDLE__,
  __FLAG__ 
)    (((((__HANDLE__)->Instance->CRL) & (__FLAG__)) != RESET)? SET : RESET)

Get the selected RTC Overflow's flag status.

Parameters:
__HANDLE__,:specifies the RTC handle.
__FLAG__,:specifies the RTC Overflow Flag sources to be enabled or disabled. This parameter can be:
  • RTC_FLAG_OW
Return values:
None

Definition at line 332 of file stm32f1xx_hal_rtc_ex.h.

Referenced by HAL_RTC_GetTime().

#define __HAL_RTC_OVERFLOW_GET_IT_SOURCE (   __HANDLE__,
  __INTERRUPT__ 
)    ((((((__HANDLE__)->Instance->CRH)& ((__INTERRUPT__))) ) != RESET)? SET : RESET)

Check whether the specified RTC Overflow interrupt has occurred or not.

Parameters:
__HANDLE__,:specifies the RTC handle.
__INTERRUPT__,:specifies the RTC Overflow interrupt sources to be enabled or disabled. This parameter can be:
  • RTC_IT_OW: Overflow A interrupt
Return values:
None

Definition at line 322 of file stm32f1xx_hal_rtc_ex.h.

#define __HAL_RTC_SECOND_CLEAR_FLAG (   __HANDLE__,
  __FLAG__ 
)    ((__HANDLE__)->Instance->CRL) &= ~(__FLAG__)

Clear the RTC Second's pending flags.

Parameters:
__HANDLE__,:specifies the RTC handle.
__FLAG__,:specifies the RTC Second Flag sources to be enabled or disabled. This parameter can be:
  • RTC_FLAG_SEC
Return values:
None

Definition at line 292 of file stm32f1xx_hal_rtc_ex.h.

Referenced by HAL_RTCEx_RTCIRQHandler().

#define __HAL_RTC_SECOND_DISABLE_IT (   __HANDLE__,
  __INTERRUPT__ 
)    CLEAR_BIT((__HANDLE__)->Instance->CRH, (__INTERRUPT__))

Disable the RTC Second interrupt.

Parameters:
__HANDLE__,:specifies the RTC handle.
__INTERRUPT__,:specifies the RTC Second interrupt sources to be disabled. This parameter can be any combination of the following values:
  • RTC_IT_SEC: Second A interrupt
Return values:
None

Definition at line 262 of file stm32f1xx_hal_rtc_ex.h.

Referenced by HAL_RTCEx_DeactivateSecond().

#define __HAL_RTC_SECOND_ENABLE_IT (   __HANDLE__,
  __INTERRUPT__ 
)    SET_BIT((__HANDLE__)->Instance->CRH, (__INTERRUPT__))

Enable the RTC Second interrupt.

Parameters:
__HANDLE__,:specifies the RTC handle.
__INTERRUPT__,:specifies the RTC Second interrupt sources to be enabled This parameter can be any combination of the following values:
  • RTC_IT_SEC: Second A interrupt
Return values:
None

Definition at line 252 of file stm32f1xx_hal_rtc_ex.h.

Referenced by HAL_RTCEx_SetSecond_IT().

#define __HAL_RTC_SECOND_GET_FLAG (   __HANDLE__,
  __FLAG__ 
)    (((((__HANDLE__)->Instance->CRL) & (__FLAG__)) != RESET)? SET : RESET)

Get the selected RTC Second's flag status.

Parameters:
__HANDLE__,:specifies the RTC handle.
__FLAG__,:specifies the RTC Second Flag sources to be enabled or disabled. This parameter can be:
  • RTC_FLAG_SEC
Return values:
None

Definition at line 282 of file stm32f1xx_hal_rtc_ex.h.

Referenced by HAL_RTCEx_RTCIRQHandler().

#define __HAL_RTC_SECOND_GET_IT_SOURCE (   __HANDLE__,
  __INTERRUPT__ 
)    ((((((__HANDLE__)->Instance->CRH)& ((__INTERRUPT__)))) != RESET)? SET : RESET)

Check whether the specified RTC Second interrupt has occurred or not.

Parameters:
__HANDLE__,:specifies the RTC handle.
__INTERRUPT__,:specifies the RTC Second interrupt sources to be enabled or disabled. This parameter can be:
  • RTC_IT_SEC: Second A interrupt
Return values:
None

Definition at line 272 of file stm32f1xx_hal_rtc_ex.h.

Referenced by HAL_RTCEx_RTCIRQHandler().

#define __HAL_RTC_TAMPER_CLEAR_FLAG (   __HANDLE__,
  __FLAG__ 
)    SET_BIT(BKP->CSR, BKP_CSR_CTE | BKP_CSR_CTI)

Clear the RTC Tamper's pending flags.

Parameters:
__HANDLE__,:specifies the RTC handle.
__FLAG__,:specifies the RTC Tamper Flag sources to be enabled or disabled. This parameter can be:
  • RTC_FLAG_TAMP1F
Return values:
None

Definition at line 242 of file stm32f1xx_hal_rtc_ex.h.

Referenced by HAL_RTCEx_DeactivateTamper(), HAL_RTCEx_PollForTamper1Event(), and HAL_RTCEx_TamperIRQHandler().

#define __HAL_RTC_TAMPER_DISABLE_IT (   __HANDLE__,
  __INTERRUPT__ 
)    CLEAR_BIT(BKP->CSR, (__INTERRUPT__))

Disable the RTC Tamper interrupt.

Parameters:
__HANDLE__,:specifies the RTC handle.
__INTERRUPT__,:specifies the RTC Tamper interrupt sources to be disabled. This parameter can be any combination of the following values:
  • RTC_IT_TAMP1: Tamper A interrupt
Return values:
None

Definition at line 202 of file stm32f1xx_hal_rtc_ex.h.

Referenced by HAL_RTCEx_DeactivateTamper().

#define __HAL_RTC_TAMPER_ENABLE_IT (   __HANDLE__,
  __INTERRUPT__ 
)    SET_BIT(BKP->CSR, (__INTERRUPT__))

Enable the RTC Tamper interrupt.

Parameters:
__HANDLE__,:specifies the RTC handle.
__INTERRUPT__,:specifies the RTC Tamper interrupt sources to be enabled This parameter can be any combination of the following values:
  • RTC_IT_TAMP1: Tamper A interrupt
Return values:
None

Definition at line 192 of file stm32f1xx_hal_rtc_ex.h.

Referenced by HAL_RTCEx_SetTamper_IT().

#define __HAL_RTC_TAMPER_GET_FLAG (   __HANDLE__,
  __FLAG__ 
)    ((((BKP->CSR) & (__FLAG__)) != RESET)? SET : RESET)

Get the selected RTC Tamper's flag status.

Parameters:
__HANDLE__,:specifies the RTC handle.
__FLAG__,:specifies the RTC Tamper Flag sources to be enabled or disabled. This parameter can be:
  • RTC_FLAG_TAMP1F
Return values:
None

Definition at line 222 of file stm32f1xx_hal_rtc_ex.h.

Referenced by HAL_RTCEx_PollForTamper1Event(), and HAL_RTCEx_TamperIRQHandler().

#define __HAL_RTC_TAMPER_GET_IT (   __HANDLE__,
  __INTERRUPT__ 
)    ((((BKP->CSR) & (BKP_CSR_TEF)) != RESET)? SET : RESET)

Get the selected RTC Tamper's flag status.

Parameters:
__HANDLE__,:specifies the RTC handle.
__INTERRUPT__,:specifies the RTC Tamper interrupt sources to be checked. This parameter can be:
  • RTC_IT_TAMP1
Return values:
None

Definition at line 232 of file stm32f1xx_hal_rtc_ex.h.

#define __HAL_RTC_TAMPER_GET_IT_SOURCE (   __HANDLE__,
  __INTERRUPT__ 
)    ((((BKP->CSR) & ((__INTERRUPT__))) != RESET)? SET : RESET)

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

Parameters:
__HANDLE__,:specifies the RTC handle.
__INTERRUPT__,:specifies the RTC Tamper interrupt sources to be checked. This parameter can be:
  • RTC_IT_TAMP1
Return values:
None

Definition at line 212 of file stm32f1xx_hal_rtc_ex.h.

Referenced by HAL_RTCEx_TamperIRQHandler().