RTEMS 6.1-rc6
Loading...
Searching...
No Matches
Data Structures | Macros | Functions
stm32h7xx_hal_rtc_ex.h File Reference

Header file of RTC HAL Extension module. More...

#include "stm32h7xx_hal_def.h"

Go to the source code of this file.

Data Structures

struct  RTC_TamperTypeDef
 

Macros

#define BKP_REG_NUMBER   RTC_BKP_NUMBER
 
#define RTC_BKP_DR0   0x00u
 
#define RTC_BKP_DR1   0x01u
 
#define RTC_BKP_DR2   0x02u
 
#define RTC_BKP_DR3   0x03u
 
#define RTC_BKP_DR4   0x04u
 
#define RTC_BKP_DR5   0x05u
 
#define RTC_BKP_DR6   0x06u
 
#define RTC_BKP_DR7   0x07u
 
#define RTC_BKP_DR8   0x08u
 
#define RTC_BKP_DR9   0x09u
 
#define RTC_BKP_DR10   0x0Au
 
#define RTC_BKP_DR11   0x0Bu
 
#define RTC_BKP_DR12   0x0Cu
 
#define RTC_BKP_DR13   0x0Du
 
#define RTC_BKP_DR14   0x0Eu
 
#define RTC_BKP_DR15   0x0Fu
 
#define RTC_BKP_DR16   0x10u
 
#define RTC_BKP_DR17   0x11u
 
#define RTC_BKP_DR18   0x12u
 
#define RTC_BKP_DR19   0x13u
 
#define RTC_BKP_DR20   0x14u
 
#define RTC_BKP_DR21   0x15u
 
#define RTC_BKP_DR22   0x16u
 
#define RTC_BKP_DR23   0x17u
 
#define RTC_BKP_DR24   0x18u
 
#define RTC_BKP_DR25   0x19u
 
#define RTC_BKP_DR26   0x1Au
 
#define RTC_BKP_DR27   0x1Bu
 
#define RTC_BKP_DR28   0x1Cu
 
#define RTC_BKP_DR29   0x1Du
 
#define RTC_BKP_DR30   0x1Eu
 
#define RTC_BKP_DR31   0x1Fu
 
#define RTC_TIMESTAMPEDGE_RISING   0x00000000u
 
#define RTC_TIMESTAMPEDGE_FALLING   RTC_CR_TSEDGE
 
#define RTC_TIMESTAMPPIN_DEFAULT   0x00000000u
 
#define RTC_TAMPER_1   RTC_TAMPCR_TAMP1E
 
#define RTC_TAMPER_2   RTC_TAMPCR_TAMP2E
 
#define RTC_TAMPER_3   RTC_TAMPCR_TAMP3E
 
#define RTC_TAMPER_ALL   (RTC_TAMPER_1 | RTC_TAMPER_2 | RTC_TAMPER_3)
 
#define RTC_IT_TAMP1   RTC_TAMPCR_TAMP1IE
 
#define RTC_IT_TAMP2   RTC_TAMPCR_TAMP2IE
 
#define RTC_IT_TAMP3   RTC_TAMPCR_TAMP3IE
 
#define RTC_IT_TAMP   RTC_TAMPCR_TAMPIE
 
#define RTC_IT_TAMPALL   RTC_IT_TAMP
 
#define RTC_TAMPERTRIGGER_RISINGEDGE   0x01u
 
#define RTC_TAMPERTRIGGER_FALLINGEDGE   0x02u
 
#define RTC_TAMPERTRIGGER_LOWLEVEL   0x04u
 
#define RTC_TAMPERTRIGGER_HIGHLEVEL   0x08u
 
#define RTC_TAMPER_1_TRIGGER   RTC_TAMPCR_TAMP1TRG
 
#define RTC_TAMPER_2_TRIGGER   RTC_TAMPCR_TAMP2TRG
 
#define RTC_TAMPER_3_TRIGGER   RTC_TAMPCR_TAMP3TRG
 
#define RTC_TAMPER_X_TRIGGER
 
#define RTC_TAMPER_ERASE_BACKUP_ENABLE   0x00000000u
 
#define RTC_TAMPER_ERASE_BACKUP_DISABLE   RTC_TAMPCR_TAMP1NOERASE
 
#define RTC_DISABLE_BKP_ERASE_ON_TAMPER_1   RTC_TAMPCR_TAMP1NOERASE
 
