RTEMS 6.1-rc1
Macros

Macros

#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 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_DISABLE_IT(__HANDLE__, __INTERRUPT__)   ((__HANDLE__)->Instance->CR &= ~(__INTERRUPT__))
 Disable the RTC WakeUpTimer interrupt. More...
 
#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. More...
 
#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. More...
 
#define __HAL_RTC_WAKEUPTIMER_GET_FLAG(__HANDLE__, __FLAG__)   (((((__HANDLE__)->Instance->ISR) & (__FLAG__)) != 0U) ? 1U : 0U)
 Get the selected RTC WakeUpTimer's flag status. 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_TAMPER1_ENABLE(__HANDLE__)   ((__HANDLE__)->Instance->TAMPCR |= (RTC_TAMPCR_TAMP1E))
 Enable the RTC Tamper1 input detection. More...
 
#define __HAL_RTC_TAMPER1_DISABLE(__HANDLE__)   ((__HANDLE__)->Instance->TAMPCR &= ~(RTC_TAMPCR_TAMP1E))
 Disable the RTC Tamper1 input detection. More...
 
#define __HAL_RTC_TAMPER2_ENABLE(__HANDLE__)   ((__HANDLE__)->Instance->TAMPCR |= (RTC_TAMPCR_TAMP2E))
 Enable the RTC Tamper2 input detection. More...
 
#define __HAL_RTC_TAMPER2_DISABLE(__HANDLE__)   ((__HANDLE__)->Instance->TAMPCR &= ~(RTC_TAMPCR_TAMP2E))
 Disable the RTC Tamper2 input detection. More...
 
#define __HAL_RTC_TAMPER3_ENABLE(__HANDLE__)   ((__HANDLE__)->Instance->TAMPCR |= (RTC_TAMPCR_TAMP3E))
 Enable the RTC Tamper3 input detection. More...
 
#define __HAL_RTC_TAMPER3_DISABLE(__HANDLE__)   ((__HANDLE__)->Instance->TAMPCR &= ~(RTC_TAMPCR_TAMP3E))
 Disable the RTC Tamper3 input detection. More...
 
#define __HAL_RTC_TAMPER_ENABLE_IT(__HANDLE__, __INTERRUPT__)   ((__HANDLE__)->Instance->TAMPCR |= (__INTERRUPT__))
 Enable the RTC Tamper interrupt. More...
 
#define __HAL_RTC_TAMPER_DISABLE_IT(__HANDLE__, __INTERRUPT__)   ((__HANDLE__)->Instance->TAMPCR &= ~(__INTERRUPT__))
 Disable the RTC Tamper interrupt. More...
 
#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. More...
 
#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. More...
 
#define __HAL_RTC_TAMPER_GET_FLAG(__HANDLE__, __FLAG__)   (((((__HANDLE__)->Instance->ISR) & (__FLAG__)) != 0U) ? 1U : 0U)
 Get the selected RTC Tamper's flag status. 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_SAMPLING_FREQ(__HANDLE__)   ((uint32_t)(((__HANDLE__)->Instance->TAMPCR) & (RTC_TAMPERSAMPLINGFREQ_RTCCLK_MASK)))
 Get the frequency at which each of the Tamper inputs are sampled. More...
 
#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. More...
 
#define __HAL_RTC_TAMPER_GET_PRCHRG_DURATION(__HANDLE__)   ((uint32_t)(((__HANDLE__)->Instance->TAMPCR) & (RTC_TAMPERPRECHARGEDURATION_MASK)))
 Get the pull-up resistors precharge duration. More...
 
#define __HAL_RTC_TAMPER_GET_PULLUP_STATUS(__HANDLE__)   ((uint32_t)(((__HANDLE__)->Instance->TAMPCR) & (RTC_TAMPER_PULLUP_MASK)))
 Get the pull-up resistors status. More...
 
#define __HAL_RTC_TIMESTAMP_ENABLE(__HANDLE__)   ((__HANDLE__)->Instance->CR |= (RTC_CR_TSE))
 Enable the RTC TimeStamp peripheral. More...
 
#define __HAL_RTC_TIMESTAMP_DISABLE(__HANDLE__)   ((__HANDLE__)->Instance->CR &= ~(RTC_CR_TSE))
 Disable 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_DISABLE_IT(__HANDLE__, __INTERRUPT__)   ((__HANDLE__)->Instance->CR &= ~(__INTERRUPT__))
 Disable the RTC TimeStamp interrupt. More...
 
