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 #366 background imageLoading...
Page #366 background image
Real-time clock (RTC)
UM1581
366/584
DocID023800 Rev 1
Function Name
void RTC_StructInit ( RTC_InitTypeDef * RTC_InitStruct)
Function Description
Fills each RTC_InitStruct member with its default value.
Parameters
ï‚· RTC_InitStruct : pointer to a RTC_InitTypeDef structure
which will be initialized.
Return values
ï‚· None.
Notes
ï‚· None.
19.2.20.4 RTC_WriteProtectionCmd
Function Name
void RTC_WriteProtectionCmd ( FunctionalState NewState)
Function Description
Enables or disables the RTC registers write protection.
Parameters
ï‚· NewState : new state of the write protection. This parameter
can be: ENABLE or DISABLE.
Return values
ï‚· None.
Notes
ï‚· All the RTC registers are write protected except for
RTC_ISR[13:8], RTC_TAFCR and RTC_BKPxR.
ï‚· Writing a wrong key reactivates the write protection.
ï‚· The protection mechanism is not affected by system reset.
19.2.20.5 RTC_EnterInitMode
Function Name
ErrorStatus RTC_EnterInitMode ( void )
Function Description
Enters the RTC Initialization mode.
Parameters
ï‚· None.
Return values
ï‚· An ErrorStatus enumeration value:
 SUCCESS: RTC is in Init mode
 ERROR: RTC is not in Init mode
Notes
ï‚· The RTC Initialization mode is write protected, use the
RTC_WriteProtectionCmd(DISABLE) before calling this
function.

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