#define RTC_DISABLE_BKP_ERASE_ON_TAMPER_2   RTC_TAMPCR_TAMP2NOERASE
 
#define RTC_DISABLE_BKP_ERASE_ON_TAMPER_3   RTC_TAMPCR_TAMP3NOERASE
 
#define RTC_DISABLE_BKP_ERASE_ON_TAMPER_MASK
 
#define RTC_TAMPERMASK_FLAG_DISABLE   0x00000000u
 
#define RTC_TAMPERMASK_FLAG_ENABLE   RTC_TAMPCR_TAMP1MF
 
#define RTC_TAMPER_1_MASK_FLAG   RTC_TAMPCR_TAMP1MF
 
#define RTC_TAMPER_2_MASK_FLAG   RTC_TAMPCR_TAMP2MF
 
#define RTC_TAMPER_3_MASK_FLAG   RTC_TAMPCR_TAMP3MF
 
#define RTC_TAMPER_X_MASK_FLAG
 
#define RTC_TAMPERFILTER_DISABLE   0x00000000u
 
#define RTC_TAMPERFILTER_2SAMPLE   RTC_TAMPCR_TAMPFLT_0
 
#define RTC_TAMPERFILTER_4SAMPLE   RTC_TAMPCR_TAMPFLT_1
 
#define RTC_TAMPERFILTER_8SAMPLE   RTC_TAMPCR_TAMPFLT
 
#define RTC_TAMPERFILTER_MASK   RTC_TAMPCR_TAMPFLT
 
#define RTC_TAMPERSAMPLINGFREQ_RTCCLK_DIV32768   0x00000000u
 
#define RTC_TAMPERSAMPLINGFREQ_RTCCLK_DIV16384   RTC_TAMPCR_TAMPFREQ_0
 
#define RTC_TAMPERSAMPLINGFREQ_RTCCLK_DIV8192   RTC_TAMPCR_TAMPFREQ_1
 
#define RTC_TAMPERSAMPLINGFREQ_RTCCLK_DIV4096   (RTC_TAMPCR_TAMPFREQ_0 | RTC_TAMPCR_TAMPFREQ_1)
 
#define RTC_TAMPERSAMPLINGFREQ_RTCCLK_DIV2048   RTC_TAMPCR_TAMPFREQ_2
 
#define RTC_TAMPERSAMPLINGFREQ_RTCCLK_DIV1024   (RTC_TAMPCR_TAMPFREQ_0 | RTC_TAMPCR_TAMPFREQ_2)
 
#define RTC_TAMPERSAMPLINGFREQ_RTCCLK_DIV512   (RTC_TAMPCR_TAMPFREQ_1 | RTC_TAMPCR_TAMPFREQ_2)
 
#define RTC_TAMPERSAMPLINGFREQ_RTCCLK_DIV256   RTC_TAMPCR_TAMPFREQ
 
#define RTC_TAMPERSAMPLINGFREQ_RTCCLK_MASK   RTC_TAMPCR_TAMPFREQ
 
#define RTC_TAMPERPRECHARGEDURATION_1RTCCLK   0x00000000u
 
#define RTC_TAMPERPRECHARGEDURATION_2RTCCLK   RTC_TAMPCR_TAMPPRCH_0
 
#define RTC_TAMPERPRECHARGEDURATION_4RTCCLK   RTC_TAMPCR_TAMPPRCH_1
 
#define RTC_TAMPERPRECHARGEDURATION_8RTCCLK   RTC_TAMPCR_TAMPPRCH
 
#define RTC_TAMPERPRECHARGEDURATION_MASK   RTC_TAMPCR_TAMPPRCH
 
#define RTC_TIMESTAMPONTAMPERDETECTION_DISABLE   0x00000000u
 
#define RTC_TIMESTAMPONTAMPERDETECTION_ENABLE   RTC_TAMPCR_TAMPTS
 
#define RTC_TIMESTAMPONTAMPERDETECTION_MASK   RTC_TAMPCR_TAMPTS
 
#define RTC_TAMPER_PULLUP_ENABLE   0x00000000u
 
#define RTC_TAMPER_PULLUP_DISABLE   RTC_TAMPCR_TAMPPUDIS
 
#define RTC_TAMPER_PULLUP_MASK   RTC_TAMPCR_TAMPPUDIS
 
#define RTC_FLAG_TAMP1F   RTC_ISR_TAMP1F
 