#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. More...
 
#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. More...
 
#define __HAL_RTC_TIMESTAMP_GET_FLAG(__HANDLE__, __FLAG__)   (((((__HANDLE__)->Instance->ISR) & (__FLAG__)) != 0U) ? 1U : 0U)
 Get the selected RTC TimeStamp's flag status. 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_INTERNAL_TIMESTAMP_ENABLE(__HANDLE__)   ((__HANDLE__)->Instance->CR |= (RTC_CR_ITSE))
 Enable the RTC internal TimeStamp peripheral. More...
 
#define __HAL_RTC_INTERNAL_TIMESTAMP_DISABLE(__HANDLE__)   ((__HANDLE__)->Instance->CR &= ~(RTC_CR_ITSE))
 Disable the RTC internal TimeStamp peripheral. More...
 
#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. More...
 
#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. More...
 
#define __HAL_RTC_TAMPTS_ENABLE(__HANDLE__)   ((__HANDLE__)->Instance->TAMPCR |= (RTC_TIMESTAMPONTAMPERDETECTION_MASK))
 Enable the RTC TimeStamp on Tamper detection. More...
 
#define __HAL_RTC_TAMPTS_DISABLE(__HANDLE__)   ((__HANDLE__)->Instance->TAMPCR &= ~(RTC_TIMESTAMPONTAMPERDETECTION_MASK))
 Disable the RTC TimeStamp on Tamper detection. More...
 
#define __HAL_RTC_TAMPTS_GET_STATUS(__HANDLE__)   ((__HANDLE__)->Instance->TAMPCR &= RTC_TIMESTAMPONTAMPERDETECTION_MASK)
 Get activation status of the RTC TimeStamp on Tamper detection. More...
 
#define __HAL_RTC_CALIBRATION_OUTPUT_ENABLE(__HANDLE__)   ((__HANDLE__)->Instance->CR |= (RTC_CR_COE))
 Enable the RTC calibration output. More...
 
#define __HAL_RTC_CALIBRATION_OUTPUT_DISABLE(__HANDLE__)   ((__HANDLE__)->Instance->CR &= ~(RTC_CR_COE))
 Disable the calibration output. More...
 
#define __HAL_RTC_CLOCKREF_DETECTION_ENABLE(__HANDLE__)   ((__HANDLE__)->Instance->CR |= (RTC_CR_REFCKON))
 Enable the clock reference detection. More...
 
#define __HAL_RTC_CLOCKREF_DETECTION_DISABLE(__HANDLE__)   ((__HANDLE__)->Instance->CR &= ~(RTC_CR_REFCKON))
 Disable the clock reference detection. More...
 
#define __HAL_RTC_SHIFT_GET_FLAG(__HANDLE__, __FLAG__)   (((((__HANDLE__)->Instance->ISR) & (__FLAG__)) != 0U) ? 1U : 0U)
 Get the selected RTC shift operation's flag status. More...
 
#define __HAL_RTC_WAKEUPTIMER_EXTI_ENABLE_IT()   (EXTI->IMR1 |= RTC_EXTI_LINE_WAKEUPTIMER_EVENT)
 Enable interrupt on the RTC WakeUp Timer associated Exti line. More...
 
#define __HAL_RTC_WAKEUPTIMER_EXTI_DISABLE_IT()   (EXTI->IMR1 &= ~(RTC_EXTI_LINE_WAKEUPTIMER_EVENT))
 Disable interrupt on the RTC WakeUp Timer associated Exti line. More...
 
#define __HAL_RTC_WAKEUPTIMER_EXTI_ENABLE_EVENT()   (EXTI->EMR1 |= RTC_EXTI_LINE_WAKEUPTIMER_EVENT)
 Enable event on the RTC WakeUp Timer associated Exti line. More...
 
#define __HAL_RTC_WAKEUPTIMER_EXTI_DISABLE_EVENT()   (EXTI->EMR1 &= ~(RTC_EXTI_LINE_WAKEUPTIMER_EVENT))
 Disable event on the RTC WakeUp Timer associated Exti line. More...
 
#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. More...
 
#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. More...
 
#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. More...
 
#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. More...
 
#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. More...
 
#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. More...
 
#define __HAL_RTC_WAKEUPTIMER_EXTI_ENABLE_RISING_FALLING_EDGE()
 Enable rising & falling edge trigger on the RTC WakeUp Timer associated Exti line. More...
 
