RTEMS 6.1-rc2
|
Macros | |
#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(__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_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 __HAL_RTC_CALIBRATION_OUTPUT_DISABLE | ( | __HANDLE__ | ) | ((__HANDLE__)->Instance->CR &= ~(RTC_CR_COE)) |
Disable the calibration output.
__HANDLE__ | specifies the RTC handle. |
None |
#define __HAL_RTC_CALIBRATION_OUTPUT_ENABLE | ( | __HANDLE__ | ) | ((__HANDLE__)->Instance->CR |= (RTC_CR_COE)) |
Enable the RTC calibration output.
__HANDLE__ | specifies the RTC handle. |
None |
#define __HAL_RTC_CLOCKREF_DETECTION_DISABLE | ( | __HANDLE__ | ) | ((__HANDLE__)->Instance->CR &= ~(RTC_CR_REFCKON)) |
Disable the clock reference detection.
__HANDLE__ | specifies the RTC handle. |
None |
#define __HAL_RTC_CLOCKREF_DETECTION_ENABLE | ( | __HANDLE__ | ) | ((__HANDLE__)->Instance->CR |= (RTC_CR_REFCKON)) |
Enable the clock reference detection.
__HANDLE__ | specifies the RTC handle. |
None |
#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.
__HANDLE__ | specifies the RTC handle. |
__FLAG__ | specifies the RTC Internal Time Stamp Flag source to clear. This parameter can be:
|
None |
#define __HAL_RTC_INTERNAL_TIMESTAMP_DISABLE | ( | __HANDLE__ | ) | ((__HANDLE__)->Instance->CR &= ~(RTC_CR_ITSE)) |
Disable the RTC internal TimeStamp peripheral.
__HANDLE__ | specifies the RTC handle. |
None |
#define __HAL_RTC_INTERNAL_TIMESTAMP_ENABLE | ( | __HANDLE__ | ) | ((__HANDLE__)->Instance->CR |= (RTC_CR_ITSE)) |
Enable the RTC internal TimeStamp peripheral.
__HANDLE__ | specifies the RTC handle. |
None |
#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.
__HANDLE__ | specifies the RTC handle. |
__FLAG__ | specifies the RTC Internal Time Stamp Flag is pending or not. This parameter can be:
|
Flag | status |
#define __HAL_RTC_SHIFT_GET_FLAG | ( | __HANDLE__, | |
__FLAG__ | |||
) | (((((__HANDLE__)->Instance->ISR) & (__FLAG__)) != 0U) ? 1U : 0U) |
Get the selected RTC shift operation's flag status.
__HANDLE__ | specifies the RTC handle. |
__FLAG__ | specifies the RTC shift operation Flag is pending or not. This parameter can be:
|
Flag | status |
#define __HAL_RTC_TAMPER1_DISABLE | ( | __HANDLE__ | ) | ((__HANDLE__)->Instance->TAMPCR &= ~(RTC_TAMPCR_TAMP1E)) |
Disable the RTC Tamper1 input detection.
__HANDLE__ | specifies the RTC handle. |
None |
#define __HAL_RTC_TAMPER1_ENABLE | ( | __HANDLE__ | ) | ((__HANDLE__)->Instance->TAMPCR |= (RTC_TAMPCR_TAMP1E)) |
Enable the RTC Tamper1 input detection.
__HANDLE__ | specifies the RTC handle. |
None |
#define __HAL_RTC_TAMPER2_DISABLE | ( | __HANDLE__ | ) | ((__HANDLE__)->Instance->TAMPCR &= ~(RTC_TAMPCR_TAMP2E)) |
Disable the RTC Tamper2 input detection.
__HANDLE__ | specifies the RTC handle. |
None |
#define __HAL_RTC_TAMPER2_ENABLE | ( | __HANDLE__ | ) | ((__HANDLE__)->Instance->TAMPCR |= (RTC_TAMPCR_TAMP2E)) |
Enable the RTC Tamper2 input detection.
__HANDLE__ | specifies the RTC handle. |
None |
#define __HAL_RTC_TAMPER3_DISABLE | ( | __HANDLE__ | ) | ((__HANDLE__)->Instance->TAMPCR &= ~(RTC_TAMPCR_TAMP3E)) |
Disable the RTC Tamper3 input detection.
__HANDLE__ | specifies the RTC handle. |
None |
#define __HAL_RTC_TAMPER3_ENABLE | ( | __HANDLE__ | ) | ((__HANDLE__)->Instance->TAMPCR |= (RTC_TAMPCR_TAMP3E)) |
Enable the RTC Tamper3 input detection.
__HANDLE__ | specifies the RTC handle. |
None |
#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 |
#define __HAL_RTC_TAMPER_DISABLE_IT | ( | __HANDLE__, | |
__INTERRUPT__ | |||
) | ((__HANDLE__)->Instance->TAMPCR &= ~(__INTERRUPT__)) |
Disable the RTC 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 |
#define __HAL_RTC_TAMPER_ENABLE_IT | ( | __HANDLE__, | |
__INTERRUPT__ | |||
) | ((__HANDLE__)->Instance->TAMPCR |= (__INTERRUPT__)) |
Enable the RTC 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 |
#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:
|
Flag | status |
#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:
|
Flag | status |
#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:
|
Flag | status |
#define __HAL_RTC_TAMPER_GET_PRCHRG_DURATION | ( | __HANDLE__ | ) | ((uint32_t)(((__HANDLE__)->Instance->TAMPCR) & (RTC_TAMPERPRECHARGEDURATION_MASK))) |
Get the pull-up resistors precharge duration.
__HANDLE__ | specifies the RTC handle. |
Number | of consecutive samples This value can be:
|
#define __HAL_RTC_TAMPER_GET_PULLUP_STATUS | ( | __HANDLE__ | ) | ((uint32_t)(((__HANDLE__)->Instance->TAMPCR) & (RTC_TAMPER_PULLUP_MASK))) |
Get the pull-up resistors status.
__HANDLE__ | specifies the RTC handle. |
Pull-up | resistors status This value can be:
|
#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.
__HANDLE__ | specifies the RTC handle. |
Number | of consecutive samples This value can be:
|
#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.
__HANDLE__ | specifies the RTC handle. |
Sampling | frequency This value can be:
|
#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 |
#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 |
#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 |
#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 |
#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 |
#define __HAL_RTC_TAMPER_TIMESTAMP_EXTI_DISABLE_RISING_FALLING_EDGE | ( | ) |
Disable rising & falling edge trigger on the RTC Tamper and Timestamp associated Exti line.
None |
#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 |
#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 |
#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 |
#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 |
#define __HAL_RTC_TAMPER_TIMESTAMP_EXTI_ENABLE_RISING_FALLING_EDGE | ( | ) |
Enable rising & falling edge trigger on the RTC Tamper and Timestamp associated Exti line.
None |
#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 |
#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 |
#define __HAL_RTC_TAMPTS_DISABLE | ( | __HANDLE__ | ) | ((__HANDLE__)->Instance->TAMPCR &= ~(RTC_TIMESTAMPONTAMPERDETECTION_MASK)) |
Disable the RTC TimeStamp on Tamper detection.
__HANDLE__ | specifies the RTC handle. |
None |
#define __HAL_RTC_TAMPTS_ENABLE | ( | __HANDLE__ | ) | ((__HANDLE__)->Instance->TAMPCR |= (RTC_TIMESTAMPONTAMPERDETECTION_MASK)) |
Enable the RTC TimeStamp on Tamper detection.
__HANDLE__ | specifies the RTC handle. |
None |
#define __HAL_RTC_TAMPTS_GET_STATUS | ( | __HANDLE__ | ) | ((__HANDLE__)->Instance->TAMPCR &= RTC_TIMESTAMPONTAMPERDETECTION_MASK) |
Get activation status of the RTC TimeStamp on Tamper detection.
__HANDLE__ | specifies the RTC handle. |
Activation | status of TimeStamp on Tamper detection This value can be:
|
#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.
__HANDLE__ | specifies the RTC handle. |
__FLAG__ | specifies the RTC Alarm Flag sources to clear. This parameter can be:
|
None |
#define __HAL_RTC_TIMESTAMP_DISABLE | ( | __HANDLE__ | ) | ((__HANDLE__)->Instance->CR &= ~(RTC_CR_TSE)) |
Disable the RTC TimeStamp peripheral.
__HANDLE__ | specifies the RTC handle. |
None |
#define __HAL_RTC_TIMESTAMP_DISABLE_IT | ( | __HANDLE__, | |
__INTERRUPT__ | |||
) | ((__HANDLE__)->Instance->CR &= ~(__INTERRUPT__)) |
Disable the RTC TimeStamp interrupt.
__HANDLE__ | specifies the RTC handle. |
__INTERRUPT__ | specifies the RTC TimeStamp interrupt source to be disabled. This parameter can be:
|
None |
#define __HAL_RTC_TIMESTAMP_ENABLE | ( | __HANDLE__ | ) | ((__HANDLE__)->Instance->CR |= (RTC_CR_TSE)) |
Enable the RTC TimeStamp peripheral.
__HANDLE__ | specifies the RTC handle. |
None |
#define __HAL_RTC_TIMESTAMP_ENABLE_IT | ( | __HANDLE__, | |
__INTERRUPT__ | |||
) | ((__HANDLE__)->Instance->CR |= (__INTERRUPT__)) |
Enable the RTC TimeStamp interrupt.
__HANDLE__ | specifies the RTC handle. |
__INTERRUPT__ | specifies the RTC TimeStamp interrupt source to be enabled. This parameter can be:
|
None |
#define __HAL_RTC_TIMESTAMP_GET_FLAG | ( | __HANDLE__, | |
__FLAG__ | |||
) | (((((__HANDLE__)->Instance->ISR) & (__FLAG__)) != 0U) ? 1U : 0U) |
Get the selected RTC TimeStamp's flag status.
__HANDLE__ | specifies the RTC handle. |
__FLAG__ | specifies the RTC TimeStamp Flag is pending or not. This parameter can be:
|
Flag | status |
#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.
__HANDLE__ | specifies the RTC handle. |
__INTERRUPT__ | specifies the RTC TimeStamp interrupt source to check. This parameter can be:
|
None |
#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.
__HANDLE__ | specifies the RTC handle. |
__INTERRUPT__ | specifies the RTC Time Stamp interrupt source to check. This parameter can be:
|
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 WakeUpTimer Flag to clear. This parameter can be:
|
None |
#define __HAL_RTC_WAKEUPTIMER_DISABLE | ( | __HANDLE__ | ) | ((__HANDLE__)->Instance->CR &= ~(RTC_CR_WUTE)) |
Disable the RTC WakeUp Timer peripheral.
__HANDLE__ | specifies the RTC handle. |
None |
#define __HAL_RTC_WAKEUPTIMER_DISABLE_IT | ( | __HANDLE__, | |
__INTERRUPT__ | |||
) | ((__HANDLE__)->Instance->CR &= ~(__INTERRUPT__)) |
Disable the RTC WakeUpTimer interrupt.
__HANDLE__ | specifies the RTC handle. |
__INTERRUPT__ | specifies the RTC WakeUpTimer interrupt sources to be disabled. This parameter can be:
|
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__, | |
__INTERRUPT__ | |||
) | ((__HANDLE__)->Instance->CR |= (__INTERRUPT__)) |
Enable the RTC WakeUpTimer interrupt.
__HANDLE__ | specifies the RTC handle. |
__INTERRUPT__ | specifies the RTC WakeUpTimer interrupt sources to be enabled. This parameter can be:
|
None |
#define __HAL_RTC_WAKEUPTIMER_EXTI_CLEAR_FLAG | ( | ) | (EXTI->PR1 = RTC_EXTI_LINE_WAKEUPTIMER_EVENT) |
Clear the RTC WakeUp Timer associated Exti line flag.
None |
#define __HAL_RTC_WAKEUPTIMER_EXTI_DISABLE_EVENT | ( | ) | (EXTI->EMR1 &= ~(RTC_EXTI_LINE_WAKEUPTIMER_EVENT)) |
Disable event on the RTC WakeUp Timer associated Exti line.
None |
#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.
None |
#define __HAL_RTC_WAKEUPTIMER_EXTI_DISABLE_IT | ( | ) | (EXTI->IMR1 &= ~(RTC_EXTI_LINE_WAKEUPTIMER_EVENT)) |
Disable interrupt on the RTC WakeUp Timer associated Exti line.
None |
#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.
None |
#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:
None |
#define __HAL_RTC_WAKEUPTIMER_EXTI_ENABLE_EVENT | ( | ) | (EXTI->EMR1 |= RTC_EXTI_LINE_WAKEUPTIMER_EVENT) |
Enable event on the RTC WakeUp Timer associated Exti line.
None |
#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.
None |
#define __HAL_RTC_WAKEUPTIMER_EXTI_ENABLE_IT | ( | ) | (EXTI->IMR1 |= RTC_EXTI_LINE_WAKEUPTIMER_EVENT) |
Enable interrupt on the RTC WakeUp Timer associated Exti line.
None |
#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.
None |
#define __HAL_RTC_WAKEUPTIMER_EXTI_ENABLE_RISING_FALLING_EDGE | ( | ) |
Enable rising & falling edge trigger on the RTC WakeUp Timer associated Exti line.
None |
#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.
None. |
#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.
Line | Status. |
#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.
None. |
#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.
None |
#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.
None |
#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.
Line | Status |
#define __HAL_RTC_WAKEUPTIMER_GET_FLAG | ( | __HANDLE__, | |
__FLAG__ | |||
) | (((((__HANDLE__)->Instance->ISR) & (__FLAG__)) != 0U) ? 1U : 0U) |
Get the selected RTC WakeUpTimer's flag status.
__HANDLE__ | specifies the RTC handle. |
__FLAG__ | specifies the RTC WakeUpTimer Flag sources to check. This parameter can be:
|
Flag | status |
#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.
__HANDLE__ | specifies the RTC handle. |
__INTERRUPT__ | specifies the RTC WakeUpTimer interrupt sources to check. This parameter can be:
|
None |
#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.
__HANDLE__ | specifies the RTC handle. |
__INTERRUPT__ | specifies the RTC Wake Up timer interrupt sources to check. This parameter can be:
|
None |