#define RTC_FLAG_TAMP2F   RTC_ISR_TAMP2F
 
#define RTC_FLAG_TAMP3F   RTC_ISR_TAMP3F
 
#define RTC_ATAMP_ENABLE   1u
 
#define RTC_ATAMP_DISABLE   0u
 
#define RTC_ATAMP_INTERRUPT_ENABLE   1u
 
#define RTC_ATAMP_INTERRUPT_DISABLE   0u
 
#define RTC_ATAMP_FILTER_ENABLE   TAMP_ATCR1_FLTEN
 
#define RTC_ATAMP_FILTER_DISABLE   0u
 
#define RTC_ATAMP_ASYNCPRES_RTCCLK   0u
 
#define RTC_ATAMP_ASYNCPRES_RTCCLK_2   TAMP_ATCR1_ATCKSEL_0
 
#define RTC_ATAMP_ASYNCPRES_RTCCLK_4   TAMP_ATCR1_ATCKSEL_1
 
#define RTC_ATAMP_ASYNCPRES_RTCCLK_8   (TAMP_ATCR1_ATCKSEL_1 | TAMP_ATCR1_ATCKSEL_0)
 
#define RTC_ATAMP_ASYNCPRES_RTCCLK_16   TAMP_ATCR1_ATCKSEL_2
 
#define RTC_ATAMP_ASYNCPRES_RTCCLK_32   (TAMP_ATCR1_ATCKSEL_2 | TAMP_ATCR1_ATCKSEL_0)
 
#define RTC_ATAMP_ASYNCPRES_RTCCLK_64   (TAMP_ATCR1_ATCKSEL_2 | TAMP_ATCR1_ATCKSEL_1)
 
#define RTC_ATAMP_ASYNCPRES_RTCCLK_128   (TAMP_ATCR1_ATCKSEL_2 | TAMP_ATCR1_ATCKSEL_1 | TAMP_ATCR1_ATCKSEL_0)
 
#define RTC_ATAMP_1   0u
 
#define RTC_ATAMP_2   1u
 
#define RTC_ATAMP_3   2u
 
#define RTC_ATAMP_4   3u
 
#define RTC_ATAMP_5   4u
 
#define RTC_ATAMP_6   5u
 
#define RTC_ATAMP_7   6u
 
#define RTC_ATAMP_8   7u
 
#define RTC_MONOTONIC_COUNTER_1   0u
 
#define RTC_WAKEUPCLOCK_RTCCLK_DIV16   0x00000000u
 
#define RTC_WAKEUPCLOCK_RTCCLK_DIV8   RTC_CR_WUCKSEL_0
 
#define RTC_WAKEUPCLOCK_RTCCLK_DIV4   RTC_CR_WUCKSEL_1
 
#define RTC_WAKEUPCLOCK_RTCCLK_DIV2   (RTC_CR_WUCKSEL_0 | RTC_CR_WUCKSEL_1)
 
#define RTC_WAKEUPCLOCK_CK_SPRE_16BITS   RTC_CR_WUCKSEL_2
 
#define RTC_WAKEUPCLOCK_CK_SPRE_17BITS   (RTC_CR_WUCKSEL_1 | RTC_CR_WUCKSEL_2)
 
#define RTC_SMOOTHCALIB_PERIOD_32SEC   0x00000000u
 
#define RTC_SMOOTHCALIB_PERIOD_16SEC   RTC_CALR_CALW16
 
#define RTC_SMOOTHCALIB_PERIOD_8SEC   RTC_CALR_CALW8
 
#define RTC_SMOOTHCALIB_PLUSPULSES_SET   RTC_CALR_CALP
 
#define RTC_SMOOTHCALIB_PLUSPULSES_RESET   0x00000000u
 
#define RTC_CALIBOUTPUT_512HZ   0x00000000u
 
#define RTC_CALIBOUTPUT_1HZ   RTC_CR_COSEL
 
#define RTC_SHIFTADD1S_RESET   0x00000000u
 
#define RTC_SHIFTADD1S_SET   RTC_SHIFTR_ADD1S
 
#define __HAL_RTC_WAKEUPTIMER_ENABLE(__HANDLE__)   ((__HANDLE__)->Instance->CR |= (RTC_CR_WUTE))
 Enable the RTC WakeUp Timer peripheral.
 
#define __HAL_RTC_WAKEUPTIMER_DISABLE(__HANDLE__)   ((__HANDLE__)->Instance->CR &= ~(RTC_CR_WUTE))
 Disable the RTC WakeUp Timer peripheral.
 
