Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of TUKS-COURSE-TIMER by
Timestamp
[RTC Exported Functions]
Functions | |
| __STATIC_INLINE void | LL_RTC_TS_EnableInternalEvent (RTC_TypeDef *RTCx) |
| Enable internal event timestamp. | |
| __STATIC_INLINE void | LL_RTC_TS_DisableInternalEvent (RTC_TypeDef *RTCx) |
| Disable internal event timestamp. | |
| __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) TSTR PM LL_RTC_TS_GetTimeFormat. | |
| __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 TSDR WDU LL_RTC_TS_GetWeekDay. | |
| __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 TSSSR SS LL_RTC_TS_GetSubSecond. | |
| __STATIC_INLINE void | LL_RTC_TS_EnableOnTamper (RTC_TypeDef *RTCx) |
| Activate timestamp on tamper detection event TAMPCR TAMPTS LL_RTC_TS_EnableOnTamper. | |
| __STATIC_INLINE void | LL_RTC_TS_DisableOnTamper (RTC_TypeDef *RTCx) |
| Disable timestamp on tamper detection event TAMPCR TAMPTS LL_RTC_TS_DisableOnTamper. | |
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. CR TSE LL_RTC_TS_Disable
- Parameters:
-
RTCx RTC Instance
- Return values:
-
None
Definition at line 2478 of file stm32l4xx_ll_rtc.h.
| __STATIC_INLINE void LL_RTC_TS_DisableInternalEvent | ( | RTC_TypeDef * | RTCx ) |
Disable internal event timestamp.
- Note:
- Bit is write-protected. LL_RTC_DisableWriteProtection function should be called before. CR ITSE LL_RTC_TS_DisableInternalEvent
- Parameters:
-
RTCx RTC Instance
- Return values:
-
None
Definition at line 2454 of file stm32l4xx_ll_rtc.h.
| __STATIC_INLINE void LL_RTC_TS_DisableOnTamper | ( | RTC_TypeDef * | RTCx ) |
Disable timestamp on tamper detection event TAMPCR TAMPTS LL_RTC_TS_DisableOnTamper.
- Parameters:
-
RTCx RTC Instance
- Return values:
-
None
Definition at line 2686 of file stm32l4xx_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. CR TSE LL_RTC_TS_Enable
- Parameters:
-
RTCx RTC Instance
- Return values:
-
None
Definition at line 2466 of file stm32l4xx_ll_rtc.h.
| __STATIC_INLINE void LL_RTC_TS_EnableInternalEvent | ( | RTC_TypeDef * | RTCx ) |
Enable internal event timestamp.
- Note:
- Bit is write-protected. LL_RTC_DisableWriteProtection function should be called before. CR ITSE LL_RTC_TS_EnableInternalEvent
- Parameters:
-
RTCx RTC Instance
- Return values:
-
None
Definition at line 2442 of file stm32l4xx_ll_rtc.h.
| __STATIC_INLINE void LL_RTC_TS_EnableOnTamper | ( | RTC_TypeDef * | RTCx ) |
Activate timestamp on tamper detection event TAMPCR TAMPTS LL_RTC_TS_EnableOnTamper.
- Parameters:
-
RTCx RTC Instance
- Return values:
-
None
Definition at line 2675 of file stm32l4xx_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. CR TSEDGE LL_RTC_TS_GetActiveEdge
- Parameters:
-
RTCx RTC Instance
- Return values:
-
Returned value can be one of the following values: - LL_RTC_TIMESTAMP_EDGE_RISING
- LL_RTC_TIMESTAMP_EDGE_FALLING
Definition at line 2508 of file stm32l4xx_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. 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:
-
RTCx RTC Instance
- Return values:
-
Combination of Weekday, Day and Month
Definition at line 2652 of file stm32l4xx_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 TSDR DT LL_RTC_TS_GetDay
TSDR DU LL_RTC_TS_GetDay
- Parameters:
-
RTCx RTC Instance
- Return values:
-
Value between Min_Data=0x01 and Max_Data=0x31
Definition at line 2635 of file stm32l4xx_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 TSTR HT LL_RTC_TS_GetHour
TSTR HU LL_RTC_TS_GetHour
- Parameters:
-
RTCx RTC Instance
- Return values:
-
Value between Min_Data=0x01 and Max_Data=0x12 or between Min_Data=0x00 and Max_Data=0x23
Definition at line 2534 of file stm32l4xx_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 TSTR MNT LL_RTC_TS_GetMinute
TSTR MNU LL_RTC_TS_GetMinute
- Parameters:
-
RTCx RTC Instance
- Return values:
-
Value between Min_Data=0x00 and Max_Data=0x59
Definition at line 2547 of file stm32l4xx_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 TSDR MT LL_RTC_TS_GetMonth
TSDR MU LL_RTC_TS_GetMonth
- Parameters:
-
RTCx RTC Instance
- Return values:
-
Returned value 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 2622 of file stm32l4xx_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 TSTR ST LL_RTC_TS_GetSecond
TSTR SU LL_RTC_TS_GetSecond
- Parameters:
-
RTCx RTC Instance
- Return values:
-
Value between Min_Data=0x00 and Max_Data=0x59
Definition at line 2560 of file stm32l4xx_ll_rtc.h.
| __STATIC_INLINE uint32_t LL_RTC_TS_GetSubSecond | ( | RTC_TypeDef * | RTCx ) |
Get time-stamp sub second value TSSSR SS LL_RTC_TS_GetSubSecond.
- Parameters:
-
RTCx RTC Instance
- Return values:
-
Value between Min_Data=0x00 and Max_Data=0xFFFF
Definition at line 2663 of file stm32l4xx_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. 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:
-
RTCx RTC Instance
- Return values:
-
Combination of hours, minutes and seconds.
Definition at line 2578 of file stm32l4xx_ll_rtc.h.
| __STATIC_INLINE uint32_t LL_RTC_TS_GetTimeFormat | ( | RTC_TypeDef * | RTCx ) |
Get Timestamp AM/PM notation (AM or 24-hour format) TSTR PM LL_RTC_TS_GetTimeFormat.
- Parameters:
-
RTCx RTC Instance
- Return values:
-
Returned value can be one of the following values: - LL_RTC_TS_TIME_FORMAT_AM
- LL_RTC_TS_TIME_FORMAT_PM
Definition at line 2521 of file stm32l4xx_ll_rtc.h.
| __STATIC_INLINE uint32_t LL_RTC_TS_GetWeekDay | ( | RTC_TypeDef * | RTCx ) |
Get Timestamp Week day TSDR WDU LL_RTC_TS_GetWeekDay.
- Parameters:
-
RTCx RTC Instance
- Return values:
-
Returned value 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 2597 of file stm32l4xx_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 CR TSEDGE LL_RTC_TS_SetActiveEdge
- Parameters:
-
RTCx RTC Instance Edge This parameter can be one of the following values: - LL_RTC_TIMESTAMP_EDGE_RISING
- LL_RTC_TIMESTAMP_EDGE_FALLING
- Return values:
-
None
Definition at line 2494 of file stm32l4xx_ll_rtc.h.
Generated on Tue Jul 12 2022 17:38:58 by
1.7.2
