HAL
HAL_RTCEx_SetSynchroShift() is only used within HAL.
 
Symbols
loading...
Files
loading...
CodeScopeSTM32 Libraries and SamplesHALHAL_RTCEx_SetSynchroShift()

HAL_RTCEx_SetSynchroShift() function

Configures the Synchronization Shift Control Settings.

Syntax

HAL_StatusTypeDef HAL_RTCEx_SetSynchroShift(RTC_HandleTypeDef *hrtc,     uint32_t ShiftAdd1S,     uint32_t ShiftSubFS);
Implemented in stm32f4xx_hal_rtc_ex.c:1483

Arguments

hrtc

pointer to a RTC_HandleTypeDef structure that contains the configuration information for RTC.

ShiftAdd1S

Select to add or not 1 second to the time calendar. This parameter can be one of the following values: @arg RTC_SHIFTADD1S_SET: Add one second to the clock calendar. @arg RTC_SHIFTADD1S_RESET: No effect.

ShiftSubFS

Select the number of Second Fractions to substitute. This parameter can be one any value from 0 to 0x7FFF.

Return value

HAL status

Notes

When REFCKON is set, firmware must not write to Shift control register.

References

LocationText
stm32f4xx_hal_rtc_ex.c:1483
HAL_StatusTypeDef HAL_RTCEx_SetSynchroShift(RTC_HandleTypeDef *hrtc, uint32_t ShiftAdd1S, uint32_t ShiftSubFS)
stm32f4xx_hal_rtc_ex.h:892
HAL_StatusTypeDef HAL_RTCEx_SetSynchroShift(RTC_HandleTypeDef *hrtc, uint32_t ShiftAdd1S, uint32_t ShiftSubFS);

Call Tree