#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: More...
 
#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. More...
 
#define __HAL_RTC_WAKEUPTIMER_EXTI_CLEAR_FLAG()   (EXTI->PR1 = RTC_EXTI_LINE_WAKEUPTIMER_EVENT)
 Clear the RTC WakeUp Timer associated Exti line flag. More...
 
#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. More...
 
#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. More...
 
#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. More...
 
#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. More...
 
#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. More...
 
#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. More...
 
#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. More...
 
#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. More...
 
#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. More...
 
#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. More...
 
#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. 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_DISABLE_RISING_FALLING_EDGE()
 Disable rising & falling edge trigger on the RTC Tamper and Timestamp associated Exti line. More...
 
#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. More...
 
#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. More...
 
#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. More...
 

Detailed Description

Macro Definition Documentation

◆ __HAL_RTC_CALIBRATION_OUTPUT_DISABLE

#define __HAL_RTC_CALIBRATION_OUTPUT_DISABLE (   __HANDLE__)    ((__HANDLE__)->Instance->CR &= ~(RTC_CR_COE))

Disable the calibration output.

Parameters
__HANDLE__specifies the RTC handle.
Return values
None

◆ __HAL_RTC_CALIBRATION_OUTPUT_ENABLE

#define __HAL_RTC_CALIBRATION_OUTPUT_ENABLE (   __HANDLE__)    ((__HANDLE__)->Instance->CR |= (RTC_CR_COE))

Enable the RTC calibration output.

Parameters
__HANDLE__specifies the RTC handle.
Return values
None

◆ __HAL_RTC_CLOCKREF_DETECTION_DISABLE

#define __HAL_RTC_CLOCKREF_DETECTION_DISABLE (   __HANDLE__)    ((__HANDLE__)->Instance->CR &= ~(RTC_CR_REFCKON))

Disable the clock reference detection.

Parameters
__HANDLE__specifies the RTC handle.
Return values
None

◆ __HAL_RTC_CLOCKREF_DETECTION_ENABLE

#define __HAL_RTC_CLOCKREF_DETECTION_ENABLE (   __HANDLE__)    ((__HANDLE__)->Instance->CR |= (RTC_CR_REFCKON))

Enable the clock reference detection.

Parameters
__HANDLE__specifies the RTC handle.
Return values
None

◆ __HAL_RTC_INTERNAL_TIMESTAMP_CLEAR_FLAG

#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.

Parameters
__HANDLE__specifies the RTC handle.
__FLAG__specifies the RTC Internal Time Stamp Flag source to clear. This parameter can be:
  • RTC_FLAG_ITSF
Note
This flag must be cleared together with TSF flag.
Return values
None

◆ __HAL_RTC_INTERNAL_TIMESTAMP_DISABLE

#define __HAL_RTC_INTERNAL_TIMESTAMP_DISABLE (   __HANDLE__)    ((__HANDLE__)->Instance->CR &= ~(RTC_CR_ITSE))

Disable the RTC internal TimeStamp peripheral.

Parameters
__HANDLE__specifies the RTC handle.
Return values
None

◆ __HAL_RTC_INTERNAL_TIMESTAMP_ENABLE

#define __HAL_RTC_INTERNAL_TIMESTAMP_ENABLE (   __HANDLE__)    ((__HANDLE__)->Instance->CR |= (RTC_CR_ITSE))

Enable the RTC internal TimeStamp peripheral.

Parameters
__HANDLE__specifies the RTC handle.
Return values
None

◆ __HAL_RTC_INTERNAL_TIMESTAMP_GET_FLAG

#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.

Parameters
__HANDLE__specifies the RTC handle.
__FLAG__specifies the RTC Internal Time Stamp Flag is pending or not. This parameter can be:
  • RTC_FLAG_ITSF
Return values
Flagstatus

◆ __HAL_RTC_SHIFT_GET_FLAG

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

Get the selected RTC shift operation's flag status.

Parameters
__HANDLE__specifies the RTC handle.
__FLAG__specifies the RTC shift operation Flag is pending or not. This parameter can be:
  • RTC_FLAG_SHPF
Return values
Flagstatus

◆ __HAL_RTC_TAMPER1_DISABLE

#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

◆ __HAL_RTC_TAMPER1_ENABLE

#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

◆ __HAL_RTC_TAMPER2_DISABLE

#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

◆ __HAL_RTC_TAMPER2_ENABLE

