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

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