LL RTC Generic Driver
LL_RTC_Init
Function name
Function description
Parameters
Return values
Notes
LL_RTC_StructInit
Function name
Function description
Parameters
Return values
LL_RTC_TIME_Init
Function name
Function description
Parameters
Return values
LL_RTC_TIME_StructInit
Function name
Function description
1114/1371
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.
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.
None:
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
void LL_RTC_TIME_StructInit (LL_RTC_TimeTypeDef *
RTC_TimeStruct)
Set each LL_RTC_TimeTypeDef field to default value (Time =
00h:00min:00sec).
DocID028236 Rev 2
UM1940
Need help?
Do you have a question about the STM32F2 and is the answer not in the manual?
Questions and answers