#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

◆ __HAL_RTC_TAMPER3_DISABLE

#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

◆ __HAL_RTC_TAMPER3_ENABLE

#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

◆ __HAL_RTC_TAMPER_CLEAR_FLAG

#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

◆ __HAL_RTC_TAMPER_DISABLE_IT

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

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

◆ __HAL_RTC_TAMPER_ENABLE_IT

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

Enable the RTC 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

◆ __HAL_RTC_TAMPER_GET_FLAG

#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
Flagstatus

◆ __HAL_RTC_TAMPER_GET_IT

#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_FLAG_TAMP1F: Tamper1 interrupt flag
  • RTC_FLAG_TAMP2F: Tamper2 interrupt flag
  • RTC_FLAG_TAMP3F: Tamper3 interrupt flag
Return values
Flagstatus

◆ __HAL_RTC_TAMPER_GET_IT_SOURCE

#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
Flagstatus

◆ __HAL_RTC_TAMPER_GET_PRCHRG_DURATION

#define __HAL_RTC_TAMPER_GET_PRCHRG_DURATION (   __HANDLE__)    ((uint32_t)(((__HANDLE__)->Instance->TAMPCR) & (RTC_TAMPERPRECHARGEDURATION_MASK)))

Get the pull-up resistors precharge duration.

Parameters
__HANDLE__specifies the RTC handle.
Return values
Numberof consecutive samples This value can be:
  • RTC_TAMPERPRECHARGEDURATION_1RTCCLK
  • RTC_TAMPERPRECHARGEDURATION_2RTCCLK
  • RTC_TAMPERPRECHARGEDURATION_4RTCCLK
  • RTC_TAMPERPRECHARGEDURATION_8RTCCLK

◆ __HAL_RTC_TAMPER_GET_PULLUP_STATUS

#define __HAL_RTC_TAMPER_GET_PULLUP_STATUS (   __HANDLE__)    ((uint32_t)(((__HANDLE__)->Instance->TAMPCR) & (RTC_TAMPER_PULLUP_MASK)))

Get the pull-up resistors status.

Parameters
__HANDLE__specifies the RTC handle.
Return values
Pull-upresistors status This value can be:
  • RTC_TAMPER_PULLUP_ENABLE
  • RTC_TAMPER_PULLUP_DISABLE

◆ __HAL_RTC_TAMPER_GET_SAMPLES_COUNT

#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.

Parameters
__HANDLE__specifies the RTC handle.
Return values
Numberof consecutive samples This value can be:
  • RTC_TAMPERFILTER_DISABLE
  • RTC_TAMPERFILTER_2SAMPLE
  • RTC_TAMPERFILTER_4SAMPLE
  • RTC_TAMPERFILTER_8SAMPLE

◆ __HAL_RTC_TAMPER_GET_SAMPLING_FREQ

#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.

Parameters
__HANDLE__specifies the RTC handle.
Return values
Samplingfrequency This value can be:
  • RTC_TAMPERSAMPLINGFREQ_RTCCLK_DIV32768
  • RTC_TAMPERSAMPLINGFREQ_RTCCLK_DIV16384
  • RTC_TAMPERSAMPLINGFREQ_RTCCLK_DIV8192
  • RTC_TAMPERSAMPLINGFREQ_RTCCLK_DIV4096
  • RTC_TAMPERSAMPLINGFREQ_RTCCLK_DIV2048
  • RTC_TAMPERSAMPLINGFREQ_RTCCLK_DIV512
  • RTC_TAMPERSAMPLINGFREQ_RTCCLK_DIV256

◆ __HAL_RTC_TAMPER_TIMESTAMP_EXTI_CLEAR_FLAG

#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.

Return values
None

◆ __HAL_RTC_TAMPER_TIMESTAMP_EXTI_DISABLE_EVENT

#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.

Return values
None

◆ __HAL_RTC_TAMPER_TIMESTAMP_EXTI_DISABLE_FALLING_EDGE

#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.

Return values
None

◆ __HAL_RTC_TAMPER_TIMESTAMP_EXTI_DISABLE_IT

#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.

Return values
None

◆ __HAL_RTC_TAMPER_TIMESTAMP_EXTI_DISABLE_RISING_EDGE

#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.

Return values
None

◆ __HAL_RTC_TAMPER_TIMESTAMP_EXTI_DISABLE_RISING_FALLING_EDGE