#define __HAL_RTC_WAKEUPTIMER_ENABLE_IT(__HANDLE__, __INTERRUPT__)   ((__HANDLE__)->Instance->CR |= (__INTERRUPT__))
 Enable the RTC WakeUpTimer interrupt.
 
#define __HAL_RTC_WAKEUPTIMER_DISABLE_IT(__HANDLE__, __INTERRUPT__)   ((__HANDLE__)->Instance->CR &= ~(__INTERRUPT__))
 Disable the RTC WakeUpTimer interrupt.
 
#define __HAL_RTC_WAKEUPTIMER_GET_IT(__HANDLE__, __INTERRUPT__)   (((((__HANDLE__)->Instance->ISR) & (__INTERRUPT__)) != 0U) ? 1U : 0U)
 Check whether the specified RTC WakeUpTimer interrupt has occurred or not.
 
#define __HAL_RTC_WAKEUPTIMER_GET_IT_SOURCE(__HANDLE__, __INTERRUPT__)   (((((__HANDLE__)->Instance->CR) & (__INTERRUPT__)) != 0U) ? 1U : 0U)
 Check whether the specified RTC Wake Up timer interrupt has been enabled or not.
 
#define __HAL_RTC_WAKEUPTIMER_GET_FLAG(__HANDLE__, __FLAG__)   (((((__HANDLE__)->Instance->ISR) & (__FLAG__)) != 0U) ? 1U : 0U)
 Get the selected RTC WakeUpTimer's flag status.
 
#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.
 
#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 RTC Tamper interrupt.
 
#define __HAL_RTC_TAMPER_DISABLE_IT(__HANDLE__, __INTERRUPT__)   ((__HANDLE__)->Instance->TAMPCR &= ~(__INTERRUPT__))
 Disable the RTC Tamper interrupt.
 
#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_GET_SAMPLING_FREQ(__HANDLE__)   ((uint32_t)(((__HANDLE__)->Instance->TAMPCR) & (RTC_TAMPERSAMPLINGFREQ_RTCCLK_MASK)))
 Get the frequency at which each of the Tamper inputs are sampled.
 
#define __HAL_RTC_TAMPER_GET_SAMPLES_COUNT(__HANDLE__)   ((uint32_t)(((__HANDLE__)->Instance->TAMPCR) & (RTC_TAMPERFILTER_MASK)))
 Get the number of consecutive samples at the specified level needed to activate a Tamper event.
 
#define __HAL_RTC_TAMPER_GET_PRCHRG_DURATION(__HANDLE__)   ((uint32_t)(((__HANDLE__)->Instance->TAMPCR) & (RTC_TAMPERPRECHARGEDURATION_MASK)))
 Get the pull-up resistors precharge duration.
 
#define __HAL_RTC_TAMPER_GET_PULLUP_STATUS(__HANDLE__)   ((uint32_t)(((__HANDLE__)->Instance->TAMPCR) & (RTC_TAMPER_PULLUP_MASK)))
 Get the pull-up resistors status.
 
#define __HAL_RTC_TIMESTAMP_ENABLE(__HANDLE__)   ((__HANDLE__)->Instance->CR |= (RTC_CR_TSE))
 Enable the RTC TimeStamp peripheral.
 
#define __HAL_RTC_TIMESTAMP_DISABLE(__HANDLE__)   ((__HANDLE__)->Instance->CR &= ~(RTC_CR_TSE))
 Disable the RTC TimeStamp peripheral.
 
#define __HAL_RTC_TIMESTAMP_ENABLE_IT(__HANDLE__, __INTERRUPT__)   ((__HANDLE__)->Instance->CR |= (__INTERRUPT__))
 Enable the RTC TimeStamp interrupt.
 
#define __HAL_RTC_TIMESTAMP_DISABLE_IT(__HANDLE__, __INTERRUPT__)   ((__HANDLE__)->Instance->CR &= ~(__INTERRUPT__))
 Disable the RTC TimeStamp interrupt.
 
#define __HAL_RTC_TIMESTAMP_GET_IT(__HANDLE__, __INTERRUPT__)   (((((__HANDLE__)->Instance->ISR) & (__INTERRUPT__)) != 0U) ? 1U : 0U)
 Check whether the specified RTC TimeStamp interrupt has occurred or not.
 
