STM32F439xx HAL User Manual
Defines
RTC Tamper
RTCEx Exported Macros

Defines

#define __HAL_RTC_TAMPER1_ENABLE(__HANDLE__)   ((__HANDLE__)->Instance->TAFCR |= (RTC_TAFCR_TAMP1E))
 Enable the RTC Tamper1 input detection.
#define __HAL_RTC_TAMPER1_DISABLE(__HANDLE__)   ((__HANDLE__)->Instance->TAFCR &= ~(RTC_TAFCR_TAMP1E))
 Disable the RTC Tamper1 input detection.
#define __HAL_RTC_TAMPER2_ENABLE(__HANDLE__)   ((__HANDLE__)->Instance->TAFCR |= (RTC_TAFCR_TAMP2E))
 Enable the RTC Tamper2 input detection.
#define __HAL_RTC_TAMPER2_DISABLE(__HANDLE__)   ((__HANDLE__)->Instance->TAFCR &= ~(RTC_TAFCR_TAMP2E))
 Disable the RTC Tamper2 input detection.
#define __HAL_RTC_TAMPER_GET_IT(__HANDLE__, __INTERRUPT__)   (((((__HANDLE__)->Instance->ISR) & ((__INTERRUPT__)>> 4U)) != RESET)? SET : RESET)
 Check whether the specified RTC Tamper interrupt has occurred or not.
#define __HAL_RTC_TAMPER_GET_IT_SOURCE(__HANDLE__, __INTERRUPT__)   (((((__HANDLE__)->Instance->TAFCR) & (__INTERRUPT__)) != RESET) ? SET : RESET)
 Check whether the specified RTC Tamper interrupt has been enabled or not.
#define __HAL_RTC_TAMPER_GET_FLAG(__HANDLE__, __FLAG__)   (((((__HANDLE__)->Instance->ISR) & (__FLAG__)) != RESET)? SET : RESET)
 Get the selected RTC Tamper's flag status.
#define __HAL_RTC_TAMPER_CLEAR_FLAG(__HANDLE__, __FLAG__)   ((__HANDLE__)->Instance->ISR) = (~((__FLAG__) | RTC_ISR_INIT)|((__HANDLE__)->Instance->ISR & RTC_ISR_INIT))
 Clear the RTC Tamper's pending flags.

Define Documentation

#define __HAL_RTC_TAMPER1_DISABLE (   __HANDLE__)    ((__HANDLE__)->Instance->TAFCR &= ~(RTC_TAFCR_TAMP1E))

Disable the RTC Tamper1 input detection.

Parameters:
__HANDLE__specifies the RTC handle.
Return values:
None

Definition at line 596 of file stm32f4xx_hal_rtc_ex.h.

#define __HAL_RTC_TAMPER1_ENABLE (   __HANDLE__)    ((__HANDLE__)->Instance->TAFCR |= (RTC_TAFCR_TAMP1E))

Enable the RTC Tamper1 input detection.

Parameters:
__HANDLE__specifies the RTC handle.
Return values:
None

Definition at line 589 of file stm32f4xx_hal_rtc_ex.h.

#define __HAL_RTC_TAMPER2_DISABLE (   __HANDLE__)    ((__HANDLE__)->Instance->TAFCR &= ~(RTC_TAFCR_TAMP2E))

Disable the RTC Tamper2 input detection.

Parameters:
__HANDLE__specifies the RTC handle.
Return values:
None

Definition at line 611 of file stm32f4xx_hal_rtc_ex.h.

#define __HAL_RTC_TAMPER2_ENABLE (   __HANDLE__)    ((__HANDLE__)->Instance->TAFCR |= (RTC_TAFCR_TAMP2E))

Enable the RTC Tamper2 input detection.

Parameters:
__HANDLE__specifies the RTC handle.
Return values:
None

Definition at line 604 of file stm32f4xx_hal_rtc_ex.h.

#define __HAL_RTC_TAMPER_CLEAR_FLAG (   __HANDLE__,
  __FLAG__ 
)    ((__HANDLE__)->Instance->ISR) = (~((__FLAG__) | RTC_ISR_INIT)|((__HANDLE__)->Instance->ISR & RTC_ISR_INIT))

Clear the RTC Tamper's pending flags.

Parameters:
__HANDLE__specifies the RTC handle.
__FLAG__specifies the RTC Tamper Flag to clear. This parameter can be:
  • RTC_FLAG_TAMP1F
  • RTC_FLAG_TAMP2F
Return values:
None

Definition at line 655 of file stm32f4xx_hal_rtc_ex.h.

Referenced by HAL_RTCEx_PollForTamper1Event(), HAL_RTCEx_PollForTamper2Event(), HAL_RTCEx_SetTamper_IT(), and HAL_RTCEx_TamperTimeStampIRQHandler().

#define __HAL_RTC_TAMPER_GET_FLAG (   __HANDLE__,
  __FLAG__ 
)    (((((__HANDLE__)->Instance->ISR) & (__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
  • RTC_FLAG_TAMP2F
Return values:
None

Definition at line 644 of file stm32f4xx_hal_rtc_ex.h.

Referenced by HAL_RTCEx_PollForTamper1Event(), and HAL_RTCEx_PollForTamper2Event().

#define __HAL_RTC_TAMPER_GET_IT (   __HANDLE__,
  __INTERRUPT__ 
)    (((((__HANDLE__)->Instance->ISR) & ((__INTERRUPT__)>> 4U)) != RESET)? SET : RESET)

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

Parameters:
__HANDLE__specifies the RTC handle.
__INTERRUPT__specifies the RTC Tamper interrupt to check. This parameter can be:
  • RTC_IT_TAMP1
  • RTC_IT_TAMP2
Return values:
None

Definition at line 623 of file stm32f4xx_hal_rtc_ex.h.

Referenced by HAL_RTCEx_TamperTimeStampIRQHandler().

#define __HAL_RTC_TAMPER_GET_IT_SOURCE (   __HANDLE__,
  __INTERRUPT__ 
)    (((((__HANDLE__)->Instance->TAFCR) & (__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 source to check. This parameter can be:
  • RTC_IT_TAMP: Tamper interrupt
Return values:
None

Definition at line 633 of file stm32f4xx_hal_rtc_ex.h.