#define __HAL_RTC_TAMPER_TIMESTAMP_EXTI_DISABLE_RISING_FALLING_EDGE ( )
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

◆ __HAL_RTC_TAMPER_TIMESTAMP_EXTI_ENABLE_EVENT

#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.

Return values
None

◆ __HAL_RTC_TAMPER_TIMESTAMP_EXTI_ENABLE_FALLING_EDGE

#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.

Return values
None

◆ __HAL_RTC_TAMPER_TIMESTAMP_EXTI_ENABLE_IT

#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.

Return values
None

◆ __HAL_RTC_TAMPER_TIMESTAMP_EXTI_ENABLE_RISING_EDGE

#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.

Return values
None

◆ __HAL_RTC_TAMPER_TIMESTAMP_EXTI_ENABLE_RISING_FALLING_EDGE

#define __HAL_RTC_TAMPER_TIMESTAMP_EXTI_ENABLE_RISING_FALLING_EDGE ( )
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

◆ __HAL_RTC_TAMPER_TIMESTAMP_EXTI_GENERATE_SWIT

#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.

Return values
None

◆ __HAL_RTC_TAMPER_TIMESTAMP_EXTI_GET_FLAG

#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.

Return values
LineStatus

◆ __HAL_RTC_TAMPTS_DISABLE

#define __HAL_RTC_TAMPTS_DISABLE (   __HANDLE__)    ((__HANDLE__)->Instance->TAMPCR &= ~(RTC_TIMESTAMPONTAMPERDETECTION_MASK))

Disable the RTC TimeStamp on Tamper detection.

Parameters
__HANDLE__specifies the RTC handle.
Return values
None

◆ __HAL_RTC_TAMPTS_ENABLE

#define __HAL_RTC_TAMPTS_ENABLE (   __HANDLE__)    ((__HANDLE__)->Instance->TAMPCR |= (RTC_TIMESTAMPONTAMPERDETECTION_MASK))

Enable the RTC TimeStamp on Tamper detection.

Parameters
__HANDLE__specifies the RTC handle.
Return values
None

◆ __HAL_RTC_TAMPTS_GET_STATUS

#define __HAL_RTC_TAMPTS_GET_STATUS (   __HANDLE__)    ((__HANDLE__)->Instance->TAMPCR &= RTC_TIMESTAMPONTAMPERDETECTION_MASK)

Get activation status of the RTC TimeStamp on Tamper detection.

Parameters
__HANDLE__specifies the RTC handle.
Return values
Activationstatus of TimeStamp on Tamper detection This value can be:
  • RTC_TIMESTAMPONTAMPERDETECTION_ENABLE
  • RTC_TIMESTAMPONTAMPERDETECTION_DISABLE

◆ __HAL_RTC_TIMESTAMP_CLEAR_FLAG

#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.

Parameters
__HANDLE__specifies the RTC handle.
__FLAG__specifies the RTC Alarm Flag sources to clear. This parameter can be:
  • RTC_FLAG_TSF
  • RTC_FLAG_TSOVF
Return values
None

◆ __HAL_RTC_TIMESTAMP_DISABLE

#define __HAL_RTC_TIMESTAMP_DISABLE (   __HANDLE__)    ((__HANDLE__)->Instance->CR &= ~(RTC_CR_TSE))

Disable the RTC TimeStamp peripheral.

Parameters
__HANDLE__specifies the RTC handle.
Return values
None

◆ __HAL_RTC_TIMESTAMP_DISABLE_IT

#define __HAL_RTC_TIMESTAMP_DISABLE_IT (   __HANDLE__,
  __INTERRUPT__ 
)    ((__HANDLE__)->Instance->CR &= ~(__INTERRUPT__))

Disable the RTC TimeStamp interrupt.

Parameters
__HANDLE__specifies the RTC handle.
__INTERRUPT__specifies the RTC TimeStamp interrupt source to be disabled. This parameter can be:
Return values
None

◆ __HAL_RTC_TIMESTAMP_ENABLE

#define __HAL_RTC_TIMESTAMP_ENABLE (   __HANDLE__)    ((__HANDLE__)->Instance->CR |= (RTC_CR_TSE))

Enable the RTC TimeStamp peripheral.

Parameters
__HANDLE__specifies the RTC handle.
Return values
None

◆ __HAL_RTC_TIMESTAMP_ENABLE_IT

