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 #370 background imageLoading...
Page #370 background image
Real-time clock (RTC)
UM1581
370/584
DocID023800 Rev 1
19.2.23 Shift control synchronisation functions
19.2.23.1 RTC_SynchroShiftConfig
Function Name
ErrorStatus RTC_SynchroShiftConfig ( uint32_t
RTC_ShiftAdd1S, uint32_t RTC_ShiftSubFS)
Function Description
Configures the Synchronization Shift Control Settings.
Parameters
ï‚· RTC_ShiftAdd1S : : Select to add or not 1 second to the
time Calendar. This parameter can be one of the following
values :
 RTC_ShiftAdd1S_Set : Add one second to the clock
calendar.
 RTC_ShiftAdd1S_Reset : No effect.
ï‚· RTC_ShiftSubFS : Select the number of Second Fractions
to Substitute. This parameter can be one any value from 0 to
0x7FFF.
Return values
ï‚· An ErrorStatus enumeration value:
 SUCCESS: RTC Shift registers are configured
 ERROR: RTC Shift registers are not configured
Notes
ï‚· When REFCKON is set, firmware must not write to Shift
control register
19.2.24 Interrupts and flags management functions
19.2.24.1 RTC_ITConfig
Function Name
void RTC_ITConfig ( uint32_t RTC_IT, FunctionalState
NewState)
Function Description
Enables or disables the specified RTC interrupts.
Parameters
ï‚· RTC_IT : specifies the RTC interrupt sources to be enabled
or disabled. This parameter can be any combination of the
following values:
 RTC_IT_TS : Time Stamp interrupt mask
 RTC_IT_WUT : WakeUp Timer interrupt mask
 RTC_IT_ALRB : Alarm B interrupt mask
 RTC_IT_ALRA : Alarm A interrupt mask
 RTC_IT_TAMP : Tamper event interrupt mask
ï‚· NewState : new state of the specified RTC interrupts. This
parameter can be: ENABLE or DISABLE.
Return values
ï‚· None.
Notes
ï‚· None.

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