STM32F103xB HAL User Manual
|
RTC Tamper functions. More...
Functions | |
HAL_StatusTypeDef | HAL_RTCEx_SetTamper (RTC_HandleTypeDef *hrtc, RTC_TamperTypeDef *sTamper) |
Sets Tamper. | |
HAL_StatusTypeDef | HAL_RTCEx_SetTamper_IT (RTC_HandleTypeDef *hrtc, RTC_TamperTypeDef *sTamper) |
Sets Tamper with interrupt. | |
HAL_StatusTypeDef | HAL_RTCEx_DeactivateTamper (RTC_HandleTypeDef *hrtc, uint32_t Tamper) |
Deactivates Tamper. | |
void | HAL_RTCEx_TamperIRQHandler (RTC_HandleTypeDef *hrtc) |
This function handles Tamper interrupt request. | |
__weak void | HAL_RTCEx_Tamper1EventCallback (RTC_HandleTypeDef *hrtc) |
Tamper 1 callback. | |
HAL_StatusTypeDef | HAL_RTCEx_PollForTamper1Event (RTC_HandleTypeDef *hrtc, uint32_t Timeout) |
This function handles Tamper1 Polling. |
RTC Tamper functions.
=============================================================================== ##### RTC Tamper functions ##### =============================================================================== [..] This section provides functions allowing to configure Tamper feature
HAL_StatusTypeDef HAL_RTCEx_DeactivateTamper | ( | RTC_HandleTypeDef * | hrtc, |
uint32_t | Tamper | ||
) |
Deactivates Tamper.
hrtc,: | pointer to a RTC_HandleTypeDef structure that contains the configuration information for RTC. |
Tamper,: | Selected tamper pin. This parameter can be a value of Tamper Pins Definitions |
HAL | status |
Definition at line 175 of file stm32f1xx_hal_rtc_ex.c.
References __HAL_RTC_TAMPER_CLEAR_FLAG, __HAL_RTC_TAMPER_DISABLE_IT, assert_param, HAL_RTC_STATE_BUSY, HAL_RTC_STATE_READY, IS_RTC_TAMPER, RTC_FLAG_TAMP1F, RTC_IT_TAMP1, and __RTC_HandleTypeDef::State.
HAL_StatusTypeDef HAL_RTCEx_PollForTamper1Event | ( | RTC_HandleTypeDef * | hrtc, |
uint32_t | Timeout | ||
) |
This function handles Tamper1 Polling.
hrtc,: | pointer to a RTC_HandleTypeDef structure that contains the configuration information for RTC. |
Timeout,: | Timeout duration |
HAL | status |
Definition at line 263 of file stm32f1xx_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_SetTamper | ( | RTC_HandleTypeDef * | hrtc, |
RTC_TamperTypeDef * | sTamper | ||
) |
Sets Tamper.
hrtc,: | pointer to a RTC_HandleTypeDef structure that contains the configuration information for RTC. |
sTamper,: | Pointer to Tamper Structure. |
HAL | status |
Definition at line 81 of file stm32f1xx_hal_rtc_ex.c.
References assert_param, HAL_RTC_STATE_BUSY, HAL_RTC_STATE_ERROR, HAL_RTC_STATE_READY, IS_RTC_TAMPER, IS_RTC_TAMPER_TRIGGER, __RTC_HandleTypeDef::State, RTC_TamperTypeDef::Tamper, and RTC_TamperTypeDef::Trigger.
HAL_StatusTypeDef HAL_RTCEx_SetTamper_IT | ( | RTC_HandleTypeDef * | hrtc, |
RTC_TamperTypeDef * | sTamper | ||
) |
Sets Tamper with interrupt.
hrtc,: | pointer to a RTC_HandleTypeDef structure that contains the configuration information for RTC. |
sTamper,: | Pointer to RTC Tamper. |
HAL | status |
Definition at line 127 of file stm32f1xx_hal_rtc_ex.c.
References __HAL_RTC_TAMPER_ENABLE_IT, assert_param, HAL_RTC_STATE_BUSY, HAL_RTC_STATE_ERROR, HAL_RTC_STATE_READY, IS_RTC_TAMPER, IS_RTC_TAMPER_TRIGGER, RTC_IT_TAMP1, __RTC_HandleTypeDef::State, RTC_TamperTypeDef::Tamper, and RTC_TamperTypeDef::Trigger.
void HAL_RTCEx_Tamper1EventCallback | ( | RTC_HandleTypeDef * | hrtc | ) |
Tamper 1 callback.
hrtc,: | pointer to a RTC_HandleTypeDef structure that contains the configuration information for RTC. |
None |
Definition at line 247 of file stm32f1xx_hal_rtc_ex.c.
Referenced by HAL_RTC_Init(), HAL_RTC_UnRegisterCallback(), and HAL_RTCEx_TamperIRQHandler().
void HAL_RTCEx_TamperIRQHandler | ( | RTC_HandleTypeDef * | hrtc | ) |
This function handles Tamper interrupt request.
hrtc,: | pointer to a RTC_HandleTypeDef structure that contains the configuration information for RTC. |
None |
Definition at line 217 of file stm32f1xx_hal_rtc_ex.c.
References __HAL_RTC_TAMPER_CLEAR_FLAG, __HAL_RTC_TAMPER_GET_FLAG, __HAL_RTC_TAMPER_GET_IT_SOURCE, HAL_RTC_STATE_READY, HAL_RTCEx_Tamper1EventCallback(), RTC_FLAG_TAMP1F, RTC_IT_TAMP1, __RTC_HandleTypeDef::State, and __RTC_HandleTypeDef::Tamper1EventCallback.