Header file of RTC HAL Extension module. More...
#include "stm32f4xx_hal_def.h"
Go to the source code of this file.
Classes | |
struct | RTC_TamperTypeDef |
RTC Tamper structure definition More... | |
Macros | |
#define | __HAL_RTC_CALIBRATION_OUTPUT_DISABLE(__HANDLE__) ((__HANDLE__)->Instance->CR &= ~(RTC_CR_COE)) |
Disable the calibration output. More... | |
#define | __HAL_RTC_CALIBRATION_OUTPUT_ENABLE(__HANDLE__) ((__HANDLE__)->Instance->CR |= (RTC_CR_COE)) |
Enable the RTC calibration output. More... | |
#define | __HAL_RTC_CLOCKREF_DETECTION_DISABLE(__HANDLE__) ((__HANDLE__)->Instance->CR &= ~(RTC_CR_REFCKON)) |
Disable the clock reference detection. More... | |
#define | __HAL_RTC_CLOCKREF_DETECTION_ENABLE(__HANDLE__) ((__HANDLE__)->Instance->CR |= (RTC_CR_REFCKON)) |
Enable the clock reference detection. More... | |
#define | __HAL_RTC_COARSE_CALIB_DISABLE(__HANDLE__) ((__HANDLE__)->Instance->CR &= ~(RTC_CR_DCE)) |
Disable the Coarse calibration process. More... | |
#define | __HAL_RTC_COARSE_CALIB_ENABLE(__HANDLE__) ((__HANDLE__)->Instance->CR |= (RTC_CR_DCE)) |
Enable the Coarse calibration process. More... | |
#define | __HAL_RTC_SHIFT_GET_FLAG(__HANDLE__, __FLAG__) (((((__HANDLE__)->Instance->ISR) & (__FLAG__)) != RESET)? SET : RESET) |
Get the selected RTC shift operation's flag status. More... | |
#define | __HAL_RTC_TAMPER1_DISABLE(__HANDLE__) ((__HANDLE__)->Instance->TAFCR &= ~(RTC_TAFCR_TAMP1E)) |
Disable the RTC Tamper1 input detection. More... | |
#define | __HAL_RTC_TAMPER1_ENABLE(__HANDLE__) ((__HANDLE__)->Instance->TAFCR |= (RTC_TAFCR_TAMP1E)) |
Enable the RTC Tamper1 input detection. More... | |
#define | __HAL_RTC_TAMPER2_DISABLE(__HANDLE__) ((__HANDLE__)->Instance->TAFCR &= ~(RTC_TAFCR_TAMP2E)) |
Disable the RTC Tamper2 input detection. More... | |
#define | __HAL_RTC_TAMPER2_ENABLE(__HANDLE__) ((__HANDLE__)->Instance->TAFCR |= (RTC_TAFCR_TAMP2E)) |
Enable the RTC Tamper2 input detection. More... | |
#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. More... | |
#define | __HAL_RTC_TAMPER_GET_FLAG(__HANDLE__, __FLAG__) (((((__HANDLE__)->Instance->ISR) & (__FLAG__)) != RESET)? SET : RESET) |
Get the selected RTC Tamper's flag status. More... | |
#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. More... | |
#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. More... | |
#define | __HAL_RTC_TAMPER_TIMESTAMP_EXTI_CLEAR_FLAG() (EXTI->PR = RTC_EXTI_LINE_TAMPER_TIMESTAMP_EVENT) |
Clear the RTC Tamper and Timestamp associated Exti line flag. More... | |
#define | __HAL_RTC_TAMPER_TIMESTAMP_EXTI_DISABLE_EVENT() (EXTI->EMR &= ~(RTC_EXTI_LINE_TAMPER_TIMESTAMP_EVENT)) |
Disable event on the RTC Tamper and Timestamp associated Exti line. More... | |
#define | __HAL_RTC_TAMPER_TIMESTAMP_EXTI_DISABLE_FALLING_EDGE() (EXTI->FTSR &= ~(RTC_EXTI_LINE_TAMPER_TIMESTAMP_EVENT)) |
Disable falling edge trigger on the RTC Tamper and Timestamp associated Exti line. More... | |
#define | __HAL_RTC_TAMPER_TIMESTAMP_EXTI_DISABLE_IT() (EXTI->IMR &= ~(RTC_EXTI_LINE_TAMPER_TIMESTAMP_EVENT)) |
Disable interrupt on the RTC Tamper and Timestamp associated Exti line. More... | |
#define | __HAL_RTC_TAMPER_TIMESTAMP_EXTI_DISABLE_RISING_EDGE() (EXTI->RTSR &= ~(RTC_EXTI_LINE_TAMPER_TIMESTAMP_EVENT)) |
Disable rising edge trigger on the RTC Tamper and Timestamp associated Exti line. More... | |
#define | __HAL_RTC_TAMPER_TIMESTAMP_EXTI_DISABLE_RISING_FALLING_EDGE() |
Disable rising & falling edge trigger on the RTC Tamper and Timestamp associated Exti line. This parameter can be: More... | |
#define | __HAL_RTC_TAMPER_TIMESTAMP_EXTI_ENABLE_EVENT() (EXTI->EMR |= RTC_EXTI_LINE_TAMPER_TIMESTAMP_EVENT) |
Enable event on the RTC Tamper and Timestamp associated Exti line. More... | |
#define | __HAL_RTC_TAMPER_TIMESTAMP_EXTI_ENABLE_FALLING_EDGE() (EXTI->FTSR |= RTC_EXTI_LINE_TAMPER_TIMESTAMP_EVENT) |
Enable falling edge trigger on the RTC Tamper and Timestamp associated Exti line. More... | |
#define | __HAL_RTC_TAMPER_TIMESTAMP_EXTI_ENABLE_IT() (EXTI->IMR |= RTC_EXTI_LINE_TAMPER_TIMESTAMP_EVENT) |
Enable interrupt on the RTC Tamper and Timestamp associated Exti line. More... | |
#define | __HAL_RTC_TAMPER_TIMESTAMP_EXTI_ENABLE_RISING_EDGE() (EXTI->RTSR |= RTC_EXTI_LINE_TAMPER_TIMESTAMP_EVENT) |
Enable rising edge trigger on the RTC Tamper and Timestamp associated Exti line. More... | |
#define | __HAL_RTC_TAMPER_TIMESTAMP_EXTI_ENABLE_RISING_FALLING_EDGE() |
Enable rising & falling edge trigger on the RTC Tamper and Timestamp associated Exti line. More... | |
#define | __HAL_RTC_TAMPER_TIMESTAMP_EXTI_GENERATE_SWIT() (EXTI->SWIER |= RTC_EXTI_LINE_TAMPER_TIMESTAMP_EVENT) |
Generate a Software interrupt on the RTC Tamper and Timestamp associated Exti line. More... | |
#define | __HAL_RTC_TAMPER_TIMESTAMP_EXTI_GET_FLAG() (EXTI->PR & RTC_EXTI_LINE_TAMPER_TIMESTAMP_EVENT) |
Check whether the RTC Tamper and Timestamp associated Exti line interrupt flag is set or not. More... | |
#define | __HAL_RTC_TIMESTAMP_CLEAR_FLAG(__HANDLE__, __FLAG__) ((__HANDLE__)->Instance->ISR) = (~((__FLAG__) | RTC_ISR_INIT)|((__HANDLE__)->Instance->ISR & RTC_ISR_INIT)) |
Clear the RTC Time Stamp's pending flags. More... | |
#define | __HAL_RTC_TIMESTAMP_DISABLE(__HANDLE__) ((__HANDLE__)->Instance->CR &= ~(RTC_CR_TSE)) |
Disable the RTC TimeStamp peripheral. More... | |
#define | __HAL_RTC_TIMESTAMP_DISABLE_IT(__HANDLE__, __INTERRUPT__) ((__HANDLE__)->Instance->CR &= ~(__INTERRUPT__)) |
Disable the RTC TimeStamp interrupt. More... | |
#define | __HAL_RTC_TIMESTAMP_ENABLE(__HANDLE__) ((__HANDLE__)->Instance->CR |= (RTC_CR_TSE)) |
Enable the RTC TimeStamp peripheral. More... | |
#define | __HAL_RTC_TIMESTAMP_ENABLE_IT(__HANDLE__, __INTERRUPT__) ((__HANDLE__)->Instance->CR |= (__INTERRUPT__)) |
Enable the RTC TimeStamp interrupt. More... | |
#define | __HAL_RTC_TIMESTAMP_GET_FLAG(__HANDLE__, __FLAG__) (((((__HANDLE__)->Instance->ISR) & (__FLAG__)) != RESET)? SET : RESET) |
Get the selected RTC TimeStamp's flag status. More... | |
#define | __HAL_RTC_TIMESTAMP_GET_IT(__HANDLE__, __INTERRUPT__) (((((__HANDLE__)->Instance->ISR) & ((__INTERRUPT__)>> 4U)) != RESET)? SET : RESET) |
Check whether the specified RTC TimeStamp interrupt has occurred or not. More... | |
#define | __HAL_RTC_TIMESTAMP_GET_IT_SOURCE(__HANDLE__, __INTERRUPT__) (((((__HANDLE__)->Instance->CR) & (__INTERRUPT__)) != RESET) ? SET : RESET) |
Check whether the specified RTC Time Stamp interrupt has been enabled 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_WAKEUPTIMER_DISABLE(__HANDLE__) ((__HANDLE__)->Instance->CR &= ~(RTC_CR_WUTE)) |
Disable the RTC Wake-up Timer peripheral. More... | |
#define | __HAL_RTC_WAKEUPTIMER_DISABLE_IT(__HANDLE__, __INTERRUPT__) ((__HANDLE__)->Instance->CR &= ~(__INTERRUPT__)) |
Disable the RTC WakeUpTimer interrupt. More... | |
#define | __HAL_RTC_WAKEUPTIMER_ENABLE(__HANDLE__) ((__HANDLE__)->Instance->CR |= (RTC_CR_WUTE)) |
Enable the RTC WakeUp Timer peripheral. More... | |
#define | __HAL_RTC_WAKEUPTIMER_ENABLE_IT(__HANDLE__, __INTERRUPT__) ((__HANDLE__)->Instance->CR |= (__INTERRUPT__)) |
Enable the RTC WakeUpTimer interrupt. More... | |
#define | __HAL_RTC_WAKEUPTIMER_EXTI_CLEAR_FLAG() (EXTI->PR = RTC_EXTI_LINE_WAKEUPTIMER_EVENT) |
Clear the RTC Wake-up Timer associated Exti line flag. More... | |
#define | __HAL_RTC_WAKEUPTIMER_EXTI_DISABLE_EVENT() (EXTI->EMR &= ~(RTC_EXTI_LINE_WAKEUPTIMER_EVENT)) |
Disable event on the RTC Wake-up Timer associated Exti line. More... | |
#define | __HAL_RTC_WAKEUPTIMER_EXTI_DISABLE_FALLING_EDGE() (EXTI->FTSR &= ~(RTC_EXTI_LINE_WAKEUPTIMER_EVENT)) |
Disable falling edge trigger on the RTC Wake-up Timer associated Exti line. More... | |
#define | __HAL_RTC_WAKEUPTIMER_EXTI_DISABLE_IT() (EXTI->IMR &= ~(RTC_EXTI_LINE_WAKEUPTIMER_EVENT)) |
Disable interrupt on the RTC Wake-up Timer associated Exti line. More... | |
#define | __HAL_RTC_WAKEUPTIMER_EXTI_DISABLE_RISING_EDGE() (EXTI->RTSR &= ~(RTC_EXTI_LINE_WAKEUPTIMER_EVENT)) |
Disable rising edge trigger on the RTC Wake-up Timer associated Exti line. More... | |
#define | __HAL_RTC_WAKEUPTIMER_EXTI_DISABLE_RISING_FALLING_EDGE() |
Disable rising & falling edge trigger on the RTC Wake-up Timer associated Exti line. This parameter can be: More... | |
#define | __HAL_RTC_WAKEUPTIMER_EXTI_ENABLE_EVENT() (EXTI->EMR |= RTC_EXTI_LINE_WAKEUPTIMER_EVENT) |
Enable event on the RTC Wake-up Timer associated Exti line. More... | |
#define | __HAL_RTC_WAKEUPTIMER_EXTI_ENABLE_FALLING_EDGE() (EXTI->FTSR |= RTC_EXTI_LINE_WAKEUPTIMER_EVENT) |
Enable falling edge trigger on the RTC Wake-up Timer associated Exti line. More... | |
#define | __HAL_RTC_WAKEUPTIMER_EXTI_ENABLE_IT() (EXTI->IMR |= RTC_EXTI_LINE_WAKEUPTIMER_EVENT) |
Enable interrupt on the RTC Wake-up Timer associated Exti line. More... | |
#define | __HAL_RTC_WAKEUPTIMER_EXTI_ENABLE_RISING_EDGE() (EXTI->RTSR |= RTC_EXTI_LINE_WAKEUPTIMER_EVENT) |
Enable rising edge trigger on the RTC Wake-up Timer associated Exti line. More... | |
#define | __HAL_RTC_WAKEUPTIMER_EXTI_ENABLE_RISING_FALLING_EDGE() |
Enable rising & falling edge trigger on the RTC Wake-up Timer associated Exti line. More... | |
#define | __HAL_RTC_WAKEUPTIMER_EXTI_GENERATE_SWIT() (EXTI->SWIER |= RTC_EXTI_LINE_WAKEUPTIMER_EVENT) |
Generate a Software interrupt on the RTC Wake-up Timer associated Exti line. More... | |
#define | __HAL_RTC_WAKEUPTIMER_EXTI_GET_FLAG() (EXTI->PR & RTC_EXTI_LINE_WAKEUPTIMER_EVENT) |
Check whether the RTC Wake-up Timer associated Exti line interrupt flag is set or not. 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_GET_IT(__HANDLE__, __INTERRUPT__) (((((__HANDLE__)->Instance->ISR) & ((__INTERRUPT__)>> 4U)) != RESET)? SET : RESET) |
Check whether the specified RTC WakeUpTimer interrupt has occurred or not. More... | |
#define | __HAL_RTC_WAKEUPTIMER_GET_IT_SOURCE(__HANDLE__, __INTERRUPT__) (((((__HANDLE__)->Instance->CR) & (__INTERRUPT__)) != RESET) ? SET : RESET) |
Check whether the specified RTC Wake Up timer interrupt has been enabled or not. More... | |
#define | IS_RTC_BKP(BKP) |
#define | IS_RTC_CALIB_OUTPUT(OUTPUT) |
#define | IS_RTC_CALIB_SIGN(SIGN) |
#define | IS_RTC_CALIB_VALUE(VALUE) ((VALUE) < 0x20U) |
#define | IS_RTC_SHIFT_ADD1S(SEL) |
#define | IS_RTC_SHIFT_SUBFS(FS) ((FS) <= 0x00007FFFU) |
#define | IS_RTC_SMOOTH_CALIB_MINUS(VALUE) ((VALUE) <= 0x000001FFU) |
#define | IS_RTC_SMOOTH_CALIB_PERIOD(PERIOD) |
#define | IS_RTC_SMOOTH_CALIB_PLUS(PLUS) |
#define | IS_RTC_TAMPER(TAMPER) ((((TAMPER) & ((uint32_t)!(RTC_TAFCR_TAMP1E | RTC_TAFCR_TAMP2E))) == 0x00U) && ((TAMPER) != (uint32_t)RESET)) |
#define | IS_RTC_TAMPER_FILTER(FILTER) |
#define | IS_RTC_TAMPER_PIN(PIN) |
#define | IS_RTC_TAMPER_PRECHARGE_DURATION(DURATION) |
#define | IS_RTC_TAMPER_PULLUP_STATE(STATE) |
#define | IS_RTC_TAMPER_SAMPLING_FREQ(FREQ) |
#define | IS_RTC_TAMPER_TIMESTAMPONTAMPER_DETECTION(DETECTION) |
#define | IS_RTC_TAMPER_TRIGGER(TRIGGER) |
#define | IS_RTC_TIMESTAMP_PIN(PIN) |
#define | IS_RTC_WAKEUP_CLOCK(CLOCK) |
#define | IS_RTC_WAKEUP_COUNTER(COUNTER) ((COUNTER) <= 0xFFFFU) |
#define | IS_TIMESTAMP_EDGE(EDGE) |
#define | RTC_BKP_DR0 0x00000000U |
#define | RTC_BKP_DR1 0x00000001U |
#define | RTC_BKP_DR10 0x0000000AU |
#define | RTC_BKP_DR11 0x0000000BU |
#define | RTC_BKP_DR12 0x0000000CU |
#define | RTC_BKP_DR13 0x0000000DU |
#define | RTC_BKP_DR14 0x0000000EU |
#define | RTC_BKP_DR15 0x0000000FU |
#define | RTC_BKP_DR16 0x00000010U |
#define | RTC_BKP_DR17 0x00000011U |
#define | RTC_BKP_DR18 0x00000012U |
#define | RTC_BKP_DR19 0x00000013U |
#define | RTC_BKP_DR2 0x00000002U |
#define | RTC_BKP_DR3 0x00000003U |
#define | RTC_BKP_DR4 0x00000004U |
#define | RTC_BKP_DR5 0x00000005U |
#define | RTC_BKP_DR6 0x00000006U |
#define | RTC_BKP_DR7 0x00000007U |
#define | RTC_BKP_DR8 0x00000008U |
#define | RTC_BKP_DR9 0x00000009U |
#define | RTC_CALIBOUTPUT_1HZ 0x00080000U |
#define | RTC_CALIBOUTPUT_512HZ 0x00000000U |
#define | RTC_CALIBSIGN_NEGATIVE 0x00000080U |
#define | RTC_CALIBSIGN_POSITIVE 0x00000000U |
#define | RTC_EXTI_LINE_TAMPER_TIMESTAMP_EVENT ((uint32_t)EXTI_IMR_MR21) |
#define | RTC_EXTI_LINE_WAKEUPTIMER_EVENT ((uint32_t)EXTI_IMR_MR22) |
#define | RTC_SHIFTADD1S_RESET 0x00000000U |
#define | RTC_SHIFTADD1S_SET 0x80000000U |
#define | RTC_SMOOTHCALIB_PERIOD_16SEC 0x00002000U |
#define | RTC_SMOOTHCALIB_PERIOD_32SEC 0x00000000U |
#define | RTC_SMOOTHCALIB_PERIOD_8SEC 0x00004000U |
#define | RTC_SMOOTHCALIB_PLUSPULSES_RESET 0x00000000U |
#define | RTC_SMOOTHCALIB_PLUSPULSES_SET 0x00008000U |
#define | RTC_TAMPER_1 RTC_TAFCR_TAMP1E |
#define | RTC_TAMPER_2 RTC_TAFCR_TAMP2E |
#define | RTC_TAMPER_PULLUP_DISABLE ((uint32_t)RTC_TAFCR_TAMPPUDIS) |
#define | RTC_TAMPER_PULLUP_ENABLE 0x00000000U |
#define | RTC_TAMPERFILTER_2SAMPLE 0x00000800U |
#define | RTC_TAMPERFILTER_4SAMPLE 0x00001000U |
#define | RTC_TAMPERFILTER_8SAMPLE 0x00001800U |
#define | RTC_TAMPERFILTER_DISABLE 0x00000000U |
#define | RTC_TAMPERPIN_DEFAULT 0x00000000U |
#define | RTC_TAMPERPIN_POS1 0x00010000U |
#define | RTC_TAMPERPRECHARGEDURATION_1RTCCLK 0x00000000U |
#define | RTC_TAMPERPRECHARGEDURATION_2RTCCLK 0x00002000U |
#define | RTC_TAMPERPRECHARGEDURATION_4RTCCLK 0x00004000U |
#define | RTC_TAMPERPRECHARGEDURATION_8RTCCLK 0x00006000U |
#define | RTC_TAMPERSAMPLINGFREQ_RTCCLK_DIV1024 0x00000500U |
#define | RTC_TAMPERSAMPLINGFREQ_RTCCLK_DIV16384 0x00000100U |
#define | RTC_TAMPERSAMPLINGFREQ_RTCCLK_DIV2048 0x00000400U |
#define | RTC_TAMPERSAMPLINGFREQ_RTCCLK_DIV256 0x00000700U |
#define | RTC_TAMPERSAMPLINGFREQ_RTCCLK_DIV32768 0x00000000U |
#define | RTC_TAMPERSAMPLINGFREQ_RTCCLK_DIV4096 0x00000300U |
#define | RTC_TAMPERSAMPLINGFREQ_RTCCLK_DIV512 0x00000600U |
#define | RTC_TAMPERSAMPLINGFREQ_RTCCLK_DIV8192 0x00000200U |
#define | RTC_TAMPERTRIGGER_FALLINGEDGE 0x00000002U |
#define | RTC_TAMPERTRIGGER_HIGHLEVEL RTC_TAMPERTRIGGER_FALLINGEDGE |
#define | RTC_TAMPERTRIGGER_LOWLEVEL RTC_TAMPERTRIGGER_RISINGEDGE |
#define | RTC_TAMPERTRIGGER_RISINGEDGE 0x00000000U |
#define | RTC_TIMESTAMPEDGE_FALLING 0x00000008U |
#define | RTC_TIMESTAMPEDGE_RISING 0x00000000U |
#define | RTC_TIMESTAMPONTAMPERDETECTION_DISABLE 0x00000000U |
#define | RTC_TIMESTAMPONTAMPERDETECTION_ENABLE ((uint32_t)RTC_TAFCR_TAMPTS) |
#define | RTC_TIMESTAMPPIN_DEFAULT 0x00000000U |
#define | RTC_TIMESTAMPPIN_POS1 0x00020000U |
#define | RTC_WAKEUPCLOCK_CK_SPRE_16BITS 0x00000004U |
#define | RTC_WAKEUPCLOCK_CK_SPRE_17BITS 0x00000006U |
#define | RTC_WAKEUPCLOCK_RTCCLK_DIV16 0x00000000U |
#define | RTC_WAKEUPCLOCK_RTCCLK_DIV2 0x00000003U |
#define | RTC_WAKEUPCLOCK_RTCCLK_DIV4 0x00000002U |
#define | RTC_WAKEUPCLOCK_RTCCLK_DIV8 0x00000001U |
Header file of RTC HAL Extension module.
This software component is licensed by ST under BSD 3-Clause license, the "License"; You may not use this file except in compliance with the License. You may obtain a copy of the License at: opensource.org/licenses/BSD-3-Clause
Definition in file stm32f4xx_hal_rtc_ex.h.