#define __HAL_RTC_TIMESTAMP_GET_IT_SOURCE(__HANDLE__, __INTERRUPT__)   (((((__HANDLE__)->Instance->CR) & (__INTERRUPT__)) != 0U) ? 1U : 0U)
 Check whether the specified RTC Time Stamp interrupt has been enabled or not.
 
#define __HAL_RTC_TIMESTAMP_GET_FLAG(__HANDLE__, __FLAG__)   (((((__HANDLE__)->Instance->ISR) & (__FLAG__)) != 0U) ? 1U : 0U)
 Get the selected RTC TimeStamp's flag status.
 
#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.
 
#define __HAL_RTC_INTERNAL_TIMESTAMP_ENABLE(__HANDLE__)   ((__HANDLE__)->Instance->CR |= (RTC_CR_ITSE))
 Enable the RTC internal TimeStamp peripheral.
 
#define __HAL_RTC_INTERNAL_TIMESTAMP_DISABLE(__HANDLE__)   ((__HANDLE__)->Instance->CR &= ~(RTC_CR_ITSE))
 Disable the RTC internal TimeStamp peripheral.
 
#define __HAL_RTC_INTERNAL_TIMESTAMP_GET_FLAG(__HANDLE__, __FLAG__)   (((((__HANDLE__)->Instance->ISR) & (__FLAG__)) != 0U) ? 1U : 0U)
 Get the selected RTC Internal Time Stamp's flag status.
 
#define __HAL_RTC_INTERNAL_TIMESTAMP_CLEAR_FLAG(__HANDLE__, __FLAG__)   ((__HANDLE__)->Instance->ISR = (~((__FLAG__) | RTC_ISR_INIT)|((__HANDLE__)->Instance->ISR & RTC_ISR_INIT)))
 Clear the RTC Internal Time Stamp's pending flags.
 
#define __HAL_RTC_TAMPTS_ENABLE(__HANDLE__)   ((__HANDLE__)->Instance->TAMPCR |= (RTC_TIMESTAMPONTAMPERDETECTION_MASK))
 Enable the RTC TimeStamp on Tamper detection.
 
#define __HAL_RTC_TAMPTS_DISABLE(__HANDLE__)   ((__HANDLE__)->Instance->TAMPCR &= ~(RTC_TIMESTAMPONTAMPERDETECTION_MASK))
 Disable the RTC TimeStamp on Tamper detection.
 
#define __HAL_RTC_TAMPTS_GET_STATUS(__HANDLE__)   ((__HANDLE__)->Instance->TAMPCR &= RTC_TIMESTAMPONTAMPERDETECTION_MASK)
 Get activation status of the RTC TimeStamp on Tamper detection.
 
#define __HAL_RTC_CALIBRATION_OUTPUT_ENABLE(__HANDLE__)   ((__HANDLE__)->Instance->CR |= (RTC_CR_COE))
 Enable the RTC calibration output.
 
#define __HAL_RTC_CALIBRATION_OUTPUT_DISABLE(__HANDLE__)   ((__HANDLE__)->Instance->CR &= ~(RTC_CR_COE))
 Disable the calibration output.
 
#define __HAL_RTC_CLOCKREF_DETECTION_ENABLE(__HANDLE__)   ((__HANDLE__)->Instance->CR |= (RTC_CR_REFCKON))
 Enable the clock reference detection.
 
#define __HAL_RTC_CLOCKREF_DETECTION_DISABLE(__HANDLE__)   ((__HANDLE__)->Instance->CR &= ~(RTC_CR_REFCKON))
 Disable the clock reference detection.
 
#define __HAL_RTC_SHIFT_GET_FLAG(__HANDLE__, __FLAG__)   (((((__HANDLE__)->Instance->ISR) & (__FLAG__)) != 0U) ? 1U : 0U)
 Get the selected RTC shift operation's flag status.
 
#define __HAL_RTC_WAKEUPTIMER_EXTI_ENABLE_IT()   (EXTI->IMR1 |= RTC_EXTI_LINE_WAKEUPTIMER_EVENT)
 Enable interrupt on the RTC WakeUp Timer associated Exti line.
 
#define __HAL_RTC_WAKEUPTIMER_EXTI_DISABLE_IT()   (EXTI->IMR1 &= ~(RTC_EXTI_LINE_WAKEUPTIMER_EVENT))
 Disable interrupt on the RTC WakeUp Timer associated Exti line.
 
