TimeStamp configuration functions.
More...
TimeStamp configuration functions.
===============================================================================
TimeStamp configuration functions
===============================================================================
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. |
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
-