LL_RTC_Init
ErrorStatus LL_RTC_Init (RTC_TypeDef * RTCx,
LL_RTC_InitTypeDef * RTC_InitStruct)
Initializes the RTC registers according to the specified parameters
in RTC_InitStruct.
RTCx: RTC Instance
RTC_InitStruct: pointer to a LL_RTC_InitTypeDef structure
that contains the configuration information for the RTC
peripheral.
An: ErrorStatus enumeration value:
SUCCESS: RTC registers are initialized
ERROR: RTC registers are not initialized
The RTC Prescaler register is write protected and can be
written in initialization mode only.
LL_RTC_StructInit
void LL_RTC_StructInit (LL_RTC_InitTypeDef *
RTC_InitStruct)
Set each LL_RTC_InitTypeDef field to default value.
RTC_InitStruct: pointer to a LL_RTC_InitTypeDef structure
which will be initialized.
LL_RTC_TIME_Init
ErrorStatus LL_RTC_TIME_Init (RTC_TypeDef * RTCx,
uint32_t RTC_Format, LL_RTC_TimeTypeDef *
RTC_TimeStruct)
Set the RTC current time.
RTCx: RTC Instance
RTC_Format: This parameter can be one of the following
values:
LL_RTC_FORMAT_BIN
LL_RTC_FORMAT_BCD
RTC_TimeStruct: pointer to a RTC_TimeTypeDef structure
that contains the time configuration information for the RTC.
An: ErrorStatus enumeration value:
SUCCESS: RTC Time register is configured
ERROR: RTC Time register is not configured
LL_RTC_TIME_StructInit
void LL_RTC_TIME_StructInit (LL_RTC_TimeTypeDef *
RTC_TimeStruct)
Set each LL_RTC_TimeTypeDef field to default value (Time =
00h:00min:00sec).