STM32L443xx HAL User Manual
Defines
RTCEx tamper
RTC Timestamp

Defines

#define __HAL_RTC_TAMPER1_ENABLE(__HANDLE__)   ((__HANDLE__)->Instance->TAMPCR |= (RTC_TAMPCR_TAMP1E))
 Enable the RTC Tamper1 input detection.
#define __HAL_RTC_TAMPER1_DISABLE(__HANDLE__)   ((__HANDLE__)->Instance->TAMPCR &= ~(RTC_TAMPCR_TAMP1E))
 Disable the RTC Tamper1 input detection.
#define __HAL_RTC_TAMPER2_ENABLE(__HANDLE__)   ((__HANDLE__)->Instance->TAMPCR |= (RTC_TAMPCR_TAMP2E))
 Enable the RTC Tamper2 input detection.
#define __HAL_RTC_TAMPER2_DISABLE(__HANDLE__)   ((__HANDLE__)->Instance->TAMPCR &= ~(RTC_TAMPCR_TAMP2E))
 Disable the RTC Tamper2 input detection.
#define __HAL_RTC_TAMPER3_ENABLE(__HANDLE__)   ((__HANDLE__)->Instance->TAMPCR |= (RTC_TAMPCR_TAMP3E))
 Enable the RTC Tamper3 input detection.
#define __HAL_RTC_TAMPER3_DISABLE(__HANDLE__)   ((__HANDLE__)->Instance->TAMPCR &= ~(RTC_TAMPCR_TAMP3E))
 Disable the RTC Tamper3 input detection.
#define __HAL_RTC_TAMPER_ENABLE_IT(__HANDLE__, __INTERRUPT__)   ((__HANDLE__)->Instance->TAMPCR |= (__INTERRUPT__))
 Enable the TAMP Tamper interrupt.
#define __HAL_RTC_TAMPER_DISABLE_IT(__HANDLE__, __INTERRUPT__)   ((__HANDLE__)->Instance->TAMPCR &= ~(__INTERRUPT__))
 Disable the TAMP Tamper interrupt.
#define __HAL_RTC_TAMPER_GET_IT(__HANDLE__, __INTERRUPT__)   (((((__HANDLE__)->Instance->ISR) & (__INTERRUPT__)) != 0U) ? 1U : 0U)
 Check whether the specified RTC Tamper interrupt has occurred or not.
#define __HAL_RTC_TAMPER_GET_IT_SOURCE(__HANDLE__, __INTERRUPT__)   (((((__HANDLE__)->Instance->TAMPCR) & (__INTERRUPT__)) != 0U) ? 1U : 0U)
 Check whether the specified RTC Tamper interrupt has been enabled or not.
#define __HAL_RTC_TAMPER_GET_FLAG(__HANDLE__, __FLAG__)   (((((__HANDLE__)->Instance->ISR) & (__FLAG__)) != 0U) ? 1U : 0U)
 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 __HAL_RTC_TAMPER_TIMESTAMP_EXTI_ENABLE_IT()   (EXTI->IMR1 |= RTC_EXTI_LINE_TAMPER_TIMESTAMP_EVENT)
 Enable interrupt on the RTC Tamper and Timestamp associated Exti line.
#define __HAL_RTC_TAMPER_TIMESTAMP_EXTI_DISABLE_IT()   (EXTI->IMR1 &= ~(RTC_EXTI_LINE_TAMPER_TIMESTAMP_EVENT))
 Disable interrupt on the RTC Tamper and Timestamp associated Exti line.
#define __HAL_RTC_TAMPER_TIMESTAMP_EXTI_ENABLE_EVENT()   (EXTI->EMR1 |= RTC_EXTI_LINE_TAMPER_TIMESTAMP_EVENT)
 Enable event on the RTC Tamper and Timestamp associated Exti line.
#define __HAL_RTC_TAMPER_TIMESTAMP_EXTI_DISABLE_EVENT()   (EXTI->EMR1 &= ~(RTC_EXTI_LINE_TAMPER_TIMESTAMP_EVENT))
 Disable event on the RTC Tamper and Timestamp associated Exti line.
#define __HAL_RTC_TAMPER_TIMESTAMP_EXTI_ENABLE_FALLING_EDGE()   (EXTI->FTSR1 |= RTC_EXTI_LINE_TAMPER_TIMESTAMP_EVENT)
 Enable falling edge trigger on the RTC Tamper and Timestamp associated Exti line.
#define __HAL_RTC_TAMPER_TIMESTAMP_EXTI_DISABLE_FALLING_EDGE()   (EXTI->FTSR1 &= ~(RTC_EXTI_LINE_TAMPER_TIMESTAMP_EVENT))
 Disable falling edge trigger on the RTC Tamper and Timestamp associated Exti line.
#define __HAL_RTC_TAMPER_TIMESTAMP_EXTI_ENABLE_RISING_EDGE()   (EXTI->RTSR1 |= RTC_EXTI_LINE_TAMPER_TIMESTAMP_EVENT)
 Enable rising edge trigger on the RTC Tamper and Timestamp associated Exti line.
#define __HAL_RTC_TAMPER_TIMESTAMP_EXTI_DISABLE_RISING_EDGE()   (EXTI->RTSR1 &= ~(RTC_EXTI_LINE_TAMPER_TIMESTAMP_EVENT))
 Disable rising edge trigger on the RTC Tamper and Timestamp associated Exti line.
#define __HAL_RTC_TAMPER_TIMESTAMP_EXTI_ENABLE_RISING_FALLING_EDGE()
 Enable rising & falling edge trigger on the RTC Tamper and Timestamp associated Exti line.
#define __HAL_RTC_TAMPER_TIMESTAMP_EXTI_DISABLE_RISING_FALLING_EDGE()
 Disable rising & falling edge trigger on the RTC Tamper and Timestamp associated Exti line.
#define __HAL_RTC_TAMPER_TIMESTAMP_EXTI_GET_FLAG()   (EXTI->PR1 & RTC_EXTI_LINE_TAMPER_TIMESTAMP_EVENT)
 Check whether the RTC Tamper and Timestamp associated Exti line interrupt flag is set or not.
#define __HAL_RTC_TAMPER_TIMESTAMP_EXTI_CLEAR_FLAG()   (EXTI->PR1 = RTC_EXTI_LINE_TAMPER_TIMESTAMP_EVENT)
 Clear the RTC Tamper and Timestamp associated Exti line flag.
#define __HAL_RTC_TAMPER_TIMESTAMP_EXTI_GENERATE_SWIT()   (EXTI->SWIER1 |= RTC_EXTI_LINE_TAMPER_TIMESTAMP_EVENT)
 Generate a Software interrupt on the RTC Tamper and Timestamp associated Exti line.

Define Documentation

#define __HAL_RTC_TAMPER1_DISABLE (   __HANDLE__)    ((__HANDLE__)->Instance->TAMPCR &= ~(RTC_TAMPCR_TAMP1E))

Disable the RTC Tamper1 input detection.

Parameters:
__HANDLE__specifies the RTC handle.
Return values:
None

Definition at line 1123 of file stm32l4xx_hal_rtc_ex.h.

#define __HAL_RTC_TAMPER1_ENABLE (   __HANDLE__)    ((__HANDLE__)->Instance->TAMPCR |= (RTC_TAMPCR_TAMP1E))

Enable the RTC Tamper1 input detection.

Parameters:
__HANDLE__specifies the RTC handle.
Return values:
None

Definition at line 1112 of file stm32l4xx_hal_rtc_ex.h.

#define __HAL_RTC_TAMPER2_DISABLE (   __HANDLE__)    ((__HANDLE__)->Instance->TAMPCR &= ~(RTC_TAMPCR_TAMP2E))

Disable the RTC Tamper2 input detection.

Parameters:
__HANDLE__specifies the RTC handle.
Return values:
None

Definition at line 1146 of file stm32l4xx_hal_rtc_ex.h.

#define __HAL_RTC_TAMPER2_ENABLE (   __HANDLE__)    ((__HANDLE__)->Instance->TAMPCR |= (RTC_TAMPCR_TAMP2E))

Enable the RTC Tamper2 input detection.

Parameters:
__HANDLE__specifies the RTC handle.
Return values:
None

Definition at line 1135 of file stm32l4xx_hal_rtc_ex.h.

#define __HAL_RTC_TAMPER3_DISABLE (   __HANDLE__)    ((__HANDLE__)->Instance->TAMPCR &= ~(RTC_TAMPCR_TAMP3E))

Disable the RTC Tamper3 input detection.

Parameters:
__HANDLE__specifies the RTC handle.
Return values:
None

Definition at line 1162 of file stm32l4xx_hal_rtc_ex.h.

#define __HAL_RTC_TAMPER3_ENABLE (   __HANDLE__)    ((__HANDLE__)->Instance->TAMPCR |= (RTC_TAMPCR_TAMP3E))

Enable the RTC Tamper3 input detection.

Parameters:
__HANDLE__specifies the RTC handle.
Return values:
None

Definition at line 1155 of file stm32l4xx_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: Tamper1 flag
  • RTC_FLAG_TAMP2F: Tamper2 flag
  • RTC_FLAG_TAMP3F: Tamper3 flag
Return values:
None

Definition at line 1262 of file stm32l4xx_hal_rtc_ex.h.

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

#define __HAL_RTC_TAMPER_DISABLE_IT (   __HANDLE__,
  __INTERRUPT__ 
)    ((__HANDLE__)->Instance->TAMPCR &= ~(__INTERRUPT__))

Disable the TAMP 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_TAMPALL: All tampers interrupts
  • RTC_IT_TAMP1: Tamper1 interrupt
  • RTC_IT_TAMP2: Tamper2 interrupt
  • RTC_IT_TAMP3: Tamper3 interrupt
Return values:
None

Definition at line 1196 of file stm32l4xx_hal_rtc_ex.h.

#define __HAL_RTC_TAMPER_ENABLE_IT (   __HANDLE__,
  __INTERRUPT__ 
)    ((__HANDLE__)->Instance->TAMPCR |= (__INTERRUPT__))

Enable the TAMP 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_TAMPALL: All tampers interrupts
  • RTC_IT_TAMP1: Tamper1 interrupt
  • RTC_IT_TAMP2: Tamper2 interrupt
  • RTC_IT_TAMP3: Tamper3 interrupt
Return values:
None

Definition at line 1180 of file stm32l4xx_hal_rtc_ex.h.

#define __HAL_RTC_TAMPER_GET_FLAG (   __HANDLE__,
  __FLAG__ 
)    (((((__HANDLE__)->Instance->ISR) & (__FLAG__)) != 0U) ? 1U : 0U)

Get the selected RTC Tamper's flag status.

Parameters:
__HANDLE__specifies the RTC handle.
__FLAG__specifies the RTC Tamper Flag is pending or not. This parameter can be:
  • RTC_FLAG_TAMP1F: Tamper1 flag
  • RTC_FLAG_TAMP2F: Tamper2 flag
  • RTC_FLAG_TAMP3F: Tamper3 flag
Return values:
None

Definition at line 1247 of file stm32l4xx_hal_rtc_ex.h.

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

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

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_TAMPALL: All tampers interrupts
  • RTC_IT_TAMP1: Tamper1 interrupt
  • RTC_IT_TAMP2: Tamper2 interrupt
  • RTC_IT_TAMP3: Tamper3 interrupt
Return values:
None

Definition at line 1215 of file stm32l4xx_hal_rtc_ex.h.

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

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_TAMPALL: All tampers interrupts
  • RTC_IT_TAMP1: Tamper1 interrupt
  • RTC_IT_TAMP2: Tamper2 interrupt
  • RTC_IT_TAMP3: Tamper3 interrupt
Return values:
None

Definition at line 1231 of file stm32l4xx_hal_rtc_ex.h.

Referenced by HAL_RTCEx_TamperTimeStampIRQHandler().

Clear the RTC Tamper and Timestamp associated Exti line flag.

Return values:
None

Definition at line 1341 of file stm32l4xx_hal_rtc_ex.h.

Referenced by HAL_RTCEx_TamperTimeStampIRQHandler().

Disable event on the RTC Tamper and Timestamp associated Exti line.

Return values:
None

Definition at line 1287 of file stm32l4xx_hal_rtc_ex.h.

Disable falling edge trigger on the RTC Tamper and Timestamp associated Exti line.

Return values:
None

Definition at line 1299 of file stm32l4xx_hal_rtc_ex.h.

Disable interrupt on the RTC Tamper and Timestamp associated Exti line.

Return values:
None

Definition at line 1275 of file stm32l4xx_hal_rtc_ex.h.

Disable rising edge trigger on the RTC Tamper and Timestamp associated Exti line.

Return values:
None

Definition at line 1311 of file stm32l4xx_hal_rtc_ex.h.

Value:
do { \
                                                                        __HAL_RTC_TAMPER_TIMESTAMP_EXTI_DISABLE_RISING_EDGE();  \
                                                                        __HAL_RTC_TAMPER_TIMESTAMP_EXTI_DISABLE_FALLING_EDGE(); \
                                                                       } while(0)

Disable rising & falling edge trigger on the RTC Tamper and Timestamp associated Exti line.

Return values:
None

Definition at line 1326 of file stm32l4xx_hal_rtc_ex.h.

Enable event on the RTC Tamper and Timestamp associated Exti line.

Return values:
None

Definition at line 1281 of file stm32l4xx_hal_rtc_ex.h.

Enable falling edge trigger on the RTC Tamper and Timestamp associated Exti line.

Return values:
None

Definition at line 1293 of file stm32l4xx_hal_rtc_ex.h.

Enable interrupt on the RTC Tamper and Timestamp associated Exti line.

Return values:
None

Definition at line 1269 of file stm32l4xx_hal_rtc_ex.h.

Referenced by HAL_RTCEx_SetTamper_IT(), and HAL_RTCEx_SetTimeStamp_IT().

Enable rising edge trigger on the RTC Tamper and Timestamp associated Exti line.

Return values:
None

Definition at line 1305 of file stm32l4xx_hal_rtc_ex.h.

Referenced by HAL_RTCEx_SetTamper_IT(), and HAL_RTCEx_SetTimeStamp_IT().

Value:
do { \
                                                                        __HAL_RTC_TAMPER_TIMESTAMP_EXTI_ENABLE_RISING_EDGE();  \
                                                                        __HAL_RTC_TAMPER_TIMESTAMP_EXTI_ENABLE_FALLING_EDGE(); \
                                                                      } while(0)

Enable rising & falling edge trigger on the RTC Tamper and Timestamp associated Exti line.

Return values:
None

Definition at line 1317 of file stm32l4xx_hal_rtc_ex.h.

Generate a Software interrupt on the RTC Tamper and Timestamp associated Exti line.

Return values:
None

Definition at line 1347 of file stm32l4xx_hal_rtc_ex.h.

Check whether the RTC Tamper and Timestamp associated Exti line interrupt flag is set or not.

Return values:
LineStatus.

Definition at line 1335 of file stm32l4xx_hal_rtc_ex.h.