RTC Alarm functions.
More...
RTC Alarm functions.
===============================================================================
##### RTC Alarm functions #####
===============================================================================
[..] This section provides functions allowing to configure Alarm feature
◆ HAL_RTC_AlarmAEventCallback()
Alarm A callback.
- Parameters
-
hrtc | pointer to a RTC_HandleTypeDef structure that contains the configuration information for RTC. |
- Return values
-
Definition at line 1595 of file stm32f4xx_hal_rtc.c.
◆ HAL_RTC_AlarmIRQHandler()
Handles Alarm interrupt request.
- Parameters
-
hrtc | pointer to a RTC_HandleTypeDef structure that contains the configuration information for RTC. |
- Return values
-
Definition at line 1544 of file stm32f4xx_hal_rtc.c.
◆ HAL_RTC_DeactivateAlarm()
HAL_StatusTypeDef HAL_RTC_DeactivateAlarm |
( |
RTC_HandleTypeDef * |
hrtc, |
|
|
uint32_t |
Alarm |
|
) |
| |
Deactivates the specified RTC Alarm.
- Parameters
-
hrtc | pointer to a RTC_HandleTypeDef structure that contains the configuration information for RTC. |
Alarm | Specifies the Alarm. This parameter can be one of the following values:
- RTC_ALARM_A: Alarm A
- RTC_ALARM_B: Alarm B
|
- Return values
-
Definition at line 1395 of file stm32f4xx_hal_rtc.c.
◆ HAL_RTC_GetAlarm()
Gets the RTC Alarm value and masks.
- Parameters
-
hrtc | pointer to a RTC_HandleTypeDef structure that contains the configuration information for RTC. |
sAlarm | Pointer to Date structure |
Alarm | Specifies the Alarm. This parameter can be one of the following values:
- RTC_ALARM_A: Alarm A
- RTC_ALARM_B: Alarm B
|
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
-
Definition at line 1493 of file stm32f4xx_hal_rtc.c.
◆ HAL_RTC_PollForAlarmAEvent()
HAL_StatusTypeDef HAL_RTC_PollForAlarmAEvent |
( |
RTC_HandleTypeDef * |
hrtc, |
|
|
uint32_t |
Timeout |
|
) |
| |
Handles Alarm A Polling request.
- Parameters
-
hrtc | pointer to a RTC_HandleTypeDef structure that contains the configuration information for RTC. |
Timeout | Timeout duration |
- Return values
-
Definition at line 1612 of file stm32f4xx_hal_rtc.c.
◆ HAL_RTC_SetAlarm()
Sets the specified RTC Alarm.
- Parameters
-
hrtc | pointer to a RTC_HandleTypeDef structure that contains the configuration information for RTC. |
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
-
Definition at line 1004 of file stm32f4xx_hal_rtc.c.
◆ HAL_RTC_SetAlarm_IT()
Sets the specified RTC Alarm with Interrupt.
- Parameters
-
hrtc | pointer to a RTC_HandleTypeDef structure that contains the configuration information for RTC. |
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
-
Definition at line 1201 of file stm32f4xx_hal_rtc.c.