#define __HAL_RTC_WAKEUPTIMER_EXTI_ENABLE_EVENT()   (EXTI->EMR1 |= RTC_EXTI_LINE_WAKEUPTIMER_EVENT)
 Enable event on the RTC WakeUp Timer associated Exti line.
 
#define __HAL_RTC_WAKEUPTIMER_EXTI_DISABLE_EVENT()   (EXTI->EMR1 &= ~(RTC_EXTI_LINE_WAKEUPTIMER_EVENT))
 Disable event on the RTC WakeUp Timer associated Exti line.
 
#define __HAL_RTC_WAKEUPTIMER_EXTID3_ENABLE_EVENT()   (EXTI->D3PMR1 |= RTC_EXTI_LINE_WAKEUPTIMER_EVENT)
 Enable event on the RTC WakeUp Timer associated D3 Exti line.
 
#define __HAL_RTC_WAKEUPTIMER_EXTID3_DISABLE_EVENT()   (EXTI->D3PMR1 &= ~(RTC_EXTI_LINE_WAKEUPTIMER_EVENT))
 Disable event on the RTC WakeUp Timer associated D3 Exti line.
 
#define __HAL_RTC_WAKEUPTIMER_EXTI_ENABLE_FALLING_EDGE()   (EXTI->FTSR1 |= RTC_EXTI_LINE_WAKEUPTIMER_EVENT)
 Enable falling edge trigger on the RTC WakeUp Timer associated Exti line.
 
#define __HAL_RTC_WAKEUPTIMER_EXTI_DISABLE_FALLING_EDGE()   (EXTI->FTSR1 &= ~(RTC_EXTI_LINE_WAKEUPTIMER_EVENT))
 Disable falling edge trigger on the RTC WakeUp Timer associated Exti line.
 
#define __HAL_RTC_WAKEUPTIMER_EXTI_ENABLE_RISING_EDGE()   (EXTI->RTSR1 |= RTC_EXTI_LINE_WAKEUPTIMER_EVENT)
 Enable rising edge trigger on the RTC WakeUp Timer associated Exti line.
 
#define __HAL_RTC_WAKEUPTIMER_EXTI_DISABLE_RISING_EDGE()   (EXTI->RTSR1 &= ~(RTC_EXTI_LINE_WAKEUPTIMER_EVENT))
 Disable rising edge trigger on the RTC WakeUp Timer associated Exti line.
 
#define __HAL_RTC_WAKEUPTIMER_EXTI_ENABLE_RISING_FALLING_EDGE()
 Enable rising & falling edge trigger on the RTC WakeUp Timer associated Exti line.
 
#define __HAL_RTC_WAKEUPTIMER_EXTI_DISABLE_RISING_FALLING_EDGE()
 Disable rising & falling edge trigger on the RTC WakeUp Timer associated Exti line. This parameter can be:
 
#define __HAL_RTC_WAKEUPTIMER_EXTI_GET_FLAG()   (EXTI->PR1 & RTC_EXTI_LINE_WAKEUPTIMER_EVENT)
 Check whether the RTC WakeUp Timer associated Exti line interrupt flag is set or not.
 
#define __HAL_RTC_WAKEUPTIMER_EXTI_CLEAR_FLAG()   (EXTI->PR1 = RTC_EXTI_LINE_WAKEUPTIMER_EVENT)
 Clear the RTC WakeUp Timer associated Exti line flag.
 
#define __HAL_RTC_WAKEUPTIMER_EXTID3_GET_FLAG()   (EXTI_D3->PR1 & RTC_EXTI_LINE_WAKEUPTIMER_EVENT)
 Check whether the RTC WakeUp Timer associated D3 Exti line interrupt flag is set or not.
 
#define __HAL_RTC_WAKEUPTIMER_EXTID3_CLEAR_FLAG()   (EXTI_D3->PR1 = RTC_EXTI_LINE_WAKEUPTIMER_EVENT)
 Clear the RTC WakeUp Timer associated D3 Exti line flag.
 
#define __HAL_RTC_WAKEUPTIMER_EXTI_GENERATE_SWIT()   (EXTI->SWIER1 |= RTC_EXTI_LINE_WAKEUPTIMER_EVENT)
 Generate a Software interrupt on the RTC WakeUp Timer associated Exti line.
 
#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 RTC_EXTI_LINE_TAMPER_TIMESTAMP_EVENT   EXTI_IMR1_IM18
 
