Martin Johnson / STM32F3-Discovery

Dependents:   Space_Invaders_Demo neopixels gpio_test_stm32f3_discovery gpio_test_systimer ... more

Embed: (wiki syntax)

« Back to documentation index

TimeStamp configuration functions

TimeStamp configuration functions
[RTC_Private_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.
void RTC_GetTimeStamp (uint32_t RTC_Format, RTC_TimeTypeDef *RTC_StampTimeStruct, RTC_DateTypeDef *RTC_StampDateStruct)
 Gets the RTC TimeStamp value and masks.
uint32_t RTC_GetTimeStampSubSecond (void)
 Gets the RTC timestamp Subseconds value.

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 
)

Gets 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

Definition at line 1887 of file stm32f30x_rtc.c.

uint32_t RTC_GetTimeStampSubSecond ( void   )

Gets the RTC timestamp Subseconds value.

Parameters:
None
Return values:
RTCcurrent timestamp Subseconds value.

Definition at line 1931 of file stm32f30x_rtc.c.

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

Definition at line 1843 of file stm32f30x_rtc.c.