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...
Real-time clock (RTC)
UM1581
374/584
DocID023800 Rev 1
19.2.25.3 RTC_GetTime
Function Name
void RTC_GetTime ( uint32_t RTC_Format, RTC_TimeTypeDef
* RTC_TimeStruct)
Function Description
Get the RTC current Time.
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_TimeStruct : pointer to a RTC_TimeTypeDef structure
that will contain the returned current time configuration.
Return values
None.
Notes
None.
19.2.25.4 RTC_GetSubSecond
Function Name
uint32_t RTC_GetSubSecond ( void )
Function Description
Gets the RTC current Calendar Subseconds value.
Parameters
None.
Return values
RTC current Calendar Subseconds value.
Notes
This function freeze the Time and Date registers after reading
the SSR register.
19.2.25.5 RTC_SetDate
Function Name
ErrorStatus RTC_SetDate ( uint32_t RTC_Format,
RTC_DateTypeDef * RTC_DateStruct)
Function Description
Set the RTC current date.

Table of Contents

Related product manuals