STM32F439xx HAL User Manual
Functions
Timestamp
RTC Exported Functions

Functions

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

Function Documentation

__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.
Reference Manual to LL API cross reference:
CR TSE LL_RTC_TS_Disable
Parameters:
RTCxRTC Instance
Return values:
None

Definition at line 2477 of file stm32f4xx_ll_rtc.h.

__STATIC_INLINE void LL_RTC_TS_DisableOnTamper ( RTC_TypeDef *  RTCx)

Disable timestamp on tamper detection event.

Reference Manual to LL API cross reference:
TAFCR TAMPTS LL_RTC_TS_DisableOnTamper
Parameters:
RTCxRTC Instance
Return values:
None

Definition at line 2685 of file stm32f4xx_ll_rtc.h.

__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.
Reference Manual to LL API cross reference:
CR TSE LL_RTC_TS_Enable
Parameters:
RTCxRTC Instance
Return values:
None

Definition at line 2465 of file stm32f4xx_ll_rtc.h.

__STATIC_INLINE void LL_RTC_TS_EnableOnTamper ( RTC_TypeDef *  RTCx)

Activate timestamp on tamper detection event.

Reference Manual to LL API cross reference:
TAFCR TAMPTS LL_RTC_TS_EnableOnTamper
Parameters:
RTCxRTC Instance
Return values:
None

Definition at line 2674 of file stm32f4xx_ll_rtc.h.

__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.
Reference Manual to LL API cross reference:
CR TSEDGE LL_RTC_TS_GetActiveEdge
Parameters:
RTCxRTC Instance
Return values:
Returnedvalue can be one of the following values:

Definition at line 2507 of file stm32f4xx_ll_rtc.h.

__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.
Reference Manual to LL API cross reference:
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 2651 of file stm32f4xx_ll_rtc.h.

__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
Reference Manual to LL API cross reference:
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 2634 of file stm32f4xx_ll_rtc.h.

__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
Reference Manual to LL API cross reference:
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 2533 of file stm32f4xx_ll_rtc.h.

__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
Reference Manual to LL API cross reference:
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 2546 of file stm32f4xx_ll_rtc.h.

__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
Reference Manual to LL API cross reference:
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:

Definition at line 2621 of file stm32f4xx_ll_rtc.h.

__STATIC_INLINE uint32_t LL_RTC_TS_GetPin ( RTC_TypeDef *  RTCx)

Get timestamp Pin.

Reference Manual to LL API cross reference:
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 selected as RTC TimeStamp Pin. (*)
(*) value not defined in all devices.
None

Definition at line 2720 of file stm32f4xx_ll_rtc.h.

__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
Reference Manual to LL API cross reference:
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 2559 of file stm32f4xx_ll_rtc.h.

__STATIC_INLINE uint32_t LL_RTC_TS_GetSubSecond ( RTC_TypeDef *  RTCx)

Get time-stamp sub second value.

Reference Manual to LL API cross reference:
TSSSR SS LL_RTC_TS_GetSubSecond
Parameters:
RTCxRTC Instance
Return values:
Valuebetween Min_Data=0x00 and Max_Data=0xFFFF

Definition at line 2662 of file stm32f4xx_ll_rtc.h.

__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.
Reference Manual to LL API cross reference:
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 2577 of file stm32f4xx_ll_rtc.h.

__STATIC_INLINE uint32_t LL_RTC_TS_GetTimeFormat ( RTC_TypeDef *  RTCx)

Get Timestamp AM/PM notation (AM or 24-hour format)

Reference Manual to LL API cross reference:
TSTR PM LL_RTC_TS_GetTimeFormat
Parameters:
RTCxRTC Instance
Return values:
Returnedvalue can be one of the following values:

Definition at line 2520 of file stm32f4xx_ll_rtc.h.

__STATIC_INLINE uint32_t LL_RTC_TS_GetWeekDay ( RTC_TypeDef *  RTCx)

Get Timestamp Week day.

Reference Manual to LL API cross reference:
TSDR WDU LL_RTC_TS_GetWeekDay
Parameters:
RTCxRTC Instance
Return values:
Returnedvalue can be one of the following values:

Definition at line 2596 of file stm32f4xx_ll_rtc.h.

__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
Reference Manual to LL API cross reference:
CR TSEDGE LL_RTC_TS_SetActiveEdge
Parameters:
RTCxRTC Instance
EdgeThis parameter can be one of the following values:
Return values:
None

Definition at line 2493 of file stm32f4xx_ll_rtc.h.

__STATIC_INLINE void LL_RTC_TS_SetPin ( RTC_TypeDef *  RTCx,
uint32_t  TSPin 
)

Set timestamp Pin.

Reference Manual to LL API cross reference:
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.
  • LL_RTC_TimeStampPin_Pos1: RTC_AF2 is selected as RTC TimeStamp. (*)
(*) value not defined in all devices.
Return values:
None

Definition at line 2703 of file stm32f4xx_ll_rtc.h.