STM32F103xB HAL User Manual
Functions
Time
RTC Exported Functions

Functions

__STATIC_INLINE void LL_RTC_TIME_Set (RTC_TypeDef *RTCx, uint32_t TimeCounter)
 Set time counter in BCD format.
__STATIC_INLINE uint32_t LL_RTC_TIME_Get (RTC_TypeDef *RTCx)
 Get time counter in BCD format.

Function Documentation

__STATIC_INLINE uint32_t LL_RTC_TIME_Get ( RTC_TypeDef *  RTCx)

Get time counter in BCD format.

Reference Manual to LL API cross reference:
CNTH CNT LL_RTC_TIME_Get
CNTL CNT LL_RTC_TIME_Get
Parameters:
RTCxRTC Instance
Return values:
Valuebetween Min_Data = 0 and Max_Data = 0xFFFFF

Definition at line 389 of file stm32f1xx_ll_rtc.h.

__STATIC_INLINE void LL_RTC_TIME_Set ( RTC_TypeDef *  RTCx,
uint32_t  TimeCounter 
)

Set time counter in BCD format.

Note:
Bit is write-protected. LL_RTC_DisableWriteProtection function should be called before.
It can be written in initialization mode only (LL_RTC_EnterInitMode function)
Reference Manual to LL API cross reference:
CNTH CNT LL_RTC_TIME_Set
CNTL CNT LL_RTC_TIME_Set
Parameters:
RTCxRTC Instance
TimeCounterValue between Min_Data=0x00 and Max_Data=0xFFFFF
Return values:
None

Definition at line 374 of file stm32f1xx_ll_rtc.h.

Referenced by LL_RTC_TIME_Init(), and LL_RTC_TIME_SetCounter().