STM32F4xx_HAL_Driver  1.8.3
+ Collaboration diagram for Timestamp:

Functions

__STATIC_INLINE void LL_RTC_TS_Enable (RTC_TypeDef *RTCx)
 Enable Timestamp. More...
 
__STATIC_INLINE void LL_RTC_TS_Disable (RTC_TypeDef *RTCx)
 Disable Timestamp. More...
 
__STATIC_INLINE void LL_RTC_TS_SetActiveEdge (RTC_TypeDef *RTCx, uint32_t Edge)
 Set Time-stamp event active edge. More...
 
__STATIC_INLINE uint32_t LL_RTC_TS_GetActiveEdge (RTC_TypeDef *RTCx)
 Get Time-stamp event active edge. More...
 
__STATIC_INLINE uint32_t LL_RTC_TS_GetTimeFormat (RTC_TypeDef *RTCx)
 Get Timestamp AM/PM notation (AM or 24-hour format) @rmtoll TSTR PM LL_RTC_TS_GetTimeFormat. More...
 
__STATIC_INLINE uint32_t LL_RTC_TS_GetHour (RTC_TypeDef *RTCx)
 Get Timestamp Hours in BCD format. More...
 
__STATIC_INLINE uint32_t LL_RTC_TS_GetMinute (RTC_TypeDef *RTCx)
 Get Timestamp Minutes in BCD format. More...
 
__STATIC_INLINE uint32_t LL_RTC_TS_GetSecond (RTC_TypeDef *RTCx)
 Get Timestamp Seconds in BCD format. More...
 
__STATIC_INLINE uint32_t LL_RTC_TS_GetTime (RTC_TypeDef *RTCx)
 Get Timestamp time (hour, minute and second) in BCD format. More...
 
__STATIC_INLINE uint32_t LL_RTC_TS_GetWeekDay (RTC_TypeDef *RTCx)
 Get Timestamp Week day @rmtoll TSDR WDU LL_RTC_TS_GetWeekDay. More...
 
__STATIC_INLINE uint32_t LL_RTC_TS_GetMonth (RTC_TypeDef *RTCx)
 Get Timestamp Month in BCD format. More...
 
__STATIC_INLINE uint32_t LL_RTC_TS_GetDay (RTC_TypeDef *RTCx)
 Get Timestamp Day in BCD format. More...
 
__STATIC_INLINE uint32_t LL_RTC_TS_GetDate (RTC_TypeDef *RTCx)
 Get Timestamp date (WeekDay, Day and Month) in BCD format. More...
 
__STATIC_INLINE uint32_t LL_RTC_TS_GetSubSecond (RTC_TypeDef *RTCx)
 Get time-stamp subseconds value @rmtoll TSSSR SS LL_RTC_TS_GetSubSecond. More...
 
__STATIC_INLINE void LL_RTC_TS_EnableOnTamper (RTC_TypeDef *RTCx)
 Activate timestamp on tamper detection event @rmtoll TAFCR TAMPTS LL_RTC_TS_EnableOnTamper. More...
 
__STATIC_INLINE void LL_RTC_TS_DisableOnTamper (RTC_TypeDef *RTCx)
 Disable timestamp on tamper detection event @rmtoll TAFCR TAMPTS LL_RTC_TS_DisableOnTamper. More...
 
__STATIC_INLINE void LL_RTC_TS_SetPin (RTC_TypeDef *RTCx, uint32_t TSPin)
 Set timestamp Pin @rmtoll TAFCR TSINSEL LL_RTC_TS_SetPin. More...
 
__STATIC_INLINE uint32_t LL_RTC_TS_GetPin (RTC_TypeDef *RTCx)
 Get timestamp Pin @rmtoll TAFCR TSINSEL LL_RTC_TS_GetPin. More...
 

Detailed Description

Function Documentation

◆ LL_RTC_TS_Disable()

__STATIC_INLINE void LL_RTC_TS_Disable ( RTC_TypeDef *  RTCx)

Disable Timestamp.