#define RTC_EXTI_LINE_WAKEUPTIMER_EVENT   EXTI_IMR1_IM19
 
#define RTC_TAMPER_X   ((uint32_t) (RTC_TAMPER_1 | RTC_TAMPER_2 | RTC_TAMPER_3))
 
#define RTC_TAMPER_X_INTERRUPT   ((uint32_t) (RTC_IT_TAMP1 | RTC_IT_TAMP2 | RTC_IT_TAMP3))
 
#define IS_RTC_BKP(__BKP__)   ((__BKP__) < BKP_REG_NUMBER)
 
#define IS_TIMESTAMP_EDGE(EDGE)
 
#define IS_RTC_TIMESTAMP_PIN(PIN)   (((PIN) == RTC_TIMESTAMPPIN_DEFAULT))
 
#define IS_RTC_WAKEUP_CLOCK(CLOCK)
 
#define IS_RTC_WAKEUP_COUNTER(COUNTER)   ((COUNTER) <= RTC_WUTR_WUT)
 
#define IS_RTC_SMOOTH_CALIB_PERIOD(PERIOD)
 
#define IS_RTC_SMOOTH_CALIB_PLUS(PLUS)
 
#define IS_RTC_SMOOTH_CALIB_MINUS(VALUE)   ((VALUE) <= RTC_CALR_CALM)
 
#define IS_RTC_SHIFT_ADD1S(SEL)
 
#define IS_RTC_SHIFT_SUBFS(FS)   ((FS) <= RTC_SHIFTR_SUBFS)
 
#define IS_RTC_CALIB_OUTPUT(OUTPUT)
 
#define IS_RTC_TAMPER(__TAMPER__)
 
#define IS_RTC_TAMPER_INTERRUPT(__INTERRUPT__)
 
#define IS_RTC_TAMPER_TRIGGER(__TRIGGER__)
 
#define IS_RTC_TAMPER_ERASE_MODE(__MODE__)
 
#define IS_RTC_TAMPER_MASKFLAG_STATE(__STATE__)
 
#define IS_RTC_TAMPER_FILTER(__FILTER__)
 
#define IS_RTC_TAMPER_SAMPLING_FREQ(__FREQ__)
 
#define IS_RTC_TAMPER_PRECHARGE_DURATION(__DURATION__)
 
#define IS_RTC_TAMPER_PULLUP_STATE(__STATE__)
 
#define IS_RTC_TAMPER_TIMESTAMPONTAMPER_DETECTION(__DETECTION__)
 
#define IS_RTC_TAMPER_FILTER_CONFIG_CORRECT(FILTER, TRIGGER)
 
#define IS_RTC_INTERNAL_TAMPER(__INT_TAMPER__)
 

Functions

HAL_StatusTypeDef HAL_RTCEx_SetTimeStamp (RTC_HandleTypeDef *hrtc, uint32_t TimeStampEdge, uint32_t RTC_TimeStampPin)
 
HAL_StatusTypeDef HAL_RTCEx_SetTimeStamp_IT (RTC_HandleTypeDef *hrtc, uint32_t TimeStampEdge, uint32_t RTC_TimeStampPin)
 
HAL_StatusTypeDef HAL_RTCEx_DeactivateTimeStamp (RTC_HandleTypeDef *hrtc)
 
HAL_StatusTypeDef HAL_RTCEx_SetInternalTimeStamp (RTC_HandleTypeDef *hrtc)
 
HAL_StatusTypeDef HAL_RTCEx_DeactivateInternalTimeStamp (RTC_HandleTypeDef *hrtc)
 
HAL_StatusTypeDef HAL_RTCEx_GetTimeStamp (RTC_HandleTypeDef *hrtc, RTC_TimeTypeDef *sTimeStamp, RTC_DateTypeDef *sTimeStampDate, uint32_t Format)
 
void HAL_RTCEx_TamperTimeStampIRQHandler (RTC_HandleTypeDef *hrtc)
 
void HAL_RTCEx_TimeStampEventCallback (RTC_HandleTypeDef *hrtc)
 
HAL_StatusTypeDef HAL_RTCEx_PollForTimeStampEvent (RTC_HandleTypeDef *hrtc, uint32_t Timeout)
 
HAL_StatusTypeDef HAL_RTCEx_SetTamper (RTC_HandleTypeDef *hrtc, RTC_TamperTypeDef *sTamper)
 
