STM32L443xx HAL User Manual
|
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_DST_Add1Hour (RTC_HandleTypeDef *hrtc) |
Daylight Saving Time, Add one hour to the calendar in one single operation without going through the initialization procedure. | |
void | HAL_RTC_DST_Sub1Hour (RTC_HandleTypeDef *hrtc) |
Daylight Saving Time, Substract one hour from the calendar in one single operation without going through the initialization procedure. | |
void | HAL_RTC_DST_SetStoreOperation (RTC_HandleTypeDef *hrtc) |
Daylight Saving Time, Set the store operation bit. | |
void | HAL_RTC_DST_ClearStoreOperation (RTC_HandleTypeDef *hrtc) |
Daylight Saving Time, Clear the store operation bit. | |
uint32_t | HAL_RTC_DST_ReadStoreOperation (RTC_HandleTypeDef *hrtc) |
Daylight Saving Time, Read the store operation bit. | |
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. |
RTC Alarm functions.
=============================================================================== ##### RTC Alarm functions ##### =============================================================================== [..] This section provides functions allowing to configure Alarm feature
void HAL_RTC_AlarmAEventCallback | ( | RTC_HandleTypeDef * | hrtc | ) |
Alarm A callback.
hrtc | RTC handle |
None |
Definition at line 2416 of file stm32l4xx_hal_rtc.c.
Referenced by HAL_RTC_AlarmIRQHandler(), HAL_RTC_Init(), and HAL_RTC_UnRegisterCallback().
void HAL_RTC_AlarmIRQHandler | ( | RTC_HandleTypeDef * | hrtc | ) |
Handle Alarm interrupt request.
hrtc | RTC handle |
None |
Definition at line 2335 of file stm32l4xx_hal_rtc.c.
References __HAL_RTC_ALARM_CLEAR_FLAG, __HAL_RTC_ALARM_EXTI_CLEAR_FLAG, __HAL_RTC_ALARM_GET_FLAG, __HAL_RTC_ALARM_GET_IT_SOURCE, __RTC_HandleTypeDef::AlarmAEventCallback, __RTC_HandleTypeDef::AlarmBEventCallback, HAL_RTC_AlarmAEventCallback(), HAL_RTC_STATE_READY, HAL_RTCEx_AlarmBEventCallback(), __RTC_HandleTypeDef::Instance, RTC_FLAG_ALRAF, RTC_FLAG_ALRBF, RTC_IT_ALRA, RTC_IT_ALRB, and __RTC_HandleTypeDef::State.
HAL_StatusTypeDef HAL_RTC_DeactivateAlarm | ( | RTC_HandleTypeDef * | hrtc, |
uint32_t | Alarm | ||
) |
Deactivate the specified RTC Alarm.
hrtc | RTC handle |
Alarm | Specifies the Alarm. This parameter can be one of the following values:
|
HAL | status |
Definition at line 2111 of file stm32l4xx_hal_rtc.c.
References __HAL_RTC_ALARM_DISABLE_IT, __HAL_RTC_ALARM_GET_FLAG, __HAL_RTC_ALARMA_DISABLE, __HAL_RTC_ALARMB_DISABLE, __HAL_RTC_WRITEPROTECTION_DISABLE, __HAL_RTC_WRITEPROTECTION_ENABLE, assert_param, HAL_GetTick(), HAL_RTC_STATE_BUSY, HAL_RTC_STATE_READY, HAL_RTC_STATE_TIMEOUT, IS_RTC_ALARM, RTC_ALARM_A, RTC_FLAG_ALRAWF, RTC_FLAG_ALRBWF, RTC_IT_ALRA, RTC_IT_ALRB, RTC_TIMEOUT_VALUE, and __RTC_HandleTypeDef::State.
void HAL_RTC_DST_Add1Hour | ( | RTC_HandleTypeDef * | hrtc | ) |
Daylight Saving Time, Add one hour to the calendar in one single operation without going through the initialization procedure.
hrtc | RTC handle |
None |
Definition at line 2275 of file stm32l4xx_hal_rtc.c.
References __HAL_RTC_WRITEPROTECTION_DISABLE, __HAL_RTC_WRITEPROTECTION_ENABLE, and __RTC_HandleTypeDef::Instance.
void HAL_RTC_DST_ClearStoreOperation | ( | RTC_HandleTypeDef * | hrtc | ) |
Daylight Saving Time, Clear the store operation bit.
hrtc | RTC handle |
None |
Definition at line 2313 of file stm32l4xx_hal_rtc.c.
References __HAL_RTC_WRITEPROTECTION_DISABLE, __HAL_RTC_WRITEPROTECTION_ENABLE, and __RTC_HandleTypeDef::Instance.
uint32_t HAL_RTC_DST_ReadStoreOperation | ( | RTC_HandleTypeDef * | hrtc | ) |
Daylight Saving Time, Read the store operation bit.
hrtc | RTC handle |
operation | see RTC_StoreOperation_Definitions |
Definition at line 2325 of file stm32l4xx_hal_rtc.c.
References __RTC_HandleTypeDef::Instance.
void HAL_RTC_DST_SetStoreOperation | ( | RTC_HandleTypeDef * | hrtc | ) |
Daylight Saving Time, Set the store operation bit.
hrtc | RTC handle |
None |
Definition at line 2301 of file stm32l4xx_hal_rtc.c.
References __HAL_RTC_WRITEPROTECTION_DISABLE, __HAL_RTC_WRITEPROTECTION_ENABLE, and __RTC_HandleTypeDef::Instance.
void HAL_RTC_DST_Sub1Hour | ( | RTC_HandleTypeDef * | hrtc | ) |
Daylight Saving Time, Substract one hour from the calendar in one single operation without going through the initialization procedure.
hrtc | RTC handle |
None |
Definition at line 2288 of file stm32l4xx_hal_rtc.c.
References __HAL_RTC_WRITEPROTECTION_DISABLE, __HAL_RTC_WRITEPROTECTION_ENABLE, and __RTC_HandleTypeDef::Instance.
HAL_StatusTypeDef HAL_RTC_GetAlarm | ( | RTC_HandleTypeDef * | hrtc, |
RTC_AlarmTypeDef * | sAlarm, | ||
uint32_t | Alarm, | ||
uint32_t | Format | ||
) |
Get the RTC Alarm value and masks.
hrtc | RTC handle |
sAlarm | Pointer to Date structure |
Alarm | Specifies the Alarm. This parameter can be one of the following values:
|
Format | Specifies the format of the entered parameters. This parameter can be one of the following values:
|
HAL | status |
Definition at line 2213 of file stm32l4xx_hal_rtc.c.
References RTC_AlarmTypeDef::Alarm, RTC_AlarmTypeDef::AlarmDateWeekDay, RTC_AlarmTypeDef::AlarmDateWeekDaySel, RTC_AlarmTypeDef::AlarmMask, RTC_AlarmTypeDef::AlarmTime, assert_param, RTC_TimeTypeDef::Hours, __RTC_HandleTypeDef::Instance, IS_RTC_ALARM, IS_RTC_FORMAT, RTC_TimeTypeDef::Minutes, RTC_ALARM_A, RTC_ALARM_B, RTC_ALARMMASK_ALL, RTC_Bcd2ToByte(), RTC_FORMAT_BIN, RTC_TimeTypeDef::Seconds, RTC_TimeTypeDef::SubSeconds, and RTC_TimeTypeDef::TimeFormat.
HAL_StatusTypeDef HAL_RTC_PollForAlarmAEvent | ( | RTC_HandleTypeDef * | hrtc, |
uint32_t | Timeout | ||
) |
Handle AlarmA Polling request.
hrtc | RTC handle |
Timeout | Timeout duration |
HAL | status |
Definition at line 2432 of file stm32l4xx_hal_rtc.c.
References __HAL_RTC_ALARM_CLEAR_FLAG, __HAL_RTC_ALARM_GET_FLAG, HAL_GetTick(), HAL_RTC_STATE_READY, HAL_RTC_STATE_TIMEOUT, RTC_FLAG_ALRAF, and __RTC_HandleTypeDef::State.
HAL_StatusTypeDef HAL_RTC_SetAlarm | ( | RTC_HandleTypeDef * | hrtc, |
RTC_AlarmTypeDef * | sAlarm, | ||
uint32_t | Format | ||
) |
Set the specified RTC Alarm.
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:
|
HAL | status |
Definition at line 1734 of file stm32l4xx_hal_rtc.c.
References __HAL_RTC_ALARM_CLEAR_FLAG, __HAL_RTC_ALARM_DISABLE_IT, __HAL_RTC_ALARM_GET_FLAG, __HAL_RTC_ALARMA_DISABLE, __HAL_RTC_ALARMA_ENABLE, __HAL_RTC_ALARMB_DISABLE, __HAL_RTC_ALARMB_ENABLE, __HAL_RTC_WRITEPROTECTION_DISABLE, __HAL_RTC_WRITEPROTECTION_ENABLE, RTC_AlarmTypeDef::Alarm, RTC_AlarmTypeDef::AlarmDateWeekDay, RTC_AlarmTypeDef::AlarmDateWeekDaySel, RTC_AlarmTypeDef::AlarmMask, RTC_AlarmTypeDef::AlarmSubSecondMask, RTC_AlarmTypeDef::AlarmTime, assert_param, HAL_GetTick(), HAL_RTC_STATE_BUSY, HAL_RTC_STATE_READY, HAL_RTC_STATE_TIMEOUT, RTC_TimeTypeDef::Hours, __RTC_HandleTypeDef::Instance, IS_RTC_ALARM, IS_RTC_ALARM_DATE_WEEKDAY_DATE, IS_RTC_ALARM_DATE_WEEKDAY_SEL, IS_RTC_ALARM_DATE_WEEKDAY_WEEKDAY, IS_RTC_ALARM_MASK, IS_RTC_ALARM_SUB_SECOND_MASK, IS_RTC_ALARM_SUB_SECOND_VALUE, IS_RTC_FORMAT, IS_RTC_HOUR12, IS_RTC_HOUR24, IS_RTC_HOURFORMAT12, IS_RTC_MINUTES, IS_RTC_SECONDS, RTC_TimeTypeDef::Minutes, RTC_ALARM_A, RTC_ALARMDATEWEEKDAYSEL_DATE, RTC_Bcd2ToByte(), RTC_ByteToBcd2(), RTC_FLAG_ALRAF, RTC_FLAG_ALRAWF, RTC_FLAG_ALRBF, RTC_FLAG_ALRBWF, RTC_FORMAT_BIN, RTC_IT_ALRA, RTC_IT_ALRB, RTC_TIMEOUT_VALUE, RTC_TimeTypeDef::Seconds, __RTC_HandleTypeDef::State, RTC_TimeTypeDef::SubSeconds, and RTC_TimeTypeDef::TimeFormat.
HAL_StatusTypeDef HAL_RTC_SetAlarm_IT | ( | RTC_HandleTypeDef * | hrtc, |
RTC_AlarmTypeDef * | sAlarm, | ||
uint32_t | Format | ||
) |
Set the specified RTC Alarm with Interrupt.
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:
|
HAL | status |
Definition at line 1921 of file stm32l4xx_hal_rtc.c.
References __HAL_RTC_ALARM_CLEAR_FLAG, __HAL_RTC_ALARM_ENABLE_IT, __HAL_RTC_ALARM_EXTI_ENABLE_IT, __HAL_RTC_ALARM_EXTI_ENABLE_RISING_EDGE, __HAL_RTC_ALARM_GET_FLAG, __HAL_RTC_ALARMA_DISABLE, __HAL_RTC_ALARMA_ENABLE, __HAL_RTC_ALARMB_DISABLE, __HAL_RTC_ALARMB_ENABLE, __HAL_RTC_WRITEPROTECTION_DISABLE, __HAL_RTC_WRITEPROTECTION_ENABLE, RTC_AlarmTypeDef::Alarm, RTC_AlarmTypeDef::AlarmDateWeekDay, RTC_AlarmTypeDef::AlarmDateWeekDaySel, RTC_AlarmTypeDef::AlarmMask, RTC_AlarmTypeDef::AlarmSubSecondMask, RTC_AlarmTypeDef::AlarmTime, assert_param, HAL_GetTick(), HAL_RTC_STATE_BUSY, HAL_RTC_STATE_READY, HAL_RTC_STATE_TIMEOUT, RTC_TimeTypeDef::Hours, __RTC_HandleTypeDef::Instance, IS_RTC_ALARM, IS_RTC_ALARM_DATE_WEEKDAY_DATE, IS_RTC_ALARM_DATE_WEEKDAY_SEL, IS_RTC_ALARM_DATE_WEEKDAY_WEEKDAY, IS_RTC_ALARM_MASK, IS_RTC_ALARM_SUB_SECOND_MASK, IS_RTC_ALARM_SUB_SECOND_VALUE, IS_RTC_FORMAT, IS_RTC_HOUR12, IS_RTC_HOUR24, IS_RTC_HOURFORMAT12, IS_RTC_MINUTES, IS_RTC_SECONDS, RTC_TimeTypeDef::Minutes, RTC_ALARM_A, RTC_ALARMDATEWEEKDAYSEL_DATE, RTC_Bcd2ToByte(), RTC_ByteToBcd2(), RTC_FLAG_ALRAF, RTC_FLAG_ALRAWF, RTC_FLAG_ALRBF, RTC_FLAG_ALRBWF, RTC_FORMAT_BIN, RTC_IT_ALRA, RTC_IT_ALRB, RTC_TIMEOUT_VALUE, RTC_TimeTypeDef::Seconds, __RTC_HandleTypeDef::State, RTC_TimeTypeDef::SubSeconds, and RTC_TimeTypeDef::TimeFormat.