#define __HAL_RTC_TIMESTAMP_ENABLE_IT (   __HANDLE__,
  __INTERRUPT__ 
)    ((__HANDLE__)->Instance->CR |= (__INTERRUPT__))

Enable the RTC TimeStamp interrupt.

Parameters
__HANDLE__specifies the RTC handle.
__INTERRUPT__specifies the RTC TimeStamp interrupt source to be enabled. This parameter can be:
Return values
None

◆ __HAL_RTC_TIMESTAMP_GET_FLAG

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

Get the selected RTC TimeStamp's flag status.

Parameters
__HANDLE__specifies the RTC handle.
__FLAG__specifies the RTC TimeStamp Flag is pending or not. This parameter can be:
  • RTC_FLAG_TSF
  • RTC_FLAG_TSOVF
Return values
Flagstatus

◆ __HAL_RTC_TIMESTAMP_GET_IT

#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.

Parameters
__HANDLE__specifies the RTC handle.
__INTERRUPT__specifies the RTC TimeStamp interrupt source to check. This parameter can be:
Return values
None

◆ __HAL_RTC_TIMESTAMP_GET_IT_SOURCE

#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.

Parameters
__HANDLE__specifies the RTC handle.
__INTERRUPT__specifies the RTC Time Stamp interrupt source to check. This parameter can be:
Return values
None

◆ __HAL_RTC_WAKEUPTIMER_CLEAR_FLAG

#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.

Parameters
__HANDLE__specifies the RTC handle.
__FLAG__specifies the RTC WakeUpTimer Flag to clear. This parameter can be:
  • RTC_FLAG_WUTF
Return values
None

◆ __HAL_RTC_WAKEUPTIMER_DISABLE

#define __HAL_RTC_WAKEUPTIMER_DISABLE (   __HANDLE__)    ((__HANDLE__)->Instance->CR &= ~(RTC_CR_WUTE))

Disable the RTC WakeUp Timer peripheral.

Parameters
__HANDLE__specifies the RTC handle.
Return values
None

◆ __HAL_RTC_WAKEUPTIMER_DISABLE_IT

#define __HAL_RTC_WAKEUPTIMER_DISABLE_IT (   __HANDLE__,
  __INTERRUPT__ 
)    ((__HANDLE__)->Instance->CR &= ~(__INTERRUPT__))

Disable the RTC WakeUpTimer interrupt.

Parameters
__HANDLE__specifies the RTC handle.
__INTERRUPT__specifies the RTC WakeUpTimer interrupt sources to be disabled. This parameter can be:
Return values
None

◆ __HAL_RTC_WAKEUPTIMER_ENABLE

#define __HAL_RTC_WAKEUPTIMER_ENABLE (   __HANDLE__)    ((__HANDLE__)->Instance->CR |= (RTC_CR_WUTE))

Enable the RTC WakeUp Timer peripheral.

Parameters
__HANDLE__specifies the RTC handle.
Return values
None

◆ __HAL_RTC_WAKEUPTIMER_ENABLE_IT

#define __HAL_RTC_WAKEUPTIMER_ENABLE_IT (   __HANDLE__,
  __INTERRUPT__ 
)    ((__HANDLE__)->Instance->CR |= (__INTERRUPT__))

Enable the RTC WakeUpTimer interrupt.

Parameters
__HANDLE__specifies the RTC handle.
__INTERRUPT__specifies the RTC WakeUpTimer interrupt sources to be enabled. This parameter can be:
Return values
None

◆ __HAL_RTC_WAKEUPTIMER_EXTI_CLEAR_FLAG

#define __HAL_RTC_WAKEUPTIMER_EXTI_CLEAR_FLAG ( )    (EXTI->PR1 = RTC_EXTI_LINE_WAKEUPTIMER_EVENT)

Clear the RTC WakeUp Timer associated Exti line flag.

Return values
None

◆ __HAL_RTC_WAKEUPTIMER_EXTI_DISABLE_EVENT

#define __HAL_RTC_WAKEUPTIMER_EXTI_DISABLE_EVENT ( )    (EXTI->EMR1 &= ~(RTC_EXTI_LINE_WAKEUPTIMER_EVENT))

Disable event on the RTC WakeUp Timer associated Exti line.

Return values
None

◆ __HAL_RTC_WAKEUPTIMER_EXTI_DISABLE_FALLING_EDGE

#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.

Return values
None

◆ __HAL_RTC_WAKEUPTIMER_EXTI_DISABLE_IT

