HAL + 0/38 examples
SourceVu will show references to HAL_RTC_GetTime() from the following samples and libraries:
Examples
STM32446E_EVAL
Demonstrations
Examples
PWR
RTC
STM32469I-Discovery
Demonstrations
STM32469I_EVAL
Demonstrations
Examples
PWR
RTC
STM324xG_EVAL
Demonstrations
Examples
PWR
RTC
STM32F412G-Discovery
Demonstrations
Examples
RTC
STM32F413H-Discovery
Demonstrations
Examples
RTC
STM32F429I-Discovery
Demonstrations
STM32446E-Nucleo
Examples
RTC
STM324x9I_EVAL
Demonstrations
STemWin
Examples
PWR
RTC
STM32F410xx-Nucleo
Examples
RTC
STM32F411RE-Nucleo
Examples
RTC
STM32F412ZG-Nucleo
Examples
RTC
STM32F413ZH-Nucleo
Examples
RTC
STM32F429ZI-Nucleo
Applications
NetXDuo
Examples
RTC
STM32F446ZE-Nucleo
Examples
RTC
 
Symbols
loading...
Files
loading...
SummarySyntaxArgumentsRelatedReferences

Return value

HAL status

Notes

You can use SubSeconds and SecondFraction (sTime structure fields returned) to convert SubSeconds value in second fraction ratio with time unit following generic formula: Second fraction ratio * time_unit = [(SecondFraction - SubSeconds) / (SecondFraction + 1)] * time_unit This conversion can be performed only if no shift operation is pending (ie. SHFP=0) when PREDIV_S >= SS You must call HAL_RTC_GetDate() after HAL_RTC_GetTime() to unlock the values in the higher-order calendar shadow registers to ensure consistency between the time and date values. Reading RTC current time locks the values in calendar shadow registers until current date is read to ensure consistency between the time and date values.

References

from examples