STM32F4xx HAL Documentation
Hardware Abstraction Layer for STM32F4 familiy
Loading...
Searching...
No Matches

RTC Wakeup functions. More...

Collaboration diagram for RTC Wakeup functions:

Functions

HAL_StatusTypeDef HAL_RTCEx_SetWakeUpTimer (RTC_HandleTypeDef *hrtc, uint32_t WakeUpCounter, uint32_t WakeUpClock)
 Sets wakeup timer.
 
HAL_StatusTypeDef HAL_RTCEx_SetWakeUpTimer_IT (RTC_HandleTypeDef *hrtc, uint32_t WakeUpCounter, uint32_t WakeUpClock)
 Sets wakeup timer with interrupt.
 
HAL_StatusTypeDef HAL_RTCEx_DeactivateWakeUpTimer (RTC_HandleTypeDef *hrtc)
 Deactivates wakeup timer counter.
 
uint32_t HAL_RTCEx_GetWakeUpTimer (RTC_HandleTypeDef *hrtc)
 Gets wakeup timer counter.
 
void HAL_RTCEx_WakeUpTimerIRQHandler (RTC_HandleTypeDef *hrtc)
 Handles Wakeup Timer interrupt request.
 
void HAL_RTCEx_WakeUpTimerEventCallback (RTC_HandleTypeDef *hrtc)
 Wakeup Timer callback.
 
HAL_StatusTypeDef HAL_RTCEx_PollForWakeUpTimerEvent (RTC_HandleTypeDef *hrtc, uint32_t Timeout)
 Handles Wakeup Timer Polling.
 

Detailed Description

RTC Wakeup functions.

 ===============================================================================
                        ##### RTC Wakeup functions #####
 ===============================================================================

 [..] This section provides functions allowing to configure Wakeup feature

Function Documentation

◆ HAL_RTCEx_SetWakeUpTimer()

HAL_StatusTypeDef HAL_RTCEx_SetWakeUpTimer ( RTC_HandleTypeDef * hrtc,
uint32_t WakeUpCounter,
uint32_t WakeUpClock )

◆ HAL_RTCEx_SetWakeUpTimer_IT()

◆ HAL_RTCEx_DeactivateWakeUpTimer()

◆ HAL_RTCEx_GetWakeUpTimer()

uint32_t HAL_RTCEx_GetWakeUpTimer ( RTC_HandleTypeDef * hrtc)

#include <stm32f4xx_hal_rtc_ex.h>

Gets wakeup timer counter.

Parameters
hrtcpointer to a RTC_HandleTypeDef structure that contains the configuration information for RTC.
Return values
Countervalue

Definition at line 1117 of file stm32f4xx_hal_rtc_ex.c.

References RTC_HandleTypeDef::Instance.

◆ HAL_RTCEx_WakeUpTimerIRQHandler()

void HAL_RTCEx_WakeUpTimerIRQHandler ( RTC_HandleTypeDef * hrtc)

#include <stm32f4xx_hal_rtc_ex.h>

Handles Wakeup Timer interrupt request.

Note
Unlike alarm interrupt line (shared by Alarms A and B) or tamper interrupt line (shared by timestamp and tampers) wakeup timer interrupt line is exclusive to the wakeup timer. There is no need in this case to check on the interrupt enable status via __HAL_RTC_WAKEUPTIMER_GET_IT_SOURCE().
Parameters
hrtcpointer to a RTC_HandleTypeDef structure that contains the configuration information for RTC.
Return values
None

Definition at line 1134 of file stm32f4xx_hal_rtc_ex.c.

References __HAL_RTC_WAKEUPTIMER_CLEAR_FLAG, __HAL_RTC_WAKEUPTIMER_EXTI_CLEAR_FLAG, __HAL_RTC_WAKEUPTIMER_GET_FLAG, HAL_RTC_STATE_READY, HAL_RTCEx_WakeUpTimerEventCallback(), RTC_FLAG_WUTF, and RTC_HandleTypeDef::State.

Referenced by RTC_WKUP_IRQHandler().

◆ HAL_RTCEx_WakeUpTimerEventCallback()

__weak void HAL_RTCEx_WakeUpTimerEventCallback ( RTC_HandleTypeDef * hrtc)

#include <stm32f4xx_hal_rtc_ex.h>

Wakeup Timer callback.

Parameters
hrtcpointer to a RTC_HandleTypeDef structure that contains the configuration information for RTC.
Return values
None

Definition at line 1163 of file stm32f4xx_hal_rtc_ex.c.

References UNUSED.

Referenced by HAL_RTC_Init(), and HAL_RTCEx_WakeUpTimerIRQHandler().

◆ HAL_RTCEx_PollForWakeUpTimerEvent()

HAL_StatusTypeDef HAL_RTCEx_PollForWakeUpTimerEvent ( RTC_HandleTypeDef * hrtc,
uint32_t Timeout )

#include <stm32f4xx_hal_rtc_ex.h>

Handles Wakeup Timer Polling.

Parameters
hrtcpointer to a RTC_HandleTypeDef structure that contains the configuration information for RTC.
TimeoutTimeout duration
Return values
HALstatus

Definition at line 1180 of file stm32f4xx_hal_rtc_ex.c.

References __HAL_RTC_WAKEUPTIMER_CLEAR_FLAG, __HAL_RTC_WAKEUPTIMER_GET_FLAG, HAL_GetTick(), HAL_MAX_DELAY, HAL_OK, HAL_RTC_STATE_READY, HAL_RTC_STATE_TIMEOUT, HAL_TIMEOUT, RTC_FLAG_WUTF, and RTC_HandleTypeDef::State.