HAL
LL_RTC_TIME_Get() is only used within HAL.
 
Symbols
loading...
Files
loading...

LL_RTC_TIME_Get() function

Get time (hour, minute and second) in BCD format

Syntax

__STATIC_INLINE uint32_t LL_RTC_TIME_Get(RTC_TypeDef *RTCx);

Arguments

RTCx

RTC Instance

Return value

Combination of hours, minutes and seconds (Format: 0x00HHMMSS).

Notes

if RTC shadow registers are not bypassed (BYPSHAD=0), need to check if RSF flag is set before reading this bit Read either RTC_SSR or RTC_TR locks the values in the higher-order calendar shadow registers until RTC_DR is read (LL_RTC_ReadReg(RTC, DR)). helper macros __LL_RTC_GET_HOUR, __LL_RTC_GET_MINUTE and __LL_RTC_GET_SECOND are available to get independently each parameter. TR HU LL_RTC_TIME_Get\n TR MNT LL_RTC_TIME_Get\n TR MNU LL_RTC_TIME_Get\n TR ST LL_RTC_TIME_Get\n TR SU LL_RTC_TIME_Get

References

LocationText
stm32f4xx_ll_rtc.h:1202
__STATIC_INLINE uint32_t LL_RTC_TIME_Get(RTC_TypeDef *RTCx)

Data Use

Data read by LL_RTC_TIME_Get()
LL_RTC_TIME_Get()
Type of LL_RTC_TIME_Get()
LL_RTC_TIME_Get()
uint32_t
all items filtered out