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 #373 background imageLoading...
Page #373 background image
UM1581
Real-time clock (RTC)
DocID023800 Rev 1
373/584
 RTC_IT_TAMP3 : Tamper3 event interrupt
Return values
ï‚· None.
Notes
ï‚· None.
19.2.25 Time and Date configuration functions
19.2.25.1 RTC_SetTime
Function Name
ErrorStatus RTC_SetTime ( uint32_t RTC_Format,
RTC_TimeTypeDef * RTC_TimeStruct)
Function Description
Set the RTC current time.
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_TimeStruct : pointer to a RTC_TimeTypeDef structure
that contains the time configuration information for the RTC.
Return values
ï‚· An ErrorStatus enumeration value:
 SUCCESS: RTC Time register is configured
 ERROR: RTC Time register is not configured
Notes
ï‚· None.
19.2.25.2 RTC_TimeStructInit
Function Name
void RTC_TimeStructInit ( RTC_TimeTypeDef *
RTC_TimeStruct)
Function Description
Fills each RTC_TimeStruct member with its default value (Time =
00h:00min:00sec).
Parameters
ï‚· RTC_TimeStruct : pointer to a RTC_TimeTypeDef structure
which will be initialized.
Return values
ï‚· None.
Notes
ï‚· None.

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