STM32L443xx HAL User Manual
|
Functions | |
__STATIC_INLINE void | LL_RTC_TIME_SetFormat (RTC_TypeDef *RTCx, uint32_t TimeFormat) |
Set time format (AM/24-hour or PM notation) | |
__STATIC_INLINE uint32_t | LL_RTC_TIME_GetFormat (RTC_TypeDef *RTCx) |
Get time format (AM or PM notation) | |
__STATIC_INLINE void | LL_RTC_TIME_SetHour (RTC_TypeDef *RTCx, uint32_t Hours) |
Set Hours in BCD format. | |
__STATIC_INLINE uint32_t | LL_RTC_TIME_GetHour (RTC_TypeDef *RTCx) |
Get Hours in BCD format. | |
__STATIC_INLINE void | LL_RTC_TIME_SetMinute (RTC_TypeDef *RTCx, uint32_t Minutes) |
Set Minutes in BCD format. | |
__STATIC_INLINE uint32_t | LL_RTC_TIME_GetMinute (RTC_TypeDef *RTCx) |
Get Minutes in BCD format. | |
__STATIC_INLINE void | LL_RTC_TIME_SetSecond (RTC_TypeDef *RTCx, uint32_t Seconds) |
Set Seconds in BCD format. | |
__STATIC_INLINE uint32_t | LL_RTC_TIME_GetSecond (RTC_TypeDef *RTCx) |
Get Seconds in BCD format. | |
__STATIC_INLINE void | LL_RTC_TIME_Config (RTC_TypeDef *RTCx, uint32_t Format12_24, uint32_t Hours, uint32_t Minutes, uint32_t Seconds) |
Set time (hour, minute and second) in BCD format. | |
__STATIC_INLINE uint32_t | LL_RTC_TIME_Get (RTC_TypeDef *RTCx) |
Get time (hour, minute and second) in BCD format. | |
__STATIC_INLINE void | LL_RTC_TIME_EnableDayLightStore (RTC_TypeDef *RTCx) |
Memorize whether the daylight saving time change has been performed. | |
__STATIC_INLINE void | LL_RTC_TIME_DisableDayLightStore (RTC_TypeDef *RTCx) |
Disable memorization whether the daylight saving time change has been performed. | |
__STATIC_INLINE uint32_t | LL_RTC_TIME_IsDayLightStoreEnabled (RTC_TypeDef *RTCx) |
Check if RTC Day Light Saving stored operation has been enabled or not. | |
__STATIC_INLINE void | LL_RTC_TIME_DecHour (RTC_TypeDef *RTCx) |
Subtract 1 hour (winter time change) | |
__STATIC_INLINE void | LL_RTC_TIME_IncHour (RTC_TypeDef *RTCx) |
Add 1 hour (summer time change) | |
__STATIC_INLINE uint32_t | LL_RTC_TIME_GetSubSecond (RTC_TypeDef *RTCx) |
Get Sub second value in the synchronous prescaler counter. | |
__STATIC_INLINE void | LL_RTC_TIME_Synchronize (RTC_TypeDef *RTCx, uint32_t ShiftSecond, uint32_t Fraction) |
Synchronize to a remote clock with a high degree of precision. |
__STATIC_INLINE void LL_RTC_TIME_Config | ( | RTC_TypeDef * | RTCx, |
uint32_t | Format12_24, | ||
uint32_t | Hours, | ||
uint32_t | Minutes, | ||
uint32_t | Seconds | ||
) |
Set time (hour, minute and second) in BCD format.
RTCx | RTC Instance |
Format12_24 | This parameter can be one of the following values: |
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 |
None |
Definition at line 1668 of file stm32l4xx_ll_rtc.h.
Referenced by LL_RTC_TIME_Init().
__STATIC_INLINE void LL_RTC_TIME_DecHour | ( | RTC_TypeDef * | RTCx | ) |
Subtract 1 hour (winter time change)
RTCx | RTC Instance |
None |
Definition at line 1748 of file stm32l4xx_ll_rtc.h.
__STATIC_INLINE void LL_RTC_TIME_DisableDayLightStore | ( | RTC_TypeDef * | RTCx | ) |
Disable memorization whether the daylight saving time change has been performed.
RTCx | RTC Instance |
None |
Definition at line 1725 of file stm32l4xx_ll_rtc.h.
__STATIC_INLINE void LL_RTC_TIME_EnableDayLightStore | ( | RTC_TypeDef * | RTCx | ) |
Memorize whether the daylight saving time change has been performed.
RTCx | RTC Instance |
None |
Definition at line 1713 of file stm32l4xx_ll_rtc.h.
__STATIC_INLINE uint32_t LL_RTC_TIME_Get | ( | RTC_TypeDef * | RTCx | ) |
Get time (hour, minute and second) in BCD format.
RTCx | RTC Instance |
Combination | of hours, minutes and seconds (Format: 0x00HHMMSS). |
Definition at line 1696 of file stm32l4xx_ll_rtc.h.
References RTC_OFFSET_HOUR, and RTC_OFFSET_MINUTE.
__STATIC_INLINE uint32_t LL_RTC_TIME_GetFormat | ( | RTC_TypeDef * | RTCx | ) |
Get time format (AM or PM notation)
RTCx | RTC Instance |
Returned | value can be one of the following values: |
Definition at line 1537 of file stm32l4xx_ll_rtc.h.
__STATIC_INLINE uint32_t LL_RTC_TIME_GetHour | ( | RTC_TypeDef * | RTCx | ) |
Get Hours in BCD format.
RTCx | RTC Instance |
Value | between Min_Data=0x01 and Max_Data=0x12 or between Min_Data=0x00 and Max_Data=0x23 |
Definition at line 1572 of file stm32l4xx_ll_rtc.h.
__STATIC_INLINE uint32_t LL_RTC_TIME_GetMinute | ( | RTC_TypeDef * | RTCx | ) |
Get Minutes in BCD format.
RTCx | RTC Instance |
Value | between Min_Data=0x00 and Max_Data=0x59 |
Definition at line 1607 of file stm32l4xx_ll_rtc.h.
__STATIC_INLINE uint32_t LL_RTC_TIME_GetSecond | ( | RTC_TypeDef * | RTCx | ) |
Get Seconds in BCD format.
RTCx | RTC Instance |
Value | between Min_Data=0x00 and Max_Data=0x59 |
Definition at line 1642 of file stm32l4xx_ll_rtc.h.
__STATIC_INLINE uint32_t LL_RTC_TIME_GetSubSecond | ( | RTC_TypeDef * | RTCx | ) |
Get Sub second value in the synchronous prescaler counter.
RTCx | RTC Instance |
If | binary mode is none, Value between Min_Data=0x0 and Max_Data=0x7FFF else Value between Min_Data=0x0 and Max_Data=0xFFFFFFFF |
Definition at line 1779 of file stm32l4xx_ll_rtc.h.
__STATIC_INLINE void LL_RTC_TIME_IncHour | ( | RTC_TypeDef * | RTCx | ) |
Add 1 hour (summer time change)
RTCx | RTC Instance |
None |
Definition at line 1760 of file stm32l4xx_ll_rtc.h.
__STATIC_INLINE uint32_t LL_RTC_TIME_IsDayLightStoreEnabled | ( | RTC_TypeDef * | RTCx | ) |
Check if RTC Day Light Saving stored operation has been enabled or not.
RTCx | RTC Instance |
State | of bit (1 or 0). |
Definition at line 1736 of file stm32l4xx_ll_rtc.h.
__STATIC_INLINE void LL_RTC_TIME_SetFormat | ( | RTC_TypeDef * | RTCx, |
uint32_t | TimeFormat | ||
) |
Set time format (AM/24-hour or PM notation)
RTCx | RTC Instance |
TimeFormat | This parameter can be one of the following values: |
None |
Definition at line 1520 of file stm32l4xx_ll_rtc.h.
__STATIC_INLINE void LL_RTC_TIME_SetHour | ( | RTC_TypeDef * | RTCx, |
uint32_t | Hours | ||
) |
Set Hours in BCD format.
RTCx | RTC Instance |
Hours | Value between Min_Data=0x01 and Max_Data=0x12 or between Min_Data=0x00 and Max_Data=0x23 |
None |
Definition at line 1553 of file stm32l4xx_ll_rtc.h.
__STATIC_INLINE void LL_RTC_TIME_SetMinute | ( | RTC_TypeDef * | RTCx, |
uint32_t | Minutes | ||
) |
Set Minutes in BCD format.
RTCx | RTC Instance |
Minutes | Value between Min_Data=0x00 and Max_Data=0x59 |
None |
Definition at line 1588 of file stm32l4xx_ll_rtc.h.
__STATIC_INLINE void LL_RTC_TIME_SetSecond | ( | RTC_TypeDef * | RTCx, |
uint32_t | Seconds | ||
) |
Set Seconds in BCD format.
RTCx | RTC Instance |
Seconds | Value between Min_Data=0x00 and Max_Data=0x59 |
None |
Definition at line 1623 of file stm32l4xx_ll_rtc.h.
__STATIC_INLINE void LL_RTC_TIME_Synchronize | ( | RTC_TypeDef * | RTCx, |
uint32_t | ShiftSecond, | ||
uint32_t | Fraction | ||
) |
Synchronize to a remote clock with a high degree of precision.
RTCx | RTC Instance |
ShiftSecond | This parameter can be one of the following values: |
Fraction | Number of Seconds Fractions (any value from 0 to 0x7FFF) |
None |
Definition at line 1798 of file stm32l4xx_ll_rtc.h.