Hal Drivers for L4
Dependents: BSP OneHopeOnePrayer FINAL_AUDIO_RECORD AudioDemo
Fork of STM32L4xx_HAL_Driver 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 Format) |
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 Hour) |
Set ALARM B Hour in BCD format. | |
__STATIC_INLINE uint32_t | LL_RTC_ALMB_GetHour (RTC_TypeDef *RTCx) |
Get ALARM B Hour in BCD format. | |
__STATIC_INLINE void | LL_RTC_ALMB_SetMinute (RTC_TypeDef *RTCx, uint32_t Minute) |
Set ALARM B Minute in BCD format. | |
__STATIC_INLINE uint32_t | LL_RTC_ALMB_GetMinute (RTC_TypeDef *RTCx) |
Get ALARM B Minute in BCD format. | |
__STATIC_INLINE void | LL_RTC_ALMB_SetSecond (RTC_TypeDef *RTCx, uint32_t Second) |
Set ALARM B Second in BCD format. | |
__STATIC_INLINE uint32_t | LL_RTC_ALMB_GetSecond (RTC_TypeDef *RTCx) |
Get ALARM B Second in BCD format. | |
__STATIC_INLINE void | LL_RTC_ALMB_ConfigTime (RTC_TypeDef *RTCx, uint32_t Format12_24, uint32_t Hour, uint32_t Minute, uint32_t Second) |
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 | Hour, | ||
uint32_t | Minute, | ||
uint32_t | Second | ||
) |
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
Hour 0x01. . .0x12 or 0x00. . .0x23 Minute 0x00. . .0x59 Second 0x00. . .0x59
- Return values:
-
None
Definition at line 2166 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 1892 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 1955 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 1880 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 1944 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:
-
0x01. . .0x31
Definition at line 1983 of file stm32l4xx_ll_rtc.h.
__STATIC_INLINE uint32_t LL_RTC_ALMB_GetHour | ( | RTC_TypeDef * | RTCx ) |
Get ALARM B Hour in BCD format.
- Note:
- helper macro __LL_RTC_CONVERT_BCD2BIN is available to convert Hour from BCD to Binary format ALRMBR HT LL_RTC_ALMB_GetHour
ALRMBR HU LL_RTC_ALMB_GetHour
- Parameters:
-
RTCx RTC Instance
- Return values:
-
0x01. . .0x12 or 0x00. . .0x23
Definition at line 2078 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 1933 of file stm32l4xx_ll_rtc.h.
__STATIC_INLINE uint32_t LL_RTC_ALMB_GetMinute | ( | RTC_TypeDef * | RTCx ) |
Get ALARM B Minute in BCD format.
- Note:
- helper macro __LL_RTC_CONVERT_BCD2BIN is available to convert Minute from BCD to Binary format ALRMBR MNT LL_RTC_ALMB_GetMinute
ALRMBR MNU LL_RTC_ALMB_GetMinute
- Parameters:
-
RTCx RTC Instance
- Return values:
-
0x00. . .0x59
Definition at line 2109 of file stm32l4xx_ll_rtc.h.
__STATIC_INLINE uint32_t LL_RTC_ALMB_GetSecond | ( | RTC_TypeDef * | RTCx ) |
Get ALARM B Second in BCD format.
- Note:
- helper macro __LL_RTC_CONVERT_BCD2BIN is available to convert Second from BCD to Binary format ALRMBR ST LL_RTC_ALMB_GetSecond
ALRMBR SU LL_RTC_ALMB_GetSecond
- Parameters:
-
RTCx RTC Instance
- Return values:
-
0x00. . .0x59
Definition at line 2140 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:
-
0. . .0x7FFF
Definition at line 2238 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:
-
0. . .0xF
Definition at line 2215 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 2190 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 2050 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 2023 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 0x01. . .0x31
- Return values:
-
None
Definition at line 1969 of file stm32l4xx_ll_rtc.h.
__STATIC_INLINE void LL_RTC_ALMB_SetHour | ( | RTC_TypeDef * | RTCx, |
uint32_t | Hour | ||
) |
Set ALARM B Hour in BCD format.
- Note:
- helper macro __LL_RTC_CONVERT_BIN2BCD is available to convert Hour from binary to BCD format ALRMBR HT LL_RTC_ALMB_SetHour
ALRMBR HU LL_RTC_ALMB_SetHour
- Parameters:
-
RTCx RTC Instance Hour 0x01. . .0x12 or 0x00. . .0x23
- Return values:
-
None
Definition at line 2064 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 1913 of file stm32l4xx_ll_rtc.h.
__STATIC_INLINE void LL_RTC_ALMB_SetMinute | ( | RTC_TypeDef * | RTCx, |
uint32_t | Minute | ||
) |
Set ALARM B Minute in BCD format.
- Note:
- helper macro __LL_RTC_CONVERT_BIN2BCD is available to convert Minute from binary to BCD format ALRMBR MNT LL_RTC_ALMB_SetMinute
ALRMBR MNU LL_RTC_ALMB_SetMinute
- Parameters:
-
RTCx RTC Instance Minute 0x00. . .0x59
- Return values:
-
None
Definition at line 2095 of file stm32l4xx_ll_rtc.h.
__STATIC_INLINE void LL_RTC_ALMB_SetSecond | ( | RTC_TypeDef * | RTCx, |
uint32_t | Second | ||
) |
Set ALARM B Second in BCD format.
- Note:
- helper macro __LL_RTC_CONVERT_BIN2BCD is available to convert Second from binary to BCD format ALRMBR ST LL_RTC_ALMB_SetSecond
ALRMBR SU LL_RTC_ALMB_SetSecond
- Parameters:
-
RTCx RTC Instance Second 0x00. . .0x59
- Return values:
-
None
Definition at line 2126 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 0. . .0x7FFF
- Return values:
-
None
Definition at line 2227 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 0. . .0xF
- Return values:
-
None
Definition at line 2204 of file stm32l4xx_ll_rtc.h.
__STATIC_INLINE void LL_RTC_ALMB_SetTimeFormat | ( | RTC_TypeDef * | RTCx, |
uint32_t | Format | ||
) |
Set ALARM B time format (AM/24-hour or PM notation) ALRMBR PM LL_RTC_ALMB_SetTimeFormat.
- Parameters:
-
RTCx RTC Instance Format 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 2037 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 2005 of file stm32l4xx_ll_rtc.h.
Generated on Tue Jul 12 2022 11:35:25 by
