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

LL_RTC_TIME_Synchronize() function

Synchronize to a remote clock with a high degree of precision.

Syntax

__STATIC_INLINE void LL_RTC_TIME_Synchronize(RTC_TypeDef *RTCx,     uint32_t ShiftSecond,     uint32_t Fraction);

Arguments

RTCx

RTC Instance

ShiftSecond

This parameter can be one of the following values: @arg LL_RTC_SHIFT_SECOND_DELAY @arg LL_RTC_SHIFT_SECOND_ADVANCE

Fraction

Number of Seconds Fractions (any value from 0 to 0x7FFF)

Return value

None

Notes

This operation effectively subtracts from (delays) or advance the clock of a fraction of a second. Bit is write-protected. LL_RTC_DisableWriteProtection function should be called before. When REFCKON is set, firmware must not write to Shift control register. SHIFTR SUBFS LL_RTC_TIME_Synchronize

References

LocationText
stm32f4xx_ll_rtc.h:1299
__STATIC_INLINE void LL_RTC_TIME_Synchronize(RTC_TypeDef *RTCx, uint32_t ShiftSecond, uint32_t Fraction)

Data Use

Data read by LL_RTC_TIME_Synchronize()
LL_RTC_TIME_Synchronize()