Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of TUKS-COURSE-TIMER by
RTC Alarm functions
[RTC Exported Functions]
RTC Alarm functions. More...
Functions | |
HAL_StatusTypeDef | HAL_RTC_SetAlarm (RTC_HandleTypeDef *hrtc, RTC_AlarmTypeDef *sAlarm, uint32_t Format) |
Set the specified RTC Alarm. | |
HAL_StatusTypeDef | HAL_RTC_SetAlarm_IT (RTC_HandleTypeDef *hrtc, RTC_AlarmTypeDef *sAlarm, uint32_t Format) |
Set the specified RTC Alarm with Interrupt. | |
HAL_StatusTypeDef | HAL_RTC_DeactivateAlarm (RTC_HandleTypeDef *hrtc, uint32_t Alarm) |
Deactivate the specified RTC Alarm. | |
HAL_StatusTypeDef | HAL_RTC_GetAlarm (RTC_HandleTypeDef *hrtc, RTC_AlarmTypeDef *sAlarm, uint32_t Alarm, uint32_t Format) |
Get the RTC Alarm value and masks. | |
void | HAL_RTC_AlarmIRQHandler (RTC_HandleTypeDef *hrtc) |
Handle Alarm interrupt request. | |
__weak void | HAL_RTC_AlarmAEventCallback (RTC_HandleTypeDef *hrtc) |
Alarm A callback. | |
HAL_StatusTypeDef | HAL_RTC_PollForAlarmAEvent (RTC_HandleTypeDef *hrtc, uint32_t Timeout) |
Handle AlarmA Polling request. |
Detailed Description
RTC Alarm functions.
=============================================================================== ##### RTC Alarm functions ##### =============================================================================== [..] This section provides functions allowing to configure Alarm feature
Function Documentation
__weak void HAL_RTC_AlarmAEventCallback | ( | RTC_HandleTypeDef * | hrtc ) |
Alarm A callback.
- Parameters:
-
hrtc,: RTC handle
- Return values:
-
None
Definition at line 1319 of file stm32l4xx_hal_rtc.c.
void HAL_RTC_AlarmIRQHandler | ( | RTC_HandleTypeDef * | hrtc ) |
Handle Alarm interrupt request.
- Parameters:
-
hrtc,: RTC handle
- Return values:
-
None
Definition at line 1277 of file stm32l4xx_hal_rtc.c.
HAL_StatusTypeDef HAL_RTC_DeactivateAlarm | ( | RTC_HandleTypeDef * | hrtc, |
uint32_t | Alarm | ||
) |
Deactivate the specified RTC Alarm.
- Parameters:
-
hrtc,: RTC handle Alarm,: Specifies the Alarm. This parameter can be one of the following values: - RTC_ALARM_A: AlarmA
- RTC_ALARM_B: AlarmB
- Return values:
-
HAL status
Definition at line 1132 of file stm32l4xx_hal_rtc.c.
HAL_StatusTypeDef HAL_RTC_GetAlarm | ( | RTC_HandleTypeDef * | hrtc, |
RTC_AlarmTypeDef * | sAlarm, | ||
uint32_t | Alarm, | ||
uint32_t | Format | ||
) |
Get the RTC Alarm value and masks.
- Parameters:
-
hrtc,: RTC handle sAlarm,: Pointer to Date structure Alarm,: Specifies the Alarm. This parameter can be one of the following values: - RTC_ALARM_A: AlarmA
- RTC_ALARM_B: AlarmB
Format,: Specifies the format of the entered parameters. This parameter can be one of the following values: - RTC_FORMAT_BIN: Binary data format
- RTC_FORMAT_BCD: BCD data format
- Return values:
-
HAL status
Definition at line 1226 of file stm32l4xx_hal_rtc.c.
HAL_StatusTypeDef HAL_RTC_PollForAlarmAEvent | ( | RTC_HandleTypeDef * | hrtc, |
uint32_t | Timeout | ||
) |
Handle AlarmA Polling request.
- Parameters:
-
hrtc,: RTC handle Timeout,: Timeout duration
- Return values:
-
HAL status
Definition at line 1335 of file stm32l4xx_hal_rtc.c.
HAL_StatusTypeDef HAL_RTC_SetAlarm | ( | RTC_HandleTypeDef * | hrtc, |
RTC_AlarmTypeDef * | sAlarm, | ||
uint32_t | Format | ||
) |
Set the specified RTC Alarm.
- Parameters:
-
hrtc,: RTC handle sAlarm,: Pointer to Alarm structure Format,: Specifies the format of the entered parameters. This parameter can be one of the following values: - RTC_FORMAT_BIN: Binary data format
- RTC_FORMAT_BCD: BCD data format
- Return values:
-
HAL status
Definition at line 763 of file stm32l4xx_hal_rtc.c.
HAL_StatusTypeDef HAL_RTC_SetAlarm_IT | ( | RTC_HandleTypeDef * | hrtc, |
RTC_AlarmTypeDef * | sAlarm, | ||
uint32_t | Format | ||
) |
Set the specified RTC Alarm with Interrupt.
- Parameters:
-
hrtc,: RTC handle sAlarm,: Pointer to Alarm structure Format,: Specifies the format of the entered parameters. This parameter can be one of the following values: - RTC_FORMAT_BIN: Binary data format
- RTC_FORMAT_BCD: BCD data format
- Note:
- The Alarm register can only be written when the corresponding Alarm is disabled (Use the HAL_RTC_DeactivateAlarm()).
- The HAL_RTC_SetTime() must be called before enabling the Alarm feature.
- Return values:
-
HAL status
Definition at line 947 of file stm32l4xx_hal_rtc.c.
Generated on Tue Jul 12 2022 17:38:54 by
