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

Related product manuals