Macros | |
| #define | __HAL_RTC_RESET_HANDLE_STATE(__HANDLE__) ((__HANDLE__)->State = HAL_RTC_STATE_RESET) |
| Reset RTC handle state. More... | |
| #define | __HAL_RTC_ALARM_ENABLE(__HANDLE__) ((__HANDLE__)->Instance->CR |= (RTC_CR_ALRME)) |
| Enable the RTC ALARM peripheral. More... | |
| #define | __HAL_RTC_ALARM_DISABLE(__HANDLE__) ((__HANDLE__)->Instance->CR &= ~(RTC_CR_ALRME)) |
| Disable the RTC ALARM peripheral. More... | |
| #define | __HAL_RTC_ALARM_ENABLE_IT(__HANDLE__) ((__HANDLE__)->Instance->CR |= (RTC_CR_ALRMIE)) |
| Enable the RTC Alarm interrupt. More... | |
| #define | __HAL_RTC_ALARM_DISABLE_IT(__HANDLE__) ((__HANDLE__)->Instance->CR &= ~(RTC_CR_ALRMIE)) |
| Disable the RTC Alarm interrupt. More... | |
| #define | __HAL_RTC_ALARM_GET_IT(__HANDLE__) (((((__HANDLE__)->Instance->ISR)& RTC_ISR_ALRMF) != RESET)? SET : RESET) |
| Check whether the specified RTC Alarm interrupt has occurred or not. More... | |
| #define | __HAL_RTC_ALARM_GET_FLAG(__HANDLE__, __FLAG__) (((((__HANDLE__)->Instance->ISR) & (__FLAG__)) != RESET)? SET : RESET) |
| Get the selected RTC Alarm's flag status. More... | |
| #define | __HAL_RTC_ALARM_CLEAR_FLAG(__HANDLE__, __FLAG__) ((__HANDLE__)->Instance->ISR) = (~((__FLAG__) | RTC_ISR_INIT)|((__HANDLE__)->Instance->ISR & RTC_ISR_INIT)) |
| Clear the RTC Alarm's pending flags. More... | |
| #define | __HAL_RTC_ALARM_GET_IT_SOURCE(__HANDLE__, __INTERRUPT__) (((((__HANDLE__)->Instance->CR) & (__INTERRUPT__)) != RESET) ? SET : RESET) |
| Check whether the specified RTC Alarm interrupt has been enabled or not. More... | |
| #define | __HAL_RTC_ALARM_EXTI_ENABLE_IT() (EXTI->IMR |= RTC_EXTI_LINE_ALARM_EVENT) |
| Enable interrupt on the RTC Alarm associated Exti line. More... | |
| #define | __HAL_RTC_ALARM_EXTI_DISABLE_IT() (EXTI->IMR &= ~(RTC_EXTI_LINE_ALARM_EVENT)) |
| Disable interrupt on the RTC Alarm associated Exti line. More... | |
| #define | __HAL_RTC_ALARM_EXTI_ENABLE_EVENT() (EXTI->EMR |= RTC_EXTI_LINE_ALARM_EVENT) |
| Enable event on the RTC Alarm associated Exti line. More... | |
| #define | __HAL_RTC_ALARM_EXTI_DISABLE_EVENT() (EXTI->EMR &= ~(RTC_EXTI_LINE_ALARM_EVENT)) |
| Disable event on the RTC Alarm associated Exti line. More... | |
| #define | __HAL_RTC_ALARM_EXTI_ENABLE_FALLING_EDGE() (EXTI->FTSR |= RTC_EXTI_LINE_ALARM_EVENT) |
| Enable falling edge trigger on the RTC Alarm associated Exti line. More... | |
| #define | __HAL_RTC_ALARM_EXTI_DISABLE_FALLING_EDGE() (EXTI->FTSR &= ~(RTC_EXTI_LINE_ALARM_EVENT)) |
| Disable falling edge trigger on the RTC Alarm associated Exti line. More... | |
| #define | __HAL_RTC_ALARM_EXTI_ENABLE_RISING_EDGE() (EXTI->RTSR |= RTC_EXTI_LINE_ALARM_EVENT) |
| Enable rising edge trigger on the RTC Alarm associated Exti line. More... | |
| #define | __HAL_RTC_ALARM_EXTI_DISABLE_RISING_EDGE() (EXTI->RTSR &= ~(RTC_EXTI_LINE_ALARM_EVENT)) |
| Disable rising edge trigger on the RTC Alarm associated Exti line. More... | |
| #define | __HAL_RTC_ALARM_EXTI_ENABLE_RISING_FALLING_EDGE() |
| Enable rising & falling edge trigger on the RTC Alarm associated Exti line. More... | |
| #define | __HAL_RTC_ALARM_EXTI_DISABLE_RISING_FALLING_EDGE() |
| Disable rising & falling edge trigger on the RTC Alarm associated Exti line. More... | |
| #define | __HAL_RTC_ALARM_EXTI_GET_FLAG() (EXTI->PR & RTC_EXTI_LINE_ALARM_EVENT) |
| Check whether the RTC Alarm associated Exti line interrupt flag is set or not. More... | |
| #define | __HAL_RTC_ALARM_EXTI_CLEAR_FLAG() (EXTI->PR = RTC_EXTI_LINE_ALARM_EVENT) |
| Clear the RTC Alarm associated Exti line flag. More... | |
| #define | __HAL_RTC_ALARM_EXTI_GENERATE_SWIT() (EXTI->SWIER |= RTC_EXTI_LINE_ALARM_EVENT) |
| Generate a Software interrupt on RTC Alarm associated Exti line. More... | |
| #define | __HAL_RTC_WAKEUPTIMER_GET_FLAG(__HANDLE__, __FLAG__) (((((__HANDLE__)->Instance->ISR) & (__FLAG__)) != RESET)? SET : RESET) |
| Get the selected RTC WakeUpTimer's flag status. More... | |
| #define | __HAL_RTC_WAKEUPTIMER_ENABLE(__HANDLE__) ((__HANDLE__)->Instance->CR |= (RTC_CR_WUTE)) |
| Enable the RTC WakeUp Timer peripheral. More... | |
| #define | __HAL_RTC_WAKEUPTIMER_DISABLE(__HANDLE__) ((__HANDLE__)->Instance->CR &= ~(RTC_CR_WUTE)) |
| Disable the RTC Wake-up Timer peripheral. More... | |
| #define | __HAL_RTC_WAKEUPTIMER_ENABLE_IT(__HANDLE__) ((__HANDLE__)->Instance->CR |= (RTC_CR_WUTIE)) |
| Enable the RTC WakeUpTimer interrupt. More... | |
| #define | __HAL_RTC_WAKEUPTIMER_DISABLE_IT(__HANDLE__) ((__HANDLE__)->Instance->CR &= ~(RTC_CR_WUTIE)) |
| Disable the RTC Alarm interrupt. More... | |
| #define | __HAL_RTC_WAKEUPTIMER_GET_IT(__HANDLE__) (((((__HANDLE__)->Instance->ISR)& RTC_ISR_WUTF) != RESET)? SET : RESET) |
| Check whether the specified RTC WakeUpTimer interrupt has occurred or not. More... | |
| #define | __HAL_RTC_WAKEUPTIMER_CLEAR_FLAG(__HANDLE__, __FLAG__) ((__HANDLE__)->Instance->ISR) = (~((__FLAG__) | RTC_ISR_INIT)|((__HANDLE__)->Instance->ISR & RTC_ISR_INIT)) |
| Clear the RTC Wake Up timer's pending flags. More... | |
| #define | HAL_RTC_LXT_ENABLED() (hwp_rtc->CR&RTC_CR_LPCKSEL) |
| #define | HAL_RTC_ENABLE_LXT() hwp_rtc->CR |= RTC_CR_LPCKSEL |
| #define __HAL_RTC_ALARM_CLEAR_FLAG | ( | __HANDLE__, | |
| __FLAG__ | |||
| ) | ((__HANDLE__)->Instance->ISR) = (~((__FLAG__) | RTC_ISR_INIT)|((__HANDLE__)->Instance->ISR & RTC_ISR_INIT)) |
Clear the RTC Alarm's pending flags.
| __HANDLE__ | specifies the RTC handle. |
| __FLAG__ | specifies the RTC Alarm Flag sources to be enabled or disabled. This parameter can be:
|
| None |
| #define __HAL_RTC_ALARM_DISABLE | ( | __HANDLE__ | ) | ((__HANDLE__)->Instance->CR &= ~(RTC_CR_ALRME)) |
Disable the RTC ALARM peripheral.
| __HANDLE__ | specifies the RTC handle. |
| None |
| #define __HAL_RTC_ALARM_DISABLE_IT | ( | __HANDLE__ | ) | ((__HANDLE__)->Instance->CR &= ~(RTC_CR_ALRMIE)) |
Disable the RTC Alarm interrupt.
| __HANDLE__ | specifies the RTC handle. |
| None |
| #define __HAL_RTC_ALARM_ENABLE | ( | __HANDLE__ | ) | ((__HANDLE__)->Instance->CR |= (RTC_CR_ALRME)) |
Enable the RTC ALARM peripheral.
| __HANDLE__ | specifies the RTC handle. |
| None |
| #define __HAL_RTC_ALARM_ENABLE_IT | ( | __HANDLE__ | ) | ((__HANDLE__)->Instance->CR |= (RTC_CR_ALRMIE)) |
Enable the RTC Alarm interrupt.
| __HANDLE__ | specifies the RTC handle. |
| None |
| #define __HAL_RTC_ALARM_EXTI_CLEAR_FLAG | ( | ) | (EXTI->PR = RTC_EXTI_LINE_ALARM_EVENT) |
Clear the RTC Alarm associated Exti line flag.
| None. |
| #define __HAL_RTC_ALARM_EXTI_DISABLE_EVENT | ( | ) | (EXTI->EMR &= ~(RTC_EXTI_LINE_ALARM_EVENT)) |
Disable event on the RTC Alarm associated Exti line.
| None. |
| #define __HAL_RTC_ALARM_EXTI_DISABLE_FALLING_EDGE | ( | ) | (EXTI->FTSR &= ~(RTC_EXTI_LINE_ALARM_EVENT)) |
Disable falling edge trigger on the RTC Alarm associated Exti line.
| None. |
| #define __HAL_RTC_ALARM_EXTI_DISABLE_IT | ( | ) | (EXTI->IMR &= ~(RTC_EXTI_LINE_ALARM_EVENT)) |
Disable interrupt on the RTC Alarm associated Exti line.
| None |
| #define __HAL_RTC_ALARM_EXTI_DISABLE_RISING_EDGE | ( | ) | (EXTI->RTSR &= ~(RTC_EXTI_LINE_ALARM_EVENT)) |
Disable rising edge trigger on the RTC Alarm associated Exti line.
| None. |
| #define __HAL_RTC_ALARM_EXTI_DISABLE_RISING_FALLING_EDGE | ( | ) |
Disable rising & falling edge trigger on the RTC Alarm associated Exti line.
| None. |
| #define __HAL_RTC_ALARM_EXTI_ENABLE_EVENT | ( | ) | (EXTI->EMR |= RTC_EXTI_LINE_ALARM_EVENT) |
Enable event on the RTC Alarm associated Exti line.
| None. |
| #define __HAL_RTC_ALARM_EXTI_ENABLE_FALLING_EDGE | ( | ) | (EXTI->FTSR |= RTC_EXTI_LINE_ALARM_EVENT) |
Enable falling edge trigger on the RTC Alarm associated Exti line.
| None. |
| #define __HAL_RTC_ALARM_EXTI_ENABLE_IT | ( | ) | (EXTI->IMR |= RTC_EXTI_LINE_ALARM_EVENT) |
Enable interrupt on the RTC Alarm associated Exti line.
| None |
| #define __HAL_RTC_ALARM_EXTI_ENABLE_RISING_EDGE | ( | ) | (EXTI->RTSR |= RTC_EXTI_LINE_ALARM_EVENT) |
Enable rising edge trigger on the RTC Alarm associated Exti line.
| None. |
| #define __HAL_RTC_ALARM_EXTI_ENABLE_RISING_FALLING_EDGE | ( | ) |
Enable rising & falling edge trigger on the RTC Alarm associated Exti line.
| None. |
| #define __HAL_RTC_ALARM_EXTI_GENERATE_SWIT | ( | ) | (EXTI->SWIER |= RTC_EXTI_LINE_ALARM_EVENT) |
Generate a Software interrupt on RTC Alarm associated Exti line.
| None. |
| #define __HAL_RTC_ALARM_EXTI_GET_FLAG | ( | ) | (EXTI->PR & RTC_EXTI_LINE_ALARM_EVENT) |
Check whether the RTC Alarm associated Exti line interrupt flag is set or not.
| Line | Status. |
| #define __HAL_RTC_ALARM_GET_FLAG | ( | __HANDLE__, | |
| __FLAG__ | |||
| ) | (((((__HANDLE__)->Instance->ISR) & (__FLAG__)) != RESET)? SET : RESET) |
Get the selected RTC Alarm's flag status.
| __HANDLE__ | specifies the RTC handle. |
| __FLAG__ | specifies the RTC Alarm Flag to check. This parameter can be:
|
| None |
| #define __HAL_RTC_ALARM_GET_IT | ( | __HANDLE__ | ) | (((((__HANDLE__)->Instance->ISR)& RTC_ISR_ALRMF) != RESET)? SET : RESET) |
Check whether the specified RTC Alarm interrupt has occurred or not.
| __HANDLE__ | specifies the RTC handle. |
| None |
| #define __HAL_RTC_ALARM_GET_IT_SOURCE | ( | __HANDLE__, | |
| __INTERRUPT__ | |||
| ) | (((((__HANDLE__)->Instance->CR) & (__INTERRUPT__)) != RESET) ? SET : RESET) |
Check whether the specified RTC Alarm interrupt has been enabled or not.
| __HANDLE__ | specifies the RTC handle. |
| __INTERRUPT__ | specifies the RTC Alarm interrupt sources to check. This parameter can be:
|
| None |
| #define __HAL_RTC_RESET_HANDLE_STATE | ( | __HANDLE__ | ) | ((__HANDLE__)->State = HAL_RTC_STATE_RESET) |
Reset RTC handle state.
| __HANDLE__ | specifies the RTC handle. |
| None |
| #define __HAL_RTC_WAKEUPTIMER_CLEAR_FLAG | ( | __HANDLE__, | |
| __FLAG__ | |||
| ) | ((__HANDLE__)->Instance->ISR) = (~((__FLAG__) | RTC_ISR_INIT)|((__HANDLE__)->Instance->ISR & RTC_ISR_INIT)) |
Clear the RTC Wake Up timer's pending flags.
| __HANDLE__ | specifies the RTC handle. |
| __FLAG__ | specifies the RTC Tamper Flag sources to be enabled or disabled. This parameter can be:
|
| None |
| #define __HAL_RTC_WAKEUPTIMER_DISABLE | ( | __HANDLE__ | ) | ((__HANDLE__)->Instance->CR &= ~(RTC_CR_WUTE)) |
Disable the RTC Wake-up Timer peripheral.
| __HANDLE__ | specifies the RTC handle. |
| None |
| #define __HAL_RTC_WAKEUPTIMER_DISABLE_IT | ( | __HANDLE__ | ) | ((__HANDLE__)->Instance->CR &= ~(RTC_CR_WUTIE)) |
Disable the RTC Alarm interrupt.
| __HANDLE__ | specifies the RTC handle. |
| None |
| #define __HAL_RTC_WAKEUPTIMER_ENABLE | ( | __HANDLE__ | ) | ((__HANDLE__)->Instance->CR |= (RTC_CR_WUTE)) |
Enable the RTC WakeUp Timer peripheral.
| __HANDLE__ | specifies the RTC handle. |
| None |
| #define __HAL_RTC_WAKEUPTIMER_ENABLE_IT | ( | __HANDLE__ | ) | ((__HANDLE__)->Instance->CR |= (RTC_CR_WUTIE)) |
Enable the RTC WakeUpTimer interrupt.
| __HANDLE__ | specifies the RTC handle. |
| None |
| #define __HAL_RTC_WAKEUPTIMER_GET_FLAG | ( | __HANDLE__, | |
| __FLAG__ | |||
| ) | (((((__HANDLE__)->Instance->ISR) & (__FLAG__)) != RESET)? SET : RESET) |
Get the selected RTC WakeUpTimer's flag status.
| __HANDLE__ | specifies the RTC handle. |
| __FLAG__ | specifies the RTC WakeUpTimer Flag to check. This parameter can be:
|
| None |
| #define __HAL_RTC_WAKEUPTIMER_GET_IT | ( | __HANDLE__ | ) | (((((__HANDLE__)->Instance->ISR)& RTC_ISR_WUTF) != RESET)? SET : RESET) |
Check whether the specified RTC WakeUpTimer interrupt has occurred or not.
| __HANDLE__ | specifies the RTC handle. |
| None |