|
STM32L443xx HAL User Manual
|
Extended RTC Tamper functions. More...
Functions | |
| HAL_StatusTypeDef | HAL_RTCEx_SetTamper (RTC_HandleTypeDef *hrtc, RTC_TamperTypeDef *sTamper) |
| Set Tamper. | |
| HAL_StatusTypeDef | HAL_RTCEx_SetTamper_IT (RTC_HandleTypeDef *hrtc, RTC_TamperTypeDef *sTamper) |
| Set Tamper with interrupt. | |
| HAL_StatusTypeDef | HAL_RTCEx_DeactivateTamper (RTC_HandleTypeDef *hrtc, uint32_t Tamper) |
| Deactivate Tamper. | |
| HAL_StatusTypeDef | HAL_RTCEx_PollForTamper1Event (RTC_HandleTypeDef *hrtc, uint32_t Timeout) |
| Handle Tamper 1 Polling. | |
| HAL_StatusTypeDef | HAL_RTCEx_PollForTamper2Event (RTC_HandleTypeDef *hrtc, uint32_t Timeout) |
| Handle Tamper 2 Polling. | |
| HAL_StatusTypeDef | HAL_RTCEx_PollForTamper3Event (RTC_HandleTypeDef *hrtc, uint32_t Timeout) |
| Handle Tamper 3 Polling. | |
| __weak void | HAL_RTCEx_Tamper1EventCallback (RTC_HandleTypeDef *hrtc) |
| Tamper 1 callback. | |
| __weak void | HAL_RTCEx_Tamper2EventCallback (RTC_HandleTypeDef *hrtc) |
| Tamper 2 callback. | |
| __weak void | HAL_RTCEx_Tamper3EventCallback (RTC_HandleTypeDef *hrtc) |
| Tamper 3 callback. | |
Extended RTC Tamper functions.
==============================================================================
##### Tamper functions #####
==============================================================================
[..]
(+) Before calling any tamper or internal tamper function, you have to call first
HAL_RTC_Init() function.
(+) In that ine you can select to output tamper event on RTC pin.
[..]
(+) Enable the Tamper and configure the Tamper filter count, trigger Edge
or Level according to the Tamper filter (if equal to 0 Edge else Level)
value, sampling frequency, NoErase, MaskFlag, precharge or discharge and
Pull-UP, timestamp using the HAL_RTCEx_SetTamper() function.
You can configure Tamper with interrupt mode using HAL_RTCEx_SetTamper_IT() function.
(+) The default configuration of the Tamper erases the backup registers. To avoid
erase, enable the NoErase field on the TAMP_TAMPCR register.
[..]
(+) Enable Internal Tamper and configure it with interrupt, timestamp using
the HAL_RTCEx_SetInternalTamper() function.
| HAL_StatusTypeDef HAL_RTCEx_DeactivateTamper | ( | RTC_HandleTypeDef * | hrtc, |
| uint32_t | Tamper | ||
| ) |
Deactivate Tamper.
| hrtc | RTC handle |
| Tamper | Selected tamper pin. This parameter can be any combination of the following values:
|
| HAL | status |
Definition at line 2113 of file stm32l4xx_hal_rtc_ex.c.
References assert_param, HAL_RTC_STATE_BUSY, HAL_RTC_STATE_READY, __RTC_HandleTypeDef::Instance, IS_RTC_TAMPER, RTC_IT_TAMP, RTC_IT_TAMP1, RTC_IT_TAMP2, RTC_IT_TAMP3, and __RTC_HandleTypeDef::State.
| HAL_StatusTypeDef HAL_RTCEx_PollForTamper1Event | ( | RTC_HandleTypeDef * | hrtc, |
| uint32_t | Timeout | ||
| ) |
Handle Tamper 1 Polling.
| hrtc | RTC handle |
| Timeout | Timeout duration |
| HAL | status |
Definition at line 2162 of file stm32l4xx_hal_rtc_ex.c.
References __HAL_RTC_TAMPER_CLEAR_FLAG, __HAL_RTC_TAMPER_GET_FLAG, HAL_GetTick(), HAL_RTC_STATE_READY, HAL_RTC_STATE_TIMEOUT, RTC_FLAG_TAMP1F, and __RTC_HandleTypeDef::State.
| HAL_StatusTypeDef HAL_RTCEx_PollForTamper2Event | ( | RTC_HandleTypeDef * | hrtc, |
| uint32_t | Timeout | ||
| ) |
Handle Tamper 2 Polling.
| hrtc | RTC handle |
| Timeout | Timeout duration |
| HAL | status |
Definition at line 2195 of file stm32l4xx_hal_rtc_ex.c.
References __HAL_RTC_TAMPER_CLEAR_FLAG, __HAL_RTC_TAMPER_GET_FLAG, HAL_GetTick(), HAL_RTC_STATE_READY, HAL_RTC_STATE_TIMEOUT, RTC_FLAG_TAMP2F, and __RTC_HandleTypeDef::State.
| HAL_StatusTypeDef HAL_RTCEx_PollForTamper3Event | ( | RTC_HandleTypeDef * | hrtc, |
| uint32_t | Timeout | ||
| ) |
Handle Tamper 3 Polling.
| hrtc | RTC handle |
| Timeout | Timeout duration |
| HAL | status |
Definition at line 2228 of file stm32l4xx_hal_rtc_ex.c.
References __HAL_RTC_TAMPER_CLEAR_FLAG, __HAL_RTC_TAMPER_GET_FLAG, HAL_GetTick(), HAL_RTC_STATE_READY, HAL_RTC_STATE_TIMEOUT, RTC_FLAG_TAMP3F, and __RTC_HandleTypeDef::State.
| HAL_StatusTypeDef HAL_RTCEx_SetTamper | ( | RTC_HandleTypeDef * | hrtc, |
| RTC_TamperTypeDef * | sTamper | ||
| ) |
Set Tamper.
| hrtc | RTC handle |
| sTamper | Pointer to Tamper Structure. |
| HAL | status |
Definition at line 1820 of file stm32l4xx_hal_rtc_ex.c.
References assert_param, RTC_TamperTypeDef::Filter, HAL_RTC_STATE_BUSY, HAL_RTC_STATE_READY, __RTC_HandleTypeDef::Instance, IS_RTC_TAMPER, IS_RTC_TAMPER_ERASE_MODE, IS_RTC_TAMPER_FILTER, IS_RTC_TAMPER_MASKFLAG_STATE, IS_RTC_TAMPER_PRECHARGE_DURATION, IS_RTC_TAMPER_PULLUP_STATE, IS_RTC_TAMPER_SAMPLING_FREQ, IS_RTC_TAMPER_TIMESTAMPONTAMPER_DETECTION, IS_RTC_TAMPER_TRIGGER, RTC_TamperTypeDef::MaskFlag, RTC_TamperTypeDef::NoErase, RTC_TamperTypeDef::PrechargeDuration, RTC_TAMPER_ERASE_BACKUP_ENABLE, RTC_TAMPERMASK_FLAG_ENABLE, RTC_TAMPERTRIGGER_RISINGEDGE, RTC_TamperTypeDef::SamplingFrequency, __RTC_HandleTypeDef::State, RTC_TamperTypeDef::Tamper, RTC_TamperTypeDef::TamperPullUp, RTC_TamperTypeDef::TimeStampOnTamperDetection, and RTC_TamperTypeDef::Trigger.
| HAL_StatusTypeDef HAL_RTCEx_SetTamper_IT | ( | RTC_HandleTypeDef * | hrtc, |
| RTC_TamperTypeDef * | sTamper | ||
| ) |
Set Tamper with interrupt.
| hrtc | RTC handle |
| sTamper | Pointer to Tamper Structure. |
| HAL | status |
Definition at line 1984 of file stm32l4xx_hal_rtc_ex.c.
References __HAL_RTC_TAMPER_TIMESTAMP_EXTI_ENABLE_IT, __HAL_RTC_TAMPER_TIMESTAMP_EXTI_ENABLE_RISING_EDGE, assert_param, RTC_TamperTypeDef::Filter, HAL_RTC_STATE_BUSY, HAL_RTC_STATE_READY, __RTC_HandleTypeDef::Instance, RTC_TamperTypeDef::Interrupt, IS_RTC_TAMPER, IS_RTC_TAMPER_ERASE_MODE, IS_RTC_TAMPER_FILTER, IS_RTC_TAMPER_INTERRUPT, IS_RTC_TAMPER_MASKFLAG_STATE, IS_RTC_TAMPER_PRECHARGE_DURATION, IS_RTC_TAMPER_PULLUP_STATE, IS_RTC_TAMPER_SAMPLING_FREQ, IS_RTC_TAMPER_TIMESTAMPONTAMPER_DETECTION, IS_RTC_TAMPER_TRIGGER, RTC_TamperTypeDef::MaskFlag, RTC_TamperTypeDef::NoErase, RTC_TamperTypeDef::PrechargeDuration, RTC_TAMPER_ERASE_BACKUP_ENABLE, RTC_TAMPERMASK_FLAG_ENABLE, RTC_TAMPERTRIGGER_RISINGEDGE, RTC_TamperTypeDef::SamplingFrequency, __RTC_HandleTypeDef::State, RTC_TamperTypeDef::Tamper, RTC_TamperTypeDef::TamperPullUp, RTC_TamperTypeDef::TimeStampOnTamperDetection, and RTC_TamperTypeDef::Trigger.
| void HAL_RTCEx_Tamper1EventCallback | ( | RTC_HandleTypeDef * | hrtc | ) |
Tamper 1 callback.
| hrtc | RTC handle |
| None |
Definition at line 2263 of file stm32l4xx_hal_rtc_ex.c.
Referenced by HAL_RTC_Init(), HAL_RTC_UnRegisterCallback(), and HAL_RTCEx_TamperTimeStampIRQHandler().
| void HAL_RTCEx_Tamper2EventCallback | ( | RTC_HandleTypeDef * | hrtc | ) |
Tamper 2 callback.
| hrtc | RTC handle |
| None |
Definition at line 2279 of file stm32l4xx_hal_rtc_ex.c.
Referenced by HAL_RTC_Init(), HAL_RTC_UnRegisterCallback(), and HAL_RTCEx_TamperTimeStampIRQHandler().
| void HAL_RTCEx_Tamper3EventCallback | ( | RTC_HandleTypeDef * | hrtc | ) |
Tamper 3 callback.
| hrtc | RTC handle |
| None |
Definition at line 2295 of file stm32l4xx_hal_rtc_ex.c.
Referenced by HAL_RTC_Init(), HAL_RTC_UnRegisterCallback(), and HAL_RTCEx_TamperTimeStampIRQHandler().
1.7.6.1