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
ALARMB
[RTC Exported Functions]
Functions | |
__STATIC_INLINE void | LL_RTC_ALMB_Enable (RTC_TypeDef *RTCx) |
Enable Alarm B. | |
__STATIC_INLINE void | LL_RTC_ALMB_Disable (RTC_TypeDef *RTCx) |
Disable Alarm B. | |
__STATIC_INLINE void | LL_RTC_ALMB_SetMask (RTC_TypeDef *RTCx, uint32_t Mask) |
Specify the Alarm B masks. | |
__STATIC_INLINE uint32_t | LL_RTC_ALMB_GetMask (RTC_TypeDef *RTCx) |
Get the Alarm B masks. | |
__STATIC_INLINE void | LL_RTC_ALMB_EnableWeekday (RTC_TypeDef *RTCx) |
Enable AlarmB Week day selection (DU[3:0] represents the week day. | |
__STATIC_INLINE void | LL_RTC_ALMB_DisableWeekday (RTC_TypeDef *RTCx) |
Disable AlarmB Week day selection (DU[3:0] represents the date ) ALRMBR WDSEL LL_RTC_ALMB_DisableWeekday. | |
__STATIC_INLINE void | LL_RTC_ALMB_SetDay (RTC_TypeDef *RTCx, uint32_t Day) |
Set ALARM B Day in BCD format. | |
__STATIC_INLINE uint32_t | LL_RTC_ALMB_GetDay (RTC_TypeDef *RTCx) |
Get ALARM B Day in BCD format. | |
__STATIC_INLINE void | LL_RTC_ALMB_SetWeekDay (RTC_TypeDef *RTCx, uint32_t WeekDay) |
Set ALARM B Weekday ALRMBR DU LL_RTC_ALMB_SetWeekDay. | |
__STATIC_INLINE uint32_t | LL_RTC_ALMB_GetWeekDay (RTC_TypeDef *RTCx) |
Get ALARM B Weekday ALRMBR DU LL_RTC_ALMB_GetWeekDay. | |
__STATIC_INLINE void | LL_RTC_ALMB_SetTimeFormat (RTC_TypeDef *RTCx, uint32_t TimeFormat) |
Set ALARM B time format (AM/24-hour or PM notation) ALRMBR PM LL_RTC_ALMB_SetTimeFormat. | |
__STATIC_INLINE uint32_t | LL_RTC_ALMB_GetTimeFormat (RTC_TypeDef *RTCx) |
Get ALARM B time format (AM or PM notation) ALRMBR PM LL_RTC_ALMB_GetTimeFormat. | |
__STATIC_INLINE void | LL_RTC_ALMB_SetHour (RTC_TypeDef *RTCx, uint32_t Hours) |
Set ALARM B Hours in BCD format. | |
__STATIC_INLINE uint32_t | LL_RTC_ALMB_GetHour (RTC_TypeDef *RTCx) |
Get ALARM B Hours in BCD format. | |
__STATIC_INLINE void | LL_RTC_ALMB_SetMinute (RTC_TypeDef *RTCx, uint32_t Minutes) |
Set ALARM B Minutes in BCD format. | |
__STATIC_INLINE uint32_t | LL_RTC_ALMB_GetMinute (RTC_TypeDef *RTCx) |
Get ALARM B Minutes in BCD format. | |
__STATIC_INLINE void | LL_RTC_ALMB_SetSecond (RTC_TypeDef *RTCx, uint32_t Seconds) |
Set ALARM B Seconds in BCD format. | |
__STATIC_INLINE uint32_t | LL_RTC_ALMB_GetSecond (RTC_TypeDef *RTCx) |
Get ALARM B Seconds in BCD format. | |
__STATIC_INLINE void | LL_RTC_ALMB_ConfigTime (RTC_TypeDef *RTCx, uint32_t Format12_24, uint32_t Hours, uint32_t Minutes, uint32_t Seconds) |
Set Alarm B Time (hour, minute and second) in BCD format ALRMBR PM LL_RTC_ALMB_ConfigTime ALRMBR HT LL_RTC_ALMB_ConfigTime ALRMBR HU LL_RTC_ALMB_ConfigTime ALRMBR MNT LL_RTC_ALMB_ConfigTime ALRMBR MNU LL_RTC_ALMB_ConfigTime ALRMBR ST LL_RTC_ALMB_ConfigTime ALRMBR SU LL_RTC_ALMB_ConfigTime. | |
__STATIC_INLINE uint32_t | LL_RTC_ALMB_GetTime (RTC_TypeDef *RTCx) |
Get Alarm B Time (hour, minute and second) in BCD format. | |
__STATIC_INLINE void | LL_RTC_ALMB_SetSubSecondMask (RTC_TypeDef *RTCx, uint32_t Mask) |
Set Alarm B Mask the most-significant bits starting at this bit. | |
__STATIC_INLINE uint32_t | LL_RTC_ALMB_GetSubSecondMask (RTC_TypeDef *RTCx) |
Get Alarm B Mask the most-significant bits starting at this bit ALRMBSSR MASKSS LL_RTC_ALMB_GetSubSecondMask. | |
__STATIC_INLINE void | LL_RTC_ALMB_SetSubSecond (RTC_TypeDef *RTCx, uint32_t Subsecond) |
Set Alarm B Sub seconds value ALRMBSSR SS LL_RTC_ALMB_SetSubSecond. | |
__STATIC_INLINE uint32_t | LL_RTC_ALMB_GetSubSecond (RTC_TypeDef *RTCx) |
Get Alarm B Sub seconds value ALRMBSSR SS LL_RTC_ALMB_GetSubSecond. |
Function Documentation
__STATIC_INLINE void LL_RTC_ALMB_ConfigTime | ( | RTC_TypeDef * | RTCx, |
uint32_t | Format12_24, | ||
uint32_t | Hours, | ||
uint32_t | Minutes, | ||
uint32_t | Seconds | ||
) |
Set Alarm B Time (hour, minute and second) in BCD format ALRMBR PM LL_RTC_ALMB_ConfigTime
ALRMBR HT LL_RTC_ALMB_ConfigTime
ALRMBR HU LL_RTC_ALMB_ConfigTime
ALRMBR MNT LL_RTC_ALMB_ConfigTime
ALRMBR MNU LL_RTC_ALMB_ConfigTime
ALRMBR ST LL_RTC_ALMB_ConfigTime
ALRMBR SU LL_RTC_ALMB_ConfigTime.
- Parameters:
-
RTCx RTC Instance Format12_24 This parameter can be one of the following values: - LL_RTC_ALMB_TIME_FORMAT_AM
- LL_RTC_ALMB_TIME_FORMAT_PM
Hours Value between Min_Data=0x01 and Max_Data=0x12 or between Min_Data=0x00 and Max_Data=0x23 Minutes Value between Min_Data=0x00 and Max_Data=0x59 Seconds Value between Min_Data=0x00 and Max_Data=0x59
- Return values:
-
None
Definition at line 2350 of file stm32l4xx_ll_rtc.h.
__STATIC_INLINE void LL_RTC_ALMB_Disable | ( | RTC_TypeDef * | RTCx ) |
Disable Alarm B.
- Note:
- Bit is write-protected. LL_RTC_DisableWriteProtection function should be called before. CR ALRBE LL_RTC_ALMB_Disable
- Parameters:
-
RTCx RTC Instance
- Return values:
-
None
Definition at line 2076 of file stm32l4xx_ll_rtc.h.
__STATIC_INLINE void LL_RTC_ALMB_DisableWeekday | ( | RTC_TypeDef * | RTCx ) |
Disable AlarmB Week day selection (DU[3:0] represents the date ) ALRMBR WDSEL LL_RTC_ALMB_DisableWeekday.
- Parameters:
-
RTCx RTC Instance
- Return values:
-
None
Definition at line 2139 of file stm32l4xx_ll_rtc.h.
__STATIC_INLINE void LL_RTC_ALMB_Enable | ( | RTC_TypeDef * | RTCx ) |
Enable Alarm B.
- Note:
- Bit is write-protected. LL_RTC_DisableWriteProtection function should be called before. CR ALRBE LL_RTC_ALMB_Enable
- Parameters:
-
RTCx RTC Instance
- Return values:
-
None
Definition at line 2064 of file stm32l4xx_ll_rtc.h.
__STATIC_INLINE void LL_RTC_ALMB_EnableWeekday | ( | RTC_TypeDef * | RTCx ) |
Enable AlarmB Week day selection (DU[3:0] represents the week day.
DT[1:0] is do not care) ALRMBR WDSEL LL_RTC_ALMB_EnableWeekday
- Parameters:
-
RTCx RTC Instance
- Return values:
-
None
Definition at line 2128 of file stm32l4xx_ll_rtc.h.
__STATIC_INLINE uint32_t LL_RTC_ALMB_GetDay | ( | RTC_TypeDef * | RTCx ) |
Get ALARM B Day in BCD format.
- Note:
- helper macro __LL_RTC_CONVERT_BCD2BIN is available to convert Day from BCD to Binary format ALRMBR DT LL_RTC_ALMB_GetDay
ALRMBR DU LL_RTC_ALMB_GetDay
- Parameters:
-
RTCx RTC Instance
- Return values:
-
Value between Min_Data=0x01 and Max_Data=0x31
Definition at line 2167 of file stm32l4xx_ll_rtc.h.
__STATIC_INLINE uint32_t LL_RTC_ALMB_GetHour | ( | RTC_TypeDef * | RTCx ) |
Get ALARM B Hours in BCD format.
- Note:
- helper macro __LL_RTC_CONVERT_BCD2BIN is available to convert Hours from BCD to Binary format ALRMBR HT LL_RTC_ALMB_GetHour
ALRMBR HU LL_RTC_ALMB_GetHour
- Parameters:
-
RTCx RTC Instance
- Return values:
-
Value between Min_Data=0x01 and Max_Data=0x12 or between Min_Data=0x00 and Max_Data=0x23
Definition at line 2262 of file stm32l4xx_ll_rtc.h.
__STATIC_INLINE uint32_t LL_RTC_ALMB_GetMask | ( | RTC_TypeDef * | RTCx ) |
Get the Alarm B masks.
ALRMBR MSK4 LL_RTC_ALMB_GetMask
ALRMBR MSK3 LL_RTC_ALMB_GetMask
ALRMBR MSK2 LL_RTC_ALMB_GetMask
ALRMBR MSK1 LL_RTC_ALMB_GetMask
- Parameters:
-
RTCx RTC Instance
- Return values:
-
Returned value can be can be a combination of the following values: - LL_RTC_ALMB_MASK_NONE
- LL_RTC_ALMB_MASK_DATEWEEKDAY
- LL_RTC_ALMB_MASK_HOURS
- LL_RTC_ALMB_MASK_MINUTES
- LL_RTC_ALMB_MASK_SECONDS
- LL_RTC_ALMB_MASK_ALL
Definition at line 2117 of file stm32l4xx_ll_rtc.h.
__STATIC_INLINE uint32_t LL_RTC_ALMB_GetMinute | ( | RTC_TypeDef * | RTCx ) |
Get ALARM B Minutes in BCD format.
- Note:
- helper macro __LL_RTC_CONVERT_BCD2BIN is available to convert Minutes from BCD to Binary format ALRMBR MNT LL_RTC_ALMB_GetMinute
ALRMBR MNU LL_RTC_ALMB_GetMinute
- Parameters:
-
RTCx RTC Instance
- Return values:
-
Value between Min_Data=0x00 and Max_Data=0x59
Definition at line 2293 of file stm32l4xx_ll_rtc.h.
__STATIC_INLINE uint32_t LL_RTC_ALMB_GetSecond | ( | RTC_TypeDef * | RTCx ) |
Get ALARM B Seconds in BCD format.
- Note:
- helper macro __LL_RTC_CONVERT_BCD2BIN is available to convert Seconds from BCD to Binary format ALRMBR ST LL_RTC_ALMB_GetSecond
ALRMBR SU LL_RTC_ALMB_GetSecond
- Parameters:
-
RTCx RTC Instance
- Return values:
-
Value between Min_Data=0x00 and Max_Data=0x59
Definition at line 2324 of file stm32l4xx_ll_rtc.h.
__STATIC_INLINE uint32_t LL_RTC_ALMB_GetSubSecond | ( | RTC_TypeDef * | RTCx ) |
Get Alarm B Sub seconds value ALRMBSSR SS LL_RTC_ALMB_GetSubSecond.
- Parameters:
-
RTCx RTC Instance
- Return values:
-
Value between Min_Data=0x00 and Max_Data=0x7FFF
Definition at line 2422 of file stm32l4xx_ll_rtc.h.
__STATIC_INLINE uint32_t LL_RTC_ALMB_GetSubSecondMask | ( | RTC_TypeDef * | RTCx ) |
Get Alarm B Mask the most-significant bits starting at this bit ALRMBSSR MASKSS LL_RTC_ALMB_GetSubSecondMask.
- Parameters:
-
RTCx RTC Instance
- Return values:
-
Value between Min_Data=0x00 and Max_Data=0xF
Definition at line 2399 of file stm32l4xx_ll_rtc.h.
__STATIC_INLINE uint32_t LL_RTC_ALMB_GetTime | ( | RTC_TypeDef * | RTCx ) |
Get Alarm B Time (hour, minute and second) in BCD format.
- Note:
- helper macros __LL_RTC_GET_HOUR, __LL_RTC_GET_MINUTE and __LL_RTC_GET_SECOND are available to get independently each parameter. ALRMBR HT LL_RTC_ALMB_GetTime
ALRMBR HU LL_RTC_ALMB_GetTime
ALRMBR MNT LL_RTC_ALMB_GetTime
ALRMBR MNU LL_RTC_ALMB_GetTime
ALRMBR ST LL_RTC_ALMB_GetTime
ALRMBR SU LL_RTC_ALMB_GetTime
- Parameters:
-
RTCx RTC Instance
- Return values:
-
Combination of hours, minutes and seconds.
Definition at line 2374 of file stm32l4xx_ll_rtc.h.
__STATIC_INLINE uint32_t LL_RTC_ALMB_GetTimeFormat | ( | RTC_TypeDef * | RTCx ) |
Get ALARM B time format (AM or PM notation) ALRMBR PM LL_RTC_ALMB_GetTimeFormat.
- Parameters:
-
RTCx RTC Instance
- Return values:
-
Returned value can be one of the following values: - LL_RTC_ALMB_TIME_FORMAT_AM
- LL_RTC_ALMB_TIME_FORMAT_PM
Definition at line 2234 of file stm32l4xx_ll_rtc.h.
__STATIC_INLINE uint32_t LL_RTC_ALMB_GetWeekDay | ( | RTC_TypeDef * | RTCx ) |
Get ALARM B Weekday ALRMBR DU LL_RTC_ALMB_GetWeekDay.
- Parameters:
-
RTCx RTC Instance
- Return values:
-
Returned value can be one of the following values: - LL_RTC_WEEKDAY_MONDAY
- LL_RTC_WEEKDAY_TUESDAY
- LL_RTC_WEEKDAY_WEDNESDAY
- LL_RTC_WEEKDAY_THURSDAY
- LL_RTC_WEEKDAY_FRIDAY
- LL_RTC_WEEKDAY_SATURDAY
- LL_RTC_WEEKDAY_SUNDAY
Definition at line 2207 of file stm32l4xx_ll_rtc.h.
__STATIC_INLINE void LL_RTC_ALMB_SetDay | ( | RTC_TypeDef * | RTCx, |
uint32_t | Day | ||
) |
Set ALARM B Day in BCD format.
- Note:
- helper macro __LL_RTC_CONVERT_BIN2BCD is available to convert Day from binary to BCD format ALRMBR DT LL_RTC_ALMB_SetDay
ALRMBR DU LL_RTC_ALMB_SetDay
- Parameters:
-
RTCx RTC Instance Day Value between Min_Data=0x01 and Max_Data=0x31
- Return values:
-
None
Definition at line 2153 of file stm32l4xx_ll_rtc.h.
__STATIC_INLINE void LL_RTC_ALMB_SetHour | ( | RTC_TypeDef * | RTCx, |
uint32_t | Hours | ||
) |
Set ALARM B Hours in BCD format.
- Note:
- helper macro __LL_RTC_CONVERT_BIN2BCD is available to convert Hours from binary to BCD format ALRMBR HT LL_RTC_ALMB_SetHour
ALRMBR HU LL_RTC_ALMB_SetHour
- Parameters:
-
RTCx RTC Instance Hours Value between Min_Data=0x01 and Max_Data=0x12 or between Min_Data=0x00 and Max_Data=0x23
- Return values:
-
None
Definition at line 2248 of file stm32l4xx_ll_rtc.h.
__STATIC_INLINE void LL_RTC_ALMB_SetMask | ( | RTC_TypeDef * | RTCx, |
uint32_t | Mask | ||
) |
Specify the Alarm B masks.
ALRMBR MSK4 LL_RTC_ALMB_SetMask
ALRMBR MSK3 LL_RTC_ALMB_SetMask
ALRMBR MSK2 LL_RTC_ALMB_SetMask
ALRMBR MSK1 LL_RTC_ALMB_SetMask
- Parameters:
-
RTCx RTC Instance Mask This parameter can be a combination of the following values: - LL_RTC_ALMB_MASK_NONE
- LL_RTC_ALMB_MASK_DATEWEEKDAY
- LL_RTC_ALMB_MASK_HOURS
- LL_RTC_ALMB_MASK_MINUTES
- LL_RTC_ALMB_MASK_SECONDS
- LL_RTC_ALMB_MASK_ALL
- Return values:
-
None
Definition at line 2097 of file stm32l4xx_ll_rtc.h.
__STATIC_INLINE void LL_RTC_ALMB_SetMinute | ( | RTC_TypeDef * | RTCx, |
uint32_t | Minutes | ||
) |
Set ALARM B Minutes in BCD format.
- Note:
- helper macro __LL_RTC_CONVERT_BIN2BCD is available to convert Minutes from binary to BCD format ALRMBR MNT LL_RTC_ALMB_SetMinute
ALRMBR MNU LL_RTC_ALMB_SetMinute
- Parameters:
-
RTCx RTC Instance Minutes between Min_Data=0x00 and Max_Data=0x59
- Return values:
-
None
Definition at line 2279 of file stm32l4xx_ll_rtc.h.
__STATIC_INLINE void LL_RTC_ALMB_SetSecond | ( | RTC_TypeDef * | RTCx, |
uint32_t | Seconds | ||
) |
Set ALARM B Seconds in BCD format.
- Note:
- helper macro __LL_RTC_CONVERT_BIN2BCD is available to convert Seconds from binary to BCD format ALRMBR ST LL_RTC_ALMB_SetSecond
ALRMBR SU LL_RTC_ALMB_SetSecond
- Parameters:
-
RTCx RTC Instance Seconds Value between Min_Data=0x00 and Max_Data=0x59
- Return values:
-
None
Definition at line 2310 of file stm32l4xx_ll_rtc.h.
__STATIC_INLINE void LL_RTC_ALMB_SetSubSecond | ( | RTC_TypeDef * | RTCx, |
uint32_t | Subsecond | ||
) |
Set Alarm B Sub seconds value ALRMBSSR SS LL_RTC_ALMB_SetSubSecond.
- Parameters:
-
RTCx RTC Instance Subsecond Value between Min_Data=0x00 and Max_Data=0x7FFF
- Return values:
-
None
Definition at line 2411 of file stm32l4xx_ll_rtc.h.
__STATIC_INLINE void LL_RTC_ALMB_SetSubSecondMask | ( | RTC_TypeDef * | RTCx, |
uint32_t | Mask | ||
) |
Set Alarm B Mask the most-significant bits starting at this bit.
- Note:
- This register can be written only when ALRBE is reset in RTC_CR register, or in initialization mode. ALRMBSSR MASKSS LL_RTC_ALMB_SetSubSecondMask
- Parameters:
-
RTCx RTC Instance Mask Value between Min_Data=0x00 and Max_Data=0xF
- Return values:
-
None
Definition at line 2388 of file stm32l4xx_ll_rtc.h.
__STATIC_INLINE void LL_RTC_ALMB_SetTimeFormat | ( | RTC_TypeDef * | RTCx, |
uint32_t | TimeFormat | ||
) |
Set ALARM B time format (AM/24-hour or PM notation) ALRMBR PM LL_RTC_ALMB_SetTimeFormat.
- Parameters:
-
RTCx RTC Instance TimeFormat This parameter can be one of the following values: - LL_RTC_ALMB_TIME_FORMAT_AM
- LL_RTC_ALMB_TIME_FORMAT_PM
- Return values:
-
None
Definition at line 2221 of file stm32l4xx_ll_rtc.h.
__STATIC_INLINE void LL_RTC_ALMB_SetWeekDay | ( | RTC_TypeDef * | RTCx, |
uint32_t | WeekDay | ||
) |
Set ALARM B Weekday ALRMBR DU LL_RTC_ALMB_SetWeekDay.
- Parameters:
-
RTCx RTC Instance WeekDay This parameter can be one of the following values: - LL_RTC_WEEKDAY_MONDAY
- LL_RTC_WEEKDAY_TUESDAY
- LL_RTC_WEEKDAY_WEDNESDAY
- LL_RTC_WEEKDAY_THURSDAY
- LL_RTC_WEEKDAY_FRIDAY
- LL_RTC_WEEKDAY_SATURDAY
- LL_RTC_WEEKDAY_SUNDAY
- Return values:
-
None
Definition at line 2189 of file stm32l4xx_ll_rtc.h.
Generated on Tue Jul 12 2022 17:38:58 by
