Digital Calibration configuration functions.
More...
Digital Calibration configuration functions.
TimeStamp configuration functions.
===============================================================================
##### Digital Calibration configuration functions #####
===============================================================================
===============================================================================
##### TimeStamp configuration functions #####
===============================================================================
void RTC_CalibOutputCmd |
( |
FunctionalState |
NewState | ) |
|
Enables or disables the RTC clock to be output through the relative pin.
- Parameters
-
NewState,: | new state of the digital calibration Output. This parameter can be: ENABLE or DISABLE. |
- Return values
-
void RTC_CalibOutputConfig |
( |
uint32_t |
RTC_CalibOutput | ) |
|
Configure the Calibration Pinout (RTC_CALIB) Selection (1Hz or 512Hz).
- Parameters
-
RTC_CalibOutput,: | Select the Calibration output Selection . This parameter can be one of the following values:
- RTC_CalibOutput_512Hz: A signal has a regular waveform at 512Hz.
- RTC_CalibOutput_1Hz: A signal has a regular waveform at 1Hz.
|
- Return values
-
Get the RTC TimeStamp value and masks.
- Parameters
-
RTC_Format,: | specifies the format of the output parameters. This parameter can be one of the following values:
- RTC_Format_BIN: Binary data format
- RTC_Format_BCD: BCD data format
|
RTC_StampTimeStruct,: | pointer to a RTC_TimeTypeDef structure that will contains the TimeStamp time values. |
RTC_StampDateStruct,: | pointer to a RTC_DateTypeDef structure that will contains the TimeStamp date values. |
- Return values
-
uint32_t RTC_GetTimeStampSubSecond |
( |
void |
| ) |
|
Get the RTC timestamp Subseconds value.
- Parameters
-
- Return values
-
RTC | current timestamp Subseconds value. |
ErrorStatus RTC_SmoothCalibConfig |
( |
uint32_t |
RTC_SmoothCalibPeriod, |
|
|
uint32_t |
RTC_SmoothCalibPlusPulses, |
|
|
uint32_t |
RTC_SmouthCalibMinusPulsesValue |
|
) |
| |
Configures the Smooth Calibration Settings.
- Parameters
-
RTC_SmoothCalibPeriod,: | Select the Smooth Calibration Period. This parameter can be can be one of the following values:
- RTC_SmoothCalibPeriod_32sec: The smooth calibration periode is 32s.
- RTC_SmoothCalibPeriod_16sec: The smooth calibration periode is 16s.
- RTC_SmoothCalibPeriod_8sec: The smooth 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: Add one RTCCLK puls every 2**11 pulses.
- RTC_SmoothCalibPlusPulses_Reset: No RTCCLK pulses are added.
|
RTC_SmouthCalibMinusPulsesValue,: | Select the value of CALM[8:0] bits. This parameter can be one any value from 0 to 0x000001FF. |
- Return values
-
An | ErrorStatus enumeration value:
- SUCCESS: RTC Calib registers are configured
- ERROR: RTC Calib registers are not configured
|
void RTC_TimeStampCmd |
( |
uint32_t |
RTC_TimeStampEdge, |
|
|
FunctionalState |
NewState |
|
) |
| |
Enables or Disables the RTC TimeStamp functionality with the specified time stamp pin stimulating edge.
- Parameters
-
RTC_TimeStampEdge,: | Specifies the pin edge on which the TimeStamp is activated. This parameter can be one of the following:
- RTC_TimeStampEdge_Rising: the Time stamp event occurs on the rising edge of the related pin.
- RTC_TimeStampEdge_Falling: the Time stamp event occurs on the falling edge of the related pin.
|
NewState,: | new state of the TimeStamp. This parameter can be: ENABLE or DISABLE. |
- Return values
-