Note
Bit is write-protected. LL_RTC_DisableWriteProtection function should be called before. @rmtoll CR TSE LL_RTC_TS_Disable
Parameters
RTCxRTC Instance
Return values
None

Definition at line 2303 of file stm32f4xx_ll_rtc.h.

◆ LL_RTC_TS_DisableOnTamper()

__STATIC_INLINE void LL_RTC_TS_DisableOnTamper ( RTC_TypeDef *  RTCx)

Disable timestamp on tamper detection event @rmtoll TAFCR TAMPTS LL_RTC_TS_DisableOnTamper.

Parameters
RTCxRTC Instance
Return values
None

Definition at line 2511 of file stm32f4xx_ll_rtc.h.

◆ LL_RTC_TS_Enable()

__STATIC_INLINE void LL_RTC_TS_Enable ( RTC_TypeDef *  RTCx)

Enable Timestamp.

Note
Bit is write-protected. LL_RTC_DisableWriteProtection function should be called before. @rmtoll CR TSE LL_RTC_TS_Enable
Parameters
RTCxRTC Instance
Return values
None

Definition at line 2291 of file stm32f4xx_ll_rtc.h.

◆ LL_RTC_TS_EnableOnTamper()

__STATIC_INLINE void LL_RTC_TS_EnableOnTamper ( RTC_TypeDef *  RTCx)

Activate timestamp on tamper detection event @rmtoll TAFCR TAMPTS LL_RTC_TS_EnableOnTamper.

Parameters
RTCxRTC Instance
Return values
None

Definition at line 2500 of file stm32f4xx_ll_rtc.h.

◆ LL_RTC_TS_GetActiveEdge()

__STATIC_INLINE uint32_t LL_RTC_TS_GetActiveEdge ( RTC_TypeDef *  RTCx)

Get Time-stamp event active edge.

Note
Bit is write-protected. LL_RTC_DisableWriteProtection function should be called before. @rmtoll CR TSEDGE LL_RTC_TS_GetActiveEdge
Parameters
RTCxRTC Instance
Return values
Returnedvalue can be one of the following values:
  • LL_RTC_TIMESTAMP_EDGE_RISING
  • LL_RTC_TIMESTAMP_EDGE_FALLING

Definition at line 2333 of file stm32f4xx_ll_rtc.h.

◆ LL_RTC_TS_GetDate()

__STATIC_INLINE uint32_t LL_RTC_TS_GetDate ( RTC_TypeDef *  RTCx)

Get Timestamp date (WeekDay, Day and Month) in BCD format.

Note
helper macros __LL_RTC_GET_WEEKDAY, __LL_RTC_GET_MONTH, and __LL_RTC_GET_DAY are available to get independently each parameter. @rmtoll TSDR WDU LL_RTC_TS_GetDate
TSDR MT LL_RTC_TS_GetDate
TSDR MU LL_RTC_TS_GetDate
TSDR DT LL_RTC_TS_GetDate
TSDR DU LL_RTC_TS_GetDate
Parameters
RTCxRTC Instance
Return values
Combinationof Weekday, Day and Month

Definition at line 2477 of file stm32f4xx_ll_rtc.h.

◆ LL_RTC_TS_GetDay()

__STATIC_INLINE uint32_t LL_RTC_TS_GetDay ( RTC_TypeDef *  RTCx)

Get Timestamp Day in BCD format.

Note
helper macro __LL_RTC_CONVERT_BCD2BIN is available to convert Day from BCD to Binary format @rmtoll TSDR DT LL_RTC_TS_GetDay
TSDR DU LL_RTC_TS_GetDay
Parameters
RTCxRTC Instance
Return values
Valuebetween Min_Data=0x01 and Max_Data=0x31

Definition at line 2460 of file stm32f4xx_ll_rtc.h.

◆ LL_RTC_TS_GetHour()

__STATIC_INLINE uint32_t LL_RTC_TS_GetHour ( RTC_TypeDef *  RTCx)

Get Timestamp Hours in BCD format.

