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
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

Related product manuals