Timestamp Configuration Functions - ST STM32F31xx User Manual

Table of Contents

Advertisement

Real-time clock (RTC)
Parameters
Return values
Notes
19.2.31

Timestamp configuration functions

19.2.31.1 RTC_TimeStampCmd
Function Name
Function Description
Parameters
Return values
Notes
384/584
RTC_SmoothCalibPeriod : : Select the Smooth Calibration
Period. This parameter can be can be one of the following
values:
RTC_SmoothCalibPeriod_32sec :
calibration periode is 32s.
RTC_SmoothCalibPeriod_16sec :
calibration periode is 16s.
RTC_SmoothCalibPeriod_8sec :
calibartion periode is 8s.
RTC_SmoothCalibPlusPulses : : Select to Set or reset the
CALP bit. This parameter can be one of the following values:
RTC_SmoothCalibPlusPulses_Set :
RTCCLK puls every 2**11 pulses.
RTC_SmoothCalibPlusPulses_Reset :
pulses are added.
RTC_SmouthCalibMinusPulsesValue : Select the value of
CALM[8:0] bits. This parameter can be one any value from 0
to 0x000001FF.
An ErrorStatus enumeration value:
SUCCESS: RTC Calib registers are configured
ERROR: RTC Calib registers are not configured
None.
void RTC_TimeStampCmd ( uint32_t RTC_TimeStampEdge,
FunctionalState
NewState)
Enables or Disables the RTC TimeStamp functionality with the
specified time stamp pin stimulating edge.
RTC_TimeStampEdge : Specifies the pin edge on which the
TimeStamp is activated. This parameter can be one of the
following:
RTC_TimeStampEdge_Rising :
occurs on the rising edge of the related pin.
RTC_TimeStampEdge_Falling :
occurs on the falling edge of the related pin.
NewState : new state of the TimeStamp. This parameter can
be: ENABLE or DISABLE.
None.
None.
DocID023800 Rev 1
UM1581
The smooth
The smooth
The smooth
Add one
No RTCCLK
the Time stamp event
the Time stamp event

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the STM32F31xx and is the answer not in the manual?

Subscribe to Our Youtube Channel

This manual is also suitable for:

Stm32f30xx

Table of Contents