EasyManuals Logo

ST STM32F31xx User Manual

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
Page #375 background imageLoading...
Page #375 background image
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

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the ST STM32F31xx and is the answer not in the manual?

ST STM32F31xx Specifications

General IconGeneral
BrandST
ModelSTM32F31xx
CategoryMicrocontrollers
LanguageEnglish

Related product manuals