STM32F2 Standard Peripheral bibliotheek  1.0
ST Microelectronics bibliotheek documentatie voor de STM32F2 Standard Peripheral Library
 All Data Structures Files Functions Variables Enumerations Enumerator Groups
TimeStamp configuration functions

TimeStamp configuration functions. More...

Functions

void RTC_TimeStampCmd (uint32_t RTC_TimeStampEdge, FunctionalState NewState)
 Enables or Disables the RTC TimeStamp functionality with the specified time stamp pin stimulating edge. More...
 
void RTC_GetTimeStamp (uint32_t RTC_Format, RTC_TimeTypeDef *RTC_StampTimeStruct, RTC_DateTypeDef *RTC_StampDateStruct)
 Get the RTC TimeStamp value and masks. More...
 

Detailed Description

TimeStamp configuration functions.

 ===============================================================================
                       TimeStamp configuration functions
 ===============================================================================  

Function Documentation

void RTC_GetTimeStamp ( uint32_t  RTC_Format,
RTC_TimeTypeDef RTC_StampTimeStruct,
RTC_DateTypeDef RTC_StampDateStruct 
)

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

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
None