#define __HAL_RTC_WAKEUPTIMER_EXTI_DISABLE_IT ( )    (EXTI->IMR1 &= ~(RTC_EXTI_LINE_WAKEUPTIMER_EVENT))

Disable interrupt on the RTC WakeUp Timer associated Exti line.

Return values
None

◆ __HAL_RTC_WAKEUPTIMER_EXTI_DISABLE_RISING_EDGE

#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.

Return values
None

◆ __HAL_RTC_WAKEUPTIMER_EXTI_DISABLE_RISING_FALLING_EDGE

#define __HAL_RTC_WAKEUPTIMER_EXTI_DISABLE_RISING_FALLING_EDGE ( )
Value:
do { \
__HAL_RTC_WAKEUPTIMER_EXTI_DISABLE_RISING_EDGE(); \
__HAL_RTC_WAKEUPTIMER_EXTI_DISABLE_FALLING_EDGE(); \
} while(0)

Disable rising & falling edge trigger on the RTC WakeUp Timer associated Exti line. This parameter can be:

Return values
None

◆ __HAL_RTC_WAKEUPTIMER_EXTI_ENABLE_EVENT

#define __HAL_RTC_WAKEUPTIMER_EXTI_ENABLE_EVENT ( )    (EXTI->EMR1 |= RTC_EXTI_LINE_WAKEUPTIMER_EVENT)

Enable event on the RTC WakeUp Timer associated Exti line.

Return values
None

◆ __HAL_RTC_WAKEUPTIMER_EXTI_ENABLE_FALLING_EDGE

#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.

Return values
None

◆ __HAL_RTC_WAKEUPTIMER_EXTI_ENABLE_IT

#define __HAL_RTC_WAKEUPTIMER_EXTI_ENABLE_IT ( )    (EXTI->IMR1 |= RTC_EXTI_LINE_WAKEUPTIMER_EVENT)

Enable interrupt on the RTC WakeUp Timer associated Exti line.

Return values
None

◆ __HAL_RTC_WAKEUPTIMER_EXTI_ENABLE_RISING_EDGE

#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.

Return values
None

◆ __HAL_RTC_WAKEUPTIMER_EXTI_ENABLE_RISING_FALLING_EDGE

#define __HAL_RTC_WAKEUPTIMER_EXTI_ENABLE_RISING_FALLING_EDGE ( )
Value:
do { \
__HAL_RTC_WAKEUPTIMER_EXTI_ENABLE_RISING_EDGE(); \
__HAL_RTC_WAKEUPTIMER_EXTI_ENABLE_FALLING_EDGE(); \
} while(0)

Enable rising & falling edge trigger on the RTC WakeUp Timer associated Exti line.

Return values
None

◆ __HAL_RTC_WAKEUPTIMER_EXTI_GENERATE_SWIT

#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.

Return values
None.

◆ __HAL_RTC_WAKEUPTIMER_EXTI_GET_FLAG

#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.

Return values
LineStatus.

◆ __HAL_RTC_WAKEUPTIMER_EXTID3_CLEAR_FLAG

#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.

Return values
None.

◆ __HAL_RTC_WAKEUPTIMER_EXTID3_DISABLE_EVENT

#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.

Return values
None

◆ __HAL_RTC_WAKEUPTIMER_EXTID3_ENABLE_EVENT

#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.

Return values
None

◆ __HAL_RTC_WAKEUPTIMER_EXTID3_GET_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.

Return values
LineStatus

◆ __HAL_RTC_WAKEUPTIMER_GET_FLAG

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

Get the selected RTC WakeUpTimer's flag status.

Parameters
__HANDLE__specifies the RTC handle.
__FLAG__specifies the RTC WakeUpTimer Flag sources to check. This parameter can be:
  • RTC_FLAG_WUTF
  • RTC_FLAG_WUTWF
Return values
Flagstatus

◆ __HAL_RTC_WAKEUPTIMER_GET_IT

#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.

Parameters
__HANDLE__specifies the RTC handle.
__INTERRUPT__specifies the RTC WakeUpTimer interrupt sources to check. This parameter can be:
  • RTC_FLAG_WUTF WakeUpTimer interrupt flag
Return values
None

◆ __HAL_RTC_WAKEUPTIMER_GET_IT_SOURCE

#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.

Parameters
__HANDLE__specifies the RTC handle.
__INTERRUPT__specifies the RTC Wake Up timer interrupt sources to check. This parameter can be:
Return values
None