EasyManua.ls Logo

ST STM32F31xx

ST STM32F31xx
584 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
UM1581
Real-time clock (RTC)
DocID023800 Rev 1
375/584
Parameters
RTC_Format : specifies the format of the entered
parameters. This parameter can be one of the following
values:
RTC_Format_BIN : Binary data format
RTC_Format_BCD : BCD data format
RTC_DateStruct : pointer to a RTC_DateTypeDef structure
that contains the date configuration information for the RTC.
Return values
An ErrorStatus enumeration value:
SUCCESS: RTC Date register is configured
ERROR: RTC Date register is not configured
Notes
None.
19.2.25.6 RTC_DateStructInit
Function Name
void RTC_DateStructInit ( RTC_DateTypeDef *
RTC_DateStruct)
Function Description
Fills each RTC_DateStruct member with its default value
(Monday, January 01 xx00).
Parameters
RTC_DateStruct : pointer to a RTC_DateTypeDef structure
which will be initialized.
Return values
None.
Notes
None.
19.2.25.7 RTC_GetDate
Function Name
void RTC_GetDate ( uint32_t RTC_Format, RTC_DateTypeDef
* RTC_DateStruct)
Function Description
Get the RTC current date.
Parameters
RTC_Format : specifies the format of the returned
parameters. This parameter can be one of the following
values:
RTC_Format_BIN : Binary data format
RTC_Format_BCD : BCD data format
RTC_DateStruct : pointer to a RTC_DateTypeDef structure
that will contain the returned current date configuration.

Table of Contents

Related product manuals