HAL_StatusTypeDef HAL_RTCEx_SetTamper_IT (RTC_HandleTypeDef *hrtc, RTC_TamperTypeDef *sTamper)
 
HAL_StatusTypeDef HAL_RTCEx_DeactivateTamper (RTC_HandleTypeDef *hrtc, uint32_t Tamper)
 
HAL_StatusTypeDef HAL_RTCEx_PollForTamper1Event (RTC_HandleTypeDef *hrtc, uint32_t Timeout)
 
HAL_StatusTypeDef HAL_RTCEx_PollForTamper2Event (RTC_HandleTypeDef *hrtc, uint32_t Timeout)
 
HAL_StatusTypeDef HAL_RTCEx_PollForTamper3Event (RTC_HandleTypeDef *hrtc, uint32_t Timeout)
 
void HAL_RTCEx_Tamper1EventCallback (RTC_HandleTypeDef *hrtc)
 
void HAL_RTCEx_Tamper2EventCallback (RTC_HandleTypeDef *hrtc)
 
void HAL_RTCEx_Tamper3EventCallback (RTC_HandleTypeDef *hrtc)
 
HAL_StatusTypeDef HAL_RTCEx_SetWakeUpTimer (RTC_HandleTypeDef *hrtc, uint32_t WakeUpCounter, uint32_t WakeUpClock)
 
HAL_StatusTypeDef HAL_RTCEx_SetWakeUpTimer_IT (RTC_HandleTypeDef *hrtc, uint32_t WakeUpCounter, uint32_t WakeUpClock)
 
HAL_StatusTypeDef HAL_RTCEx_DeactivateWakeUpTimer (RTC_HandleTypeDef *hrtc)
 
uint32_t HAL_RTCEx_GetWakeUpTimer (RTC_HandleTypeDef *hrtc)
 
void HAL_RTCEx_WakeUpTimerIRQHandler (RTC_HandleTypeDef *hrtc)
 
void HAL_RTCEx_WakeUpTimerEventCallback (RTC_HandleTypeDef *hrtc)
 Wake Up Timer Event Callback in non blocking mode.
 
HAL_StatusTypeDef HAL_RTCEx_PollForWakeUpTimerEvent (RTC_HandleTypeDef *hrtc, uint32_t Timeout)
 
void HAL_RTCEx_BKUPWrite (RTC_HandleTypeDef *hrtc, uint32_t BackupRegister, uint32_t Data)
 
uint32_t HAL_RTCEx_BKUPRead (RTC_HandleTypeDef *hrtc, uint32_t BackupRegister)
 
HAL_StatusTypeDef HAL_RTCEx_SetSmoothCalib (RTC_HandleTypeDef *hrtc, uint32_t SmoothCalibPeriod, uint32_t SmoothCalibPlusPulses, uint32_t SmoothCalibMinusPulsesValue)
 
HAL_StatusTypeDef HAL_RTCEx_SetSynchroShift (RTC_HandleTypeDef *hrtc, uint32_t ShiftAdd1S, uint32_t ShiftSubFS)
 
HAL_StatusTypeDef HAL_RTCEx_SetCalibrationOutPut (RTC_HandleTypeDef *hrtc, uint32_t CalibOutput)
 
HAL_StatusTypeDef HAL_RTCEx_DeactivateCalibrationOutPut (RTC_HandleTypeDef *hrtc)
 
HAL_StatusTypeDef HAL_RTCEx_SetRefClock (RTC_HandleTypeDef *hrtc)
 
HAL_StatusTypeDef HAL_RTCEx_DeactivateRefClock (RTC_HandleTypeDef *hrtc)
 
HAL_StatusTypeDef HAL_RTCEx_EnableBypassShadow (RTC_HandleTypeDef *hrtc)
 
HAL_StatusTypeDef HAL_RTCEx_DisableBypassShadow (RTC_HandleTypeDef *hrtc)
 
void HAL_RTCEx_AlarmBEventCallback (RTC_HandleTypeDef *hrtc)
 
HAL_StatusTypeDef HAL_RTCEx_PollForAlarmBEvent (RTC_HandleTypeDef *hrtc, uint32_t Timeout)
 

Detailed Description

Header file of RTC HAL Extension module.

Author
MCD Application Team
Attention

Copyright (c) 2017 STMicroelectronics. All rights reserved.

This software is licensed under terms that can be found in the LICENSE file in the root directory of this software component. If no LICENSE file comes with this software, it is provided AS-IS.