Note
helper macro __LL_RTC_CONVERT_BCD2BIN is available to convert Hours from BCD to Binary format @rmtoll TSTR HT LL_RTC_TS_GetHour
TSTR HU LL_RTC_TS_GetHour
Parameters
RTCxRTC Instance
Return values
Valuebetween Min_Data=0x01 and Max_Data=0x12 or between Min_Data=0x00 and Max_Data=0x23

Definition at line 2359 of file stm32f4xx_ll_rtc.h.

◆ LL_RTC_TS_GetMinute()

__STATIC_INLINE uint32_t LL_RTC_TS_GetMinute ( RTC_TypeDef *  RTCx)

Get Timestamp Minutes in BCD format.

Note
helper macro __LL_RTC_CONVERT_BCD2BIN is available to convert Minutes from BCD to Binary format @rmtoll TSTR MNT LL_RTC_TS_GetMinute
TSTR MNU LL_RTC_TS_GetMinute
Parameters
RTCxRTC Instance
Return values
Valuebetween Min_Data=0x00 and Max_Data=0x59

Definition at line 2372 of file stm32f4xx_ll_rtc.h.

◆ LL_RTC_TS_GetMonth()

__STATIC_INLINE uint32_t LL_RTC_TS_GetMonth ( RTC_TypeDef *  RTCx)

Get Timestamp Month in BCD format.

Note
helper macro __LL_RTC_CONVERT_BCD2BIN is available to convert Month from BCD to Binary format @rmtoll TSDR MT LL_RTC_TS_GetMonth
TSDR MU LL_RTC_TS_GetMonth
Parameters
RTCxRTC Instance
Return values
Returnedvalue can be one of the following values:
  • LL_RTC_MONTH_JANUARY
  • LL_RTC_MONTH_FEBRUARY
  • LL_RTC_MONTH_MARCH
  • LL_RTC_MONTH_APRIL
  • LL_RTC_MONTH_MAY
  • LL_RTC_MONTH_JUNE
  • LL_RTC_MONTH_JULY
  • LL_RTC_MONTH_AUGUST
  • LL_RTC_MONTH_SEPTEMBER
  • LL_RTC_MONTH_OCTOBER
  • LL_RTC_MONTH_NOVEMBER
  • LL_RTC_MONTH_DECEMBER

Definition at line 2447 of file stm32f4xx_ll_rtc.h.

◆ LL_RTC_TS_GetPin()

__STATIC_INLINE uint32_t LL_RTC_TS_GetPin ( RTC_TypeDef *  RTCx)

Get timestamp Pin @rmtoll TAFCR TSINSEL LL_RTC_TS_GetPin.

Parameters
RTCxRTC Instance
Return values
Returnedvalue can be one of the following values:
  • LL_RTC_TimeStampPin_Default: RTC_AF1 is used as RTC Timestamp Pin.
  • LL_RTC_TimeStampPin_Pos1: RTC_AF2 is used as RTC Timestamp Pin. (*)
(*) value not applicable to all devices.
None

Definition at line 2545 of file stm32f4xx_ll_rtc.h.

◆ LL_RTC_TS_GetSecond()

__STATIC_INLINE uint32_t LL_RTC_TS_GetSecond ( RTC_TypeDef *  RTCx)

Get Timestamp Seconds in BCD format.

Note
helper macro __LL_RTC_CONVERT_BCD2BIN is available to convert Seconds from BCD to Binary format @rmtoll TSTR ST LL_RTC_TS_GetSecond
TSTR SU LL_RTC_TS_GetSecond
Parameters
RTCxRTC Instance
Return values
Valuebetween Min_Data=0x00 and Max_Data=0x59

Definition at line 2385 of file stm32f4xx_ll_rtc.h.

◆ LL_RTC_TS_GetSubSecond()

__STATIC_INLINE uint32_t LL_RTC_TS_GetSubSecond ( RTC_TypeDef *  RTCx)

Get time-stamp subseconds value @rmtoll TSSSR SS LL_RTC_TS_GetSubSecond.

Parameters
RTCxRTC Instance
Return values
Valuebetween Min_Data=0x00 and Max_Data=0xFFFF

Definition at line 2488 of file stm32f4xx_ll_rtc.h.

◆ LL_RTC_TS_GetTime()

__STATIC_INLINE uint32_t LL_RTC_TS_GetTime ( RTC_TypeDef *  RTCx)

Get Timestamp time (hour, minute and second) in BCD format.

Note
helper macros __LL_RTC_GET_HOUR, __LL_RTC_GET_MINUTE and __LL_RTC_GET_SECOND are available to get independently each parameter. @rmtoll TSTR HT LL_RTC_TS_GetTime
TSTR HU LL_RTC_TS_GetTime
TSTR MNT LL_RTC_TS_GetTime
TSTR MNU LL_RTC_TS_GetTime
TSTR ST LL_RTC_TS_GetTime
TSTR SU LL_RTC_TS_GetTime
Parameters
RTCxRTC Instance
Return values
Combinationof hours, minutes and seconds.

Definition at line 2403 of file stm32f4xx_ll_rtc.h.

◆ LL_RTC_TS_GetTimeFormat()

__STATIC_INLINE uint32_t LL_RTC_TS_GetTimeFormat ( RTC_TypeDef *  RTCx)

Get Timestamp AM/PM notation (AM or 24-hour format) @rmtoll TSTR PM LL_RTC_TS_GetTimeFormat.

Parameters
RTCxRTC Instance
Return values
Returnedvalue can be one of the following values:
  • LL_RTC_TS_TIME_FORMAT_AM
  • LL_RTC_TS_TIME_FORMAT_PM

Definition at line 2346 of file stm32f4xx_ll_rtc.h.

◆ LL_RTC_TS_GetWeekDay()

__STATIC_INLINE uint32_t LL_RTC_TS_GetWeekDay ( RTC_TypeDef *  RTCx)

Get Timestamp Week day @rmtoll TSDR WDU LL_RTC_TS_GetWeekDay.

Parameters
RTCxRTC Instance
Return values
Returnedvalue can be one of the following values:
  • LL_RTC_WEEKDAY_MONDAY
  • LL_RTC_WEEKDAY_TUESDAY
  • LL_RTC_WEEKDAY_WEDNESDAY
  • LL_RTC_WEEKDAY_THURSDAY
  • LL_RTC_WEEKDAY_FRIDAY
  • LL_RTC_WEEKDAY_SATURDAY
  • LL_RTC_WEEKDAY_SUNDAY

Definition at line 2422 of file stm32f4xx_ll_rtc.h.

◆ LL_RTC_TS_SetActiveEdge()

__STATIC_INLINE void LL_RTC_TS_SetActiveEdge ( RTC_TypeDef *  RTCx,
uint32_t  Edge 
)

Set Time-stamp event active edge.

Note
Bit is write-protected. LL_RTC_DisableWriteProtection function should be called before.
TSE must be reset when TSEDGE is changed to avoid unwanted TSF setting @rmtoll CR TSEDGE LL_RTC_TS_SetActiveEdge
Parameters
RTCxRTC Instance
EdgeThis parameter can be one of the following values:
  • LL_RTC_TIMESTAMP_EDGE_RISING
  • LL_RTC_TIMESTAMP_EDGE_FALLING
Return values
None

Definition at line 2319 of file stm32f4xx_ll_rtc.h.

◆ LL_RTC_TS_SetPin()

__STATIC_INLINE void LL_RTC_TS_SetPin ( RTC_TypeDef *  RTCx,
uint32_t  TSPin 
)

Set timestamp Pin @rmtoll TAFCR TSINSEL LL_RTC_TS_SetPin.

Parameters
RTCxRTC Instance
TSPinspecifies the RTC Timestamp Pin. This parameter can be one of the following values:
  • LL_RTC_TimeStampPin_Default: RTC_AF1 is used as RTC Timestamp Pin.
  • LL_RTC_TimeStampPin_Pos1: RTC_AF2 is used as RTC Timestamp Pin. (*)
(*) value not applicable to all devices.
Return values
None

Definition at line 2529 of file stm32f4xx_ll_rtc.h.