STM32L443xx HAL User Manual
|
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 __HAL_RTC_TAMPER1_DISABLE | ( | __HANDLE__ | ) | ((__HANDLE__)->Instance->TAMPCR &= ~(RTC_TAMPCR_TAMP1E)) |
Disable the RTC Tamper1 input detection.
__HANDLE__ | specifies the RTC handle. |
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.
__HANDLE__ | specifies the RTC handle. |
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.
__HANDLE__ | specifies the RTC handle. |
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.
__HANDLE__ | specifies the RTC handle. |
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.
__HANDLE__ | specifies the RTC handle. |
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.
__HANDLE__ | specifies the RTC handle. |
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.
__HANDLE__ | specifies the RTC handle. |
__FLAG__ | specifies the RTC Tamper Flag to clear. This parameter can be:
|
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.
__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:
|
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.
__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:
|
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.
__HANDLE__ | specifies the RTC handle. |
__FLAG__ | specifies the RTC Tamper Flag is pending or not. This parameter can be:
|
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.
__HANDLE__ | specifies the RTC handle. |
__INTERRUPT__ | specifies the RTC Tamper interrupt to check. This parameter can be:
|
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.
__HANDLE__ | specifies the RTC handle. |
__INTERRUPT__ | specifies the RTC Tamper interrupt source to check. This parameter can be:
|
None |
Definition at line 1231 of file stm32l4xx_hal_rtc_ex.h.
Referenced by HAL_RTCEx_TamperTimeStampIRQHandler().
#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.
None |
Definition at line 1341 of file stm32l4xx_hal_rtc_ex.h.
Referenced by HAL_RTCEx_TamperTimeStampIRQHandler().
#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.
None |
Definition at line 1287 of file stm32l4xx_hal_rtc_ex.h.
#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.
None |
Definition at line 1299 of file stm32l4xx_hal_rtc_ex.h.
#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.
None |
Definition at line 1275 of file stm32l4xx_hal_rtc_ex.h.
#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.
None |
Definition at line 1311 of file stm32l4xx_hal_rtc_ex.h.
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.
None |
Definition at line 1326 of file stm32l4xx_hal_rtc_ex.h.
#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.
None |
Definition at line 1281 of file stm32l4xx_hal_rtc_ex.h.
#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.
None |
Definition at line 1293 of file stm32l4xx_hal_rtc_ex.h.
#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.
None |
Definition at line 1269 of file stm32l4xx_hal_rtc_ex.h.
Referenced by HAL_RTCEx_SetTamper_IT(), and HAL_RTCEx_SetTimeStamp_IT().
#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.
None |
Definition at line 1305 of file stm32l4xx_hal_rtc_ex.h.
Referenced by HAL_RTCEx_SetTamper_IT(), and HAL_RTCEx_SetTimeStamp_IT().
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.
None |
Definition at line 1317 of file stm32l4xx_hal_rtc_ex.h.
#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.
None |
Definition at line 1347 of file stm32l4xx_hal_rtc_ex.h.
#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.
Line | Status. |
Definition at line 1335 of file stm32l4xx_hal_rtc_ex.h.