STM32L4xx_HAL_Driver  1.14.0
stm32l4xx_ll_rtc.h File Reference

Header file of RTC LL module. More...

Go to the source code of this file.

Data Structures

struct  LL_RTC_InitTypeDef
 RTC Init structures definition. More...
 
struct  LL_RTC_TimeTypeDef
 RTC Time structure definition. More...
 
struct  LL_RTC_DateTypeDef
 RTC Date structure definition. More...
 
struct  LL_RTC_AlarmTypeDef
 RTC Alarm structure definition. More...
 

Functions

__STATIC_INLINE void LL_RTC_SetHourFormat (RTC_TypeDef *RTCx, uint32_t HourFormat)
 Set Hours format (24 hour/day or AM/PM hour format) More...
 
__STATIC_INLINE uint32_t LL_RTC_GetHourFormat (RTC_TypeDef *RTCx)
 Get Hours format (24 hour/day or AM/PM hour format) RTC_CR FMT LL_RTC_GetHourFormat. More...
 
__STATIC_INLINE void LL_RTC_SetAlarmOutEvent (RTC_TypeDef *RTCx, uint32_t AlarmOutput)
 Select the flag to be routed to RTC_ALARM output. More...
 
__STATIC_INLINE uint32_t LL_RTC_GetAlarmOutEvent (RTC_TypeDef *RTCx)
 Get the flag to be routed to RTC_ALARM output RTC_CR OSEL LL_RTC_GetAlarmOutEvent. More...
 
__STATIC_INLINE void LL_RTC_SetAlarmOutputType (RTC_TypeDef *RTCx, uint32_t Output)
 Set RTC_ALARM output type (ALARM in push-pull or open-drain output) RTC_CR TAMPALRM_TYPE LL_RTC_SetAlarmOutputType. More...
 
__STATIC_INLINE uint32_t LL_RTC_GetAlarmOutputType (RTC_TypeDef *RTCx)
 Get RTC_ALARM output type (ALARM in push-pull or open-drain output) RTC_CR TAMPALRM_TYPE LL_RTC_SetAlarmOutputType. More...
 
__STATIC_INLINE void LL_RTC_EnableInitMode (RTC_TypeDef *RTCx)
 Enable initialization mode. More...
 
__STATIC_INLINE void LL_RTC_DisableInitMode (RTC_TypeDef *RTCx)
 Disable initialization mode (Free running mode) RTC_ICSR INIT LL_RTC_DisableInitMode. More...
 
__STATIC_INLINE void LL_RTC_SetOutputPolarity (RTC_TypeDef *RTCx, uint32_t Polarity)
 Set Output polarity (pin is low when ALRAF/ALRBF/WUTF is asserted) More...
 
__STATIC_INLINE uint32_t LL_RTC_GetOutputPolarity (RTC_TypeDef *RTCx)
 Get Output polarity RTC_CR POL LL_RTC_GetOutputPolarity. More...
 
__STATIC_INLINE void LL_RTC_EnableShadowRegBypass (RTC_TypeDef *RTCx)
 Enable Bypass the shadow registers. More...
 
__STATIC_INLINE void LL_RTC_DisableShadowRegBypass (RTC_TypeDef *RTCx)
 Disable Bypass the shadow registers RTC_CR BYPSHAD LL_RTC_DisableShadowRegBypass. More...
 
__STATIC_INLINE uint32_t LL_RTC_IsShadowRegBypassEnabled (RTC_TypeDef *RTCx)
 Check if Shadow registers bypass is enabled or not. RTC_CR BYPSHAD LL_RTC_IsShadowRegBypassEnabled. More...
 
__STATIC_INLINE void LL_RTC_EnableRefClock (RTC_TypeDef *RTCx)
 Enable RTC_REFIN reference clock detection (50 or 60 Hz) More...
 
__STATIC_INLINE void LL_RTC_DisableRefClock (RTC_TypeDef *RTCx)
 Disable RTC_REFIN reference clock detection (50 or 60 Hz) More...
 
__STATIC_INLINE void LL_RTC_SetAsynchPrescaler (RTC_TypeDef *RTCx, uint32_t AsynchPrescaler)
 Set Asynchronous prescaler factor RTC_PRER PREDIV_A LL_RTC_SetAsynchPrescaler. More...
 
__STATIC_INLINE void LL_RTC_SetSynchPrescaler (RTC_TypeDef *RTCx, uint32_t SynchPrescaler)
 Set Synchronous prescaler factor RTC_PRER PREDIV_S LL_RTC_SetSynchPrescaler. More...
 
__STATIC_INLINE uint32_t LL_RTC_GetAsynchPrescaler (RTC_TypeDef *RTCx)
 Get Asynchronous prescaler factor RTC_PRER PREDIV_A LL_RTC_GetAsynchPrescaler. More...
 
__STATIC_INLINE uint32_t LL_RTC_GetSynchPrescaler (RTC_TypeDef *RTCx)
 Get Synchronous prescaler factor RTC_PRER PREDIV_S LL_RTC_GetSynchPrescaler. More...
 
__STATIC_INLINE void LL_RTC_EnableWriteProtection (RTC_TypeDef *RTCx)
 Enable the write protection for RTC registers. RTC_WPR KEY LL_RTC_EnableWriteProtection. More...
 
__STATIC_INLINE void LL_RTC_DisableWriteProtection (RTC_TypeDef *RTCx)
 Disable the write protection for RTC registers. RTC_WPR KEY LL_RTC_DisableWriteProtection. More...
 
__STATIC_INLINE void LL_RTC_EnableTamperOutput (RTC_TypeDef *RTCx)
 Enable tamper output. More...
 
__STATIC_INLINE void LL_RTC_DisableTamperOutput (RTC_TypeDef *RTCx)
 Disable tamper output. RTC_CR TAMPOE LL_RTC_DisableTamperOutput. More...
 
__STATIC_INLINE uint32_t LL_RTC_IsTamperOutputEnabled (RTC_TypeDef *RTCx)
 Check if tamper output is enabled or not. RTC_CR TAMPOE LL_RTC_IsTamperOutputEnabled. More...
 
__STATIC_INLINE void LL_RTC_EnableAlarmPullUp (RTC_TypeDef *RTCx)
 Enable internal pull-up in output mode. RTC_CR TAMPALRM_PU LL_RTC_EnableAlarmPullUp. More...
 
__STATIC_INLINE void LL_RTC_DisableAlarmPullUp (RTC_TypeDef *RTCx)
 Disable internal pull-up in output mode. RTC_CR TAMPALRM_PU LL_RTC_EnableAlarmPullUp. More...
 
__STATIC_INLINE uint32_t LL_RTC_IsAlarmPullUpEnabled (RTC_TypeDef *RTCx)
 Check if internal pull-up in output mode is enabled or not. RTC_CR TAMPALRM_PU LL_RTC_IsAlarmPullUpEnabled. More...
 
__STATIC_INLINE void LL_RTC_EnableOutput2 (RTC_TypeDef *RTCx)
 Enable RTC_OUT2 output. More...
 
__STATIC_INLINE void LL_RTC_DisableOutput2 (RTC_TypeDef *RTCx)
 Disable RTC_OUT2 output RTC_CR OUT2EN LL_RTC_DisableOutput2. More...
 
__STATIC_INLINE uint32_t LL_RTC_IsOutput2Enabled (RTC_TypeDef *RTCx)
 Check if RTC_OUT2 output is enabled or not. RTC_CR OUT2EN LL_RTC_IsOutput2Enabled. More...
 
__STATIC_INLINE void LL_RTC_EnableOutRemap (RTC_TypeDef *RTCx)
 Enable RTC_OUT remap OR OUT_RMP LL_RTC_EnableOutRemap. More...
 
__STATIC_INLINE void LL_RTC_DisableOutRemap (RTC_TypeDef *RTCx)
 Disable RTC_OUT remap OR OUT_RMP LL_RTC_DisableOutRemap. More...
 
__STATIC_INLINE void LL_RTC_TIME_SetFormat (RTC_TypeDef *RTCx, uint32_t TimeFormat)
 Set time format (AM/24-hour or PM notation) More...
 
__STATIC_INLINE uint32_t LL_RTC_TIME_GetFormat (RTC_TypeDef *RTCx)
 Get time format (AM or PM notation) More...
 
__STATIC_INLINE void LL_RTC_TIME_SetHour (RTC_TypeDef *RTCx, uint32_t Hours)
 Set Hours in BCD format. More...
 
__STATIC_INLINE uint32_t LL_RTC_TIME_GetHour (RTC_TypeDef *RTCx)
 Get Hours in BCD format. More...
 
__STATIC_INLINE void LL_RTC_TIME_SetMinute (RTC_TypeDef *RTCx, uint32_t Minutes)
 Set Minutes in BCD format. More...
 
__STATIC_INLINE uint32_t LL_RTC_TIME_GetMinute (RTC_TypeDef *RTCx)
 Get Minutes in BCD format. More...
 
__STATIC_INLINE void LL_RTC_TIME_SetSecond (RTC_TypeDef *RTCx, uint32_t Seconds)
 Set Seconds in BCD format. More...
 
__STATIC_INLINE uint32_t LL_RTC_TIME_GetSecond (RTC_TypeDef *RTCx)
 Get Seconds in BCD format. More...
 
__STATIC_INLINE void LL_RTC_TIME_Config (RTC_TypeDef *RTCx, uint32_t Format12_24, uint32_t Hours, uint32_t Minutes, uint32_t Seconds)
 Set time (hour, minute and second) in BCD format. More...
 
__STATIC_INLINE uint32_t LL_RTC_TIME_Get (RTC_TypeDef *RTCx)
 Get time (hour, minute and second) in BCD format. More...
 
__STATIC_INLINE void LL_RTC_TIME_EnableDayLightStore (RTC_TypeDef *RTCx)
 Memorize whether the daylight saving time change has been performed. More...
 
__STATIC_INLINE void LL_RTC_TIME_DisableDayLightStore (RTC_TypeDef *RTCx)
 Disable memorization whether the daylight saving time change has been performed. More...
 
__STATIC_INLINE uint32_t LL_RTC_TIME_IsDayLightStoreEnabled (RTC_TypeDef *RTCx)
 Check if RTC Day Light Saving stored operation has been enabled or not RTC_CR BKP LL_RTC_TIME_IsDayLightStoreEnabled. More...
 
__STATIC_INLINE void LL_RTC_TIME_DecHour (RTC_TypeDef *RTCx)
 Subtract 1 hour (winter time change) More...
 
__STATIC_INLINE void LL_RTC_TIME_IncHour (RTC_TypeDef *RTCx)
 Add 1 hour (summer time change) More...
 
__STATIC_INLINE uint32_t LL_RTC_TIME_GetSubSecond (RTC_TypeDef *RTCx)
 Get Sub second value in the synchronous prescaler counter. More...
 
__STATIC_INLINE void LL_RTC_TIME_Synchronize (RTC_TypeDef *RTCx, uint32_t ShiftSecond, uint32_t Fraction)
 Synchronize to a remote clock with a high degree of precision. More...
 
__STATIC_INLINE void LL_RTC_DATE_SetYear (RTC_TypeDef *RTCx, uint32_t Year)
 Set Year in BCD format. More...
 
__STATIC_INLINE uint32_t LL_RTC_DATE_GetYear (RTC_TypeDef *RTCx)
 Get Year in BCD format. More...
 
__STATIC_INLINE void LL_RTC_DATE_SetWeekDay (RTC_TypeDef *RTCx, uint32_t WeekDay)
 Set Week day RTC_DR WDU LL_RTC_DATE_SetWeekDay. More...
 
__STATIC_INLINE uint32_t LL_RTC_DATE_GetWeekDay (RTC_TypeDef *RTCx)
 Get Week day. More...
 
__STATIC_INLINE void LL_RTC_DATE_SetMonth (RTC_TypeDef *RTCx, uint32_t Month)
 Set Month in BCD format. More...
 
__STATIC_INLINE uint32_t LL_RTC_DATE_GetMonth (RTC_TypeDef *RTCx)
 Get Month in BCD format. More...
 
__STATIC_INLINE void LL_RTC_DATE_SetDay (RTC_TypeDef *RTCx, uint32_t Day)
 Set Day in BCD format. More...
 
__STATIC_INLINE uint32_t LL_RTC_DATE_GetDay (RTC_TypeDef *RTCx)
 Get Day in BCD format. More...
 
__STATIC_INLINE void LL_RTC_DATE_Config (RTC_TypeDef *RTCx, uint32_t WeekDay, uint32_t Day, uint32_t Month, uint32_t Year)
 Set date (WeekDay, Day, Month and Year) in BCD format RTC_DR WDU LL_RTC_DATE_Config
RTC_DR MT LL_RTC_DATE_Config
RTC_DR MU LL_RTC_DATE_Config
RTC_DR DT LL_RTC_DATE_Config
RTC_DR DU LL_RTC_DATE_Config
RTC_DR YT LL_RTC_DATE_Config
RTC_DR YU LL_RTC_DATE_Config. More...
 
__STATIC_INLINE uint32_t LL_RTC_DATE_Get (RTC_TypeDef *RTCx)
 Get date (WeekDay, Day, Month and Year) in BCD format. More...
 
__STATIC_INLINE void LL_RTC_ALMA_Enable (RTC_TypeDef *RTCx)
 Enable Alarm A. More...
 
__STATIC_INLINE void LL_RTC_ALMA_Disable (RTC_TypeDef *RTCx)
 Disable Alarm A. More...
 
__STATIC_INLINE void LL_RTC_ALMA_SetMask (RTC_TypeDef *RTCx, uint32_t Mask)
 Specify the Alarm A masks. RTC_ALRMAR MSK4 LL_RTC_ALMA_SetMask
RTC_ALRMAR MSK3 LL_RTC_ALMA_SetMask
RTC_ALRMAR MSK2 LL_RTC_ALMA_SetMask
RTC_ALRMAR MSK1 LL_RTC_ALMA_SetMask. More...
 
__STATIC_INLINE uint32_t LL_RTC_ALMA_GetMask (RTC_TypeDef *RTCx)
 Get the Alarm A masks. RTC_ALRMAR MSK4 LL_RTC_ALMA_GetMask
RTC_ALRMAR MSK3 LL_RTC_ALMA_GetMask
RTC_ALRMAR MSK2 LL_RTC_ALMA_GetMask
RTC_ALRMAR MSK1 LL_RTC_ALMA_GetMask. More...
 
__STATIC_INLINE void LL_RTC_ALMA_EnableWeekday (RTC_TypeDef *RTCx)
 Enable AlarmA Week day selection (DU[3:0] represents the week day. DT[1:0] is do not care) RTC_ALRMAR WDSEL LL_RTC_ALMA_EnableWeekday. More...
 
__STATIC_INLINE void LL_RTC_ALMA_DisableWeekday (RTC_TypeDef *RTCx)
 Disable AlarmA Week day selection (DU[3:0] represents the date ) RTC_ALRMAR WDSEL LL_RTC_ALMA_DisableWeekday. More...
 
__STATIC_INLINE void LL_RTC_ALMA_SetDay (RTC_TypeDef *RTCx, uint32_t Day)
 Set ALARM A Day in BCD format. More...
 
__STATIC_INLINE uint32_t LL_RTC_ALMA_GetDay (RTC_TypeDef *RTCx)
 Get ALARM A Day in BCD format. More...
 
__STATIC_INLINE void LL_RTC_ALMA_SetWeekDay (RTC_TypeDef *RTCx, uint32_t WeekDay)
 Set ALARM A Weekday RTC_ALRMAR DU LL_RTC_ALMA_SetWeekDay. More...
 
__STATIC_INLINE uint32_t LL_RTC_ALMA_GetWeekDay (RTC_TypeDef *RTCx)
 Get ALARM A Weekday RTC_ALRMAR DU LL_RTC_ALMA_GetWeekDay. More...
 
__STATIC_INLINE void LL_RTC_ALMA_SetTimeFormat (RTC_TypeDef *RTCx, uint32_t TimeFormat)
 Set Alarm A time format (AM/24-hour or PM notation) RTC_ALRMAR PM LL_RTC_ALMA_SetTimeFormat. More...
 
__STATIC_INLINE uint32_t LL_RTC_ALMA_GetTimeFormat (RTC_TypeDef *RTCx)
 Get Alarm A time format (AM or PM notation) RTC_ALRMAR PM LL_RTC_ALMA_GetTimeFormat. More...
 
__STATIC_INLINE void LL_RTC_ALMA_SetHour (RTC_TypeDef *RTCx, uint32_t Hours)
 Set ALARM A Hours in BCD format. More...
 
__STATIC_INLINE uint32_t LL_RTC_ALMA_GetHour (RTC_TypeDef *RTCx)
 Get ALARM A Hours in BCD format. More...
 
__STATIC_INLINE void LL_RTC_ALMA_SetMinute (RTC_TypeDef *RTCx, uint32_t Minutes)
 Set ALARM A Minutes in BCD format. More...
 
__STATIC_INLINE uint32_t LL_RTC_ALMA_GetMinute (RTC_TypeDef *RTCx)
 Get ALARM A Minutes in BCD format. More...
 
__STATIC_INLINE void LL_RTC_ALMA_SetSecond (RTC_TypeDef *RTCx, uint32_t Seconds)
 Set ALARM A Seconds in BCD format. More...
 
__STATIC_INLINE uint32_t LL_RTC_ALMA_GetSecond (RTC_TypeDef *RTCx)
 Get ALARM A Seconds in BCD format. More...
 
__STATIC_INLINE void LL_RTC_ALMA_ConfigTime (RTC_TypeDef *RTCx, uint32_t Format12_24, uint32_t Hours, uint32_t Minutes, uint32_t Seconds)
 Set Alarm A Time (hour, minute and second) in BCD format RTC_ALRMAR PM LL_RTC_ALMA_ConfigTime
RTC_ALRMAR HT LL_RTC_ALMA_ConfigTime
RTC_ALRMAR HU LL_RTC_ALMA_ConfigTime
RTC_ALRMAR MNT LL_RTC_ALMA_ConfigTime
RTC_ALRMAR MNU LL_RTC_ALMA_ConfigTime
RTC_ALRMAR ST LL_RTC_ALMA_ConfigTime
RTC_ALRMAR SU LL_RTC_ALMA_ConfigTime. More...
 
__STATIC_INLINE uint32_t LL_RTC_ALMA_GetTime (RTC_TypeDef *RTCx)
 Get Alarm B Time (hour, minute and second) in BCD format. More...
 
__STATIC_INLINE void LL_RTC_ALMA_SetSubSecondMask (RTC_TypeDef *RTCx, uint32_t Mask)
 Set Alarm A Mask the most-significant bits starting at this bit. More...
 
__STATIC_INLINE uint32_t LL_RTC_ALMA_GetSubSecondMask (RTC_TypeDef *RTCx)
 Get Alarm A Mask the most-significant bits starting at this bit RTC_ALRMASSR MASKSS LL_RTC_ALMA_GetSubSecondMask. More...
 
__STATIC_INLINE void LL_RTC_ALMA_SetSubSecond (RTC_TypeDef *RTCx, uint32_t Subsecond)
 Set Alarm A Sub seconds value RCT_ALRMASSR SS LL_RTC_ALMA_SetSubSecond. More...
 
__STATIC_INLINE uint32_t LL_RTC_ALMA_GetSubSecond (RTC_TypeDef *RTCx)
 Get Alarm A Sub seconds value RCT_ALRMASSR SS LL_RTC_ALMA_GetSubSecond. More...
 
__STATIC_INLINE void LL_RTC_ALMB_Enable (RTC_TypeDef *RTCx)
 Enable Alarm B. More...
 
__STATIC_INLINE void LL_RTC_ALMB_Disable (RTC_TypeDef *RTCx)
 Disable Alarm B. More...
 
__STATIC_INLINE void LL_RTC_ALMB_SetMask (RTC_TypeDef *RTCx, uint32_t Mask)
 Specify the Alarm B masks. RTC_ALRMBR MSK4 LL_RTC_ALMB_SetMask
RTC_ALRMBR MSK3 LL_RTC_ALMB_SetMask
RTC_ALRMBR MSK2 LL_RTC_ALMB_SetMask
RTC_ALRMBR MSK1 LL_RTC_ALMB_SetMask. More...
 
__STATIC_INLINE uint32_t LL_RTC_ALMB_GetMask (RTC_TypeDef *RTCx)
 Get the Alarm B masks. RTC_ALRMBR MSK4 LL_RTC_ALMB_GetMask
RTC_ALRMBR MSK3 LL_RTC_ALMB_GetMask
RTC_ALRMBR MSK2 LL_RTC_ALMB_GetMask
RTC_ALRMBR MSK1 LL_RTC_ALMB_GetMask. More...
 
__STATIC_INLINE void LL_RTC_ALMB_EnableWeekday (RTC_TypeDef *RTCx)
 Enable AlarmB Week day selection (DU[3:0] represents the week day. DT[1:0] is do not care) RTC_ALRMBR WDSEL LL_RTC_ALMB_EnableWeekday. More...
 
__STATIC_INLINE void LL_RTC_ALMB_DisableWeekday (RTC_TypeDef *RTCx)
 Disable AlarmB Week day selection (DU[3:0] represents the date ) RTC_ALRMBR WDSEL LL_RTC_ALMB_DisableWeekday. More...
 
__STATIC_INLINE void LL_RTC_ALMB_SetDay (RTC_TypeDef *RTCx, uint32_t Day)
 Set ALARM B Day in BCD format. More...
 
__STATIC_INLINE uint32_t LL_RTC_ALMB_GetDay (RTC_TypeDef *RTCx)
 Get ALARM B Day in BCD format. More...
 
__STATIC_INLINE void LL_RTC_ALMB_SetWeekDay (RTC_TypeDef *RTCx, uint32_t WeekDay)
 Set ALARM B Weekday RTC_ALRMBR DU LL_RTC_ALMB_SetWeekDay. More...
 
__STATIC_INLINE uint32_t LL_RTC_ALMB_GetWeekDay (RTC_TypeDef *RTCx)
 Get ALARM B Weekday RTC_ALRMBR DU LL_RTC_ALMB_GetWeekDay. More...
 
__STATIC_INLINE void LL_RTC_ALMB_SetTimeFormat (RTC_TypeDef *RTCx, uint32_t TimeFormat)
 Set ALARM B time format (AM/24-hour or PM notation) RTC_ALRMBR PM LL_RTC_ALMB_SetTimeFormat. More...
 
__STATIC_INLINE uint32_t LL_RTC_ALMB_GetTimeFormat (RTC_TypeDef *RTCx)
 Get ALARM B time format (AM or PM notation) RTC_ALRMBR PM LL_RTC_ALMB_GetTimeFormat. More...
 
__STATIC_INLINE void LL_RTC_ALMB_SetHour (RTC_TypeDef *RTCx, uint32_t Hours)
 Set ALARM B Hours in BCD format. More...
 
__STATIC_INLINE uint32_t LL_RTC_ALMB_GetHour (RTC_TypeDef *RTCx)
 Get ALARM B Hours in BCD format. More...
 
__STATIC_INLINE void LL_RTC_ALMB_SetMinute (RTC_TypeDef *RTCx, uint32_t Minutes)
 Set ALARM B Minutes in BCD format. More...
 
__STATIC_INLINE uint32_t LL_RTC_ALMB_GetMinute (RTC_TypeDef *RTCx)
 Get ALARM B Minutes in BCD format. More...
 
__STATIC_INLINE void LL_RTC_ALMB_SetSecond (RTC_TypeDef *RTCx, uint32_t Seconds)
 Set ALARM B Seconds in BCD format. More...
 
__STATIC_INLINE uint32_t LL_RTC_ALMB_GetSecond (RTC_TypeDef *RTCx)
 Get ALARM B Seconds in BCD format. More...
 
__STATIC_INLINE void LL_RTC_ALMB_ConfigTime (RTC_TypeDef *RTCx, uint32_t Format12_24, uint32_t Hours, uint32_t Minutes, uint32_t Seconds)
 Set Alarm B Time (hour, minute and second) in BCD format RTC_ALRMBR PM LL_RTC_ALMB_ConfigTime
RTC_ALRMBR HT LL_RTC_ALMB_ConfigTime
RTC_ALRMBR HU LL_RTC_ALMB_ConfigTime
RTC_ALRMBR MNT LL_RTC_ALMB_ConfigTime
RTC_ALRMBR MNU LL_RTC_ALMB_ConfigTime
RTC_ALRMBR ST LL_RTC_ALMB_ConfigTime
RTC_ALRMBR SU LL_RTC_ALMB_ConfigTime. More...
 
__STATIC_INLINE uint32_t LL_RTC_ALMB_GetTime (RTC_TypeDef *RTCx)
 Get Alarm B Time (hour, minute and second) in BCD format. More...
 
__STATIC_INLINE void LL_RTC_ALMB_SetSubSecondMask (RTC_TypeDef *RTCx, uint32_t Mask)
 Set Alarm B Mask the most-significant bits starting at this bit. More...
 
__STATIC_INLINE uint32_t LL_RTC_ALMB_GetSubSecondMask (RTC_TypeDef *RTCx)
 Get Alarm B Mask the most-significant bits starting at this bit RTC_ALRMBSSR MASKSS LL_RTC_ALMB_GetSubSecondMask. More...
 
__STATIC_INLINE void LL_RTC_ALMB_SetSubSecond (RTC_TypeDef *RTCx, uint32_t Subsecond)
 Set Alarm B Sub seconds value RTC_ALRMBSSR SS LL_RTC_ALMB_SetSubSecond. More...
 
__STATIC_INLINE uint32_t LL_RTC_ALMB_GetSubSecond (RTC_TypeDef *RTCx)
 Get Alarm B Sub seconds value RTC_ALRMBSSR SS LL_RTC_ALMB_GetSubSecond. More...
 
__STATIC_INLINE void LL_RTC_TS_EnableInternalEvent (RTC_TypeDef *RTCx)
 Enable internal event timestamp. More...
 
__STATIC_INLINE void LL_RTC_TS_DisableInternalEvent (RTC_TypeDef *RTCx)
 Disable internal event timestamp. More...
 
__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) RTC_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 RTC_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 sub second value RTC_TSDR SS LL_RTC_TS_GetSubSecond. More...
 
__STATIC_INLINE void LL_RTC_WAKEUP_Enable (RTC_TypeDef *RTCx)
 Enable Wakeup timer. More...
 
__STATIC_INLINE void LL_RTC_WAKEUP_Disable (RTC_TypeDef *RTCx)
 Disable Wakeup timer. More...
 
__STATIC_INLINE uint32_t LL_RTC_WAKEUP_IsEnabled (RTC_TypeDef *RTCx)
 Check if Wakeup timer is enabled or not RTC_CR WUTE LL_RTC_WAKEUP_IsEnabled. More...
 
__STATIC_INLINE void LL_RTC_WAKEUP_SetClock (RTC_TypeDef *RTCx, uint32_t WakeupClock)
 Select Wakeup clock. More...
 
__STATIC_INLINE uint32_t LL_RTC_WAKEUP_GetClock (RTC_TypeDef *RTCx)
 Get Wakeup clock RTC_CR WUCKSEL LL_RTC_WAKEUP_GetClock. More...
 
__STATIC_INLINE void LL_RTC_WAKEUP_SetAutoReload (RTC_TypeDef *RTCx, uint32_t Value)
 Set Wakeup auto-reload value. More...
 
__STATIC_INLINE uint32_t LL_RTC_WAKEUP_GetAutoReload (RTC_TypeDef *RTCx)
 Get Wakeup auto-reload value RTC_WUTR WUT LL_RTC_WAKEUP_GetAutoReload. More...
 
__STATIC_INLINE void LL_RTC_WAKEUP_SetAutoClr (RTC_TypeDef *RTCx, uint32_t Value)
 Set Wakeup auto-clear value. More...
 
__STATIC_INLINE uint32_t LL_RTC_WAKEUP_GetAutoClr (RTC_TypeDef *RTCx)
 Get Wakeup auto-clear value RTC_WUTR WUTOCLR LL_RTC_WAKEUP_GetAutoClr. More...
 
__STATIC_INLINE void LL_RTC_CAL_SetOutputFreq (RTC_TypeDef *RTCx, uint32_t Frequency)
 Set Calibration output frequency (1 Hz or 512 Hz) More...
 
__STATIC_INLINE uint32_t LL_RTC_CAL_GetOutputFreq (RTC_TypeDef *RTCx)
 Get Calibration output frequency (1 Hz or 512 Hz) RTC_CR COE LL_RTC_CAL_GetOutputFreq
RTC_CR COSEL LL_RTC_CAL_GetOutputFreq. More...
 
__STATIC_INLINE void LL_RTC_CAL_SetPulse (RTC_TypeDef *RTCx, uint32_t Pulse)
 Insert or not One RTCCLK pulse every 2exp11 pulses (frequency increased by 488.5 ppm) More...
 
__STATIC_INLINE uint32_t LL_RTC_CAL_IsPulseInserted (RTC_TypeDef *RTCx)
 Check if one RTCCLK has been inserted or not every 2exp11 pulses (frequency increased by 488.5 ppm) RTC_CALR CALP LL_RTC_CAL_IsPulseInserted. More...
 
__STATIC_INLINE void LL_RTC_CAL_SetPeriod (RTC_TypeDef *RTCx, uint32_t Period)
 Set the calibration cycle period. More...
 
__STATIC_INLINE uint32_t LL_RTC_CAL_GetPeriod (RTC_TypeDef *RTCx)
 Get the calibration cycle period RTC_CALR CALW8 LL_RTC_CAL_GetPeriod
RTC_CALR CALW16 LL_RTC_CAL_GetPeriod. More...
 
__STATIC_INLINE void LL_RTC_CAL_SetMinus (RTC_TypeDef *RTCx, uint32_t CalibMinus)
 Set Calibration minus. More...
 
__STATIC_INLINE uint32_t LL_RTC_CAL_GetMinus (RTC_TypeDef *RTCx)
 Get Calibration minus RTC_CALR CALM LL_RTC_CAL_GetMinus. More...
 
__STATIC_INLINE void LL_RTC_CAL_LowPower_Enable (RTC_TypeDef *RTCx)
 Enable Calibration Low Power. More...
 
__STATIC_INLINE void LL_RTC_CAL_LowPower_Disable (RTC_TypeDef *RTCx)
 Disable Calibration Low Power. More...
 
__STATIC_INLINE uint32_t LL_RTC_CAL_LowPower_IsEnabled (RTC_TypeDef *RTCx)
 Check if Calibration Low Power is enabled or not RTC_CALR LPCAL LL_RTC_CAL_LowPower_IsEnabled. More...
 
__STATIC_INLINE void LL_RTC_TS_EnableOnTamper (RTC_TypeDef *RTCx)
 Activate timestamp on tamper detection event RTC_CR TAMPTS LL_RTC_TS_EnableOnTamper. More...
 
__STATIC_INLINE void LL_RTC_TS_DisableOnTamper (RTC_TypeDef *RTCx)
 Disable timestamp on tamper detection event RTC_CR TAMPTS LL_RTC_TS_DisableOnTamper. More...
 
__STATIC_INLINE void LL_RTC_TAMPER_Enable (TAMP_TypeDef *TAMPx, uint32_t Tamper)
 Enable TAMPx input detection TAMP_CR1 TAMP1E LL_RTC_TAMPER_Enable
TAMP_CR1 TAMP2E LL_RTC_TAMPER_Enable. More...
 
__STATIC_INLINE void LL_RTC_TAMPER_Disable (TAMP_TypeDef *TAMPx, uint32_t Tamper)
 Clear TAMPx input detection TAMP_CR1 TAMP1E LL_RTC_TAMPER_Disable
TAMP_CR1 TAMP2E LL_RTC_TAMPER_Disable. More...
 
__STATIC_INLINE void LL_RTC_TAMPER_EnableMask (TAMP_TypeDef *TAMPx, uint32_t Mask)
 Enable Tamper mask flag. More...
 
__STATIC_INLINE void LL_RTC_TAMPER_DisableMask (TAMP_TypeDef *TAMPx, uint32_t Mask)
 Disable Tamper mask flag TAMP_CR2 TAMP1MF LL_RTC_TAMPER_DisableMask
TAMP_CR2 TAMP2MF LL_RTC_TAMPER_DisableMask. More...
 
__STATIC_INLINE void LL_RTC_TAMPER_EnableEraseBKP (TAMP_TypeDef *TAMPx, uint32_t Tamper)
 Enable backup register erase after Tamper event detection TAMP_CR2 TAMP1NOERASE LL_RTC_TAMPER_EnableEraseBKP
TAMP_CR2 TAMP2NOERASE LL_RTC_TAMPER_EnableEraseBKP. More...
 
__STATIC_INLINE void LL_RTC_TAMPER_DisableEraseBKP (TAMP_TypeDef *TAMPx, uint32_t Tamper)
 Disable backup register erase after Tamper event detection TAMP_CR2 TAMP1NOERASE LL_RTC_TAMPER_DisableEraseBKP
TAMP_CR2 TAMP2NOERASE LL_RTC_TAMPER_DisableEraseBKP. More...
 
__STATIC_INLINE void LL_RTC_TAMPER_DisablePullUp (TAMP_TypeDef *TAMPx)
 Disable RTC_TAMPx pull-up disable (Disable precharge of RTC_TAMPx pins) TAMP_FLTCR TAMPPUDIS LL_RTC_TAMPER_DisablePullUp. More...
 
__STATIC_INLINE void LL_RTC_TAMPER_EnablePullUp (TAMP_TypeDef *TAMPx)
 Enable RTC_TAMPx pull-up disable ( Precharge RTC_TAMPx pins before sampling) TAMP_FLTCR TAMPPUDIS LL_RTC_TAMPER_EnablePullUp. More...
 
__STATIC_INLINE void LL_RTC_TAMPER_SetPrecharge (TAMP_TypeDef *TAMPx, uint32_t Duration)
 Set RTC_TAMPx precharge duration TAMP_FLTCR TAMPPRCH LL_RTC_TAMPER_SetPrecharge. More...
 
__STATIC_INLINE uint32_t LL_RTC_TAMPER_GetPrecharge (TAMP_TypeDef *TAMPx)
 Get RTC_TAMPx precharge duration TAMP_FLTCR TAMPPRCH LL_RTC_TAMPER_GetPrecharge. More...
 
__STATIC_INLINE void LL_RTC_TAMPER_SetFilterCount (TAMP_TypeDef *TAMPx, uint32_t FilterCount)
 Set RTC_TAMPx filter count TAMP_FLTCR TAMPFLT LL_RTC_TAMPER_SetFilterCount. More...
 
__STATIC_INLINE uint32_t LL_RTC_TAMPER_GetFilterCount (TAMP_TypeDef *TAMPx)
 Get RTC_TAMPx filter count TAMP_FLTCR TAMPFLT LL_RTC_TAMPER_GetFilterCount. More...
 
__STATIC_INLINE void LL_RTC_TAMPER_SetSamplingFreq (TAMP_TypeDef *TAMPx, uint32_t SamplingFreq)
 Set Tamper sampling frequency TAMP_FLTCR TAMPFREQ LL_RTC_TAMPER_SetSamplingFreq. More...
 
__STATIC_INLINE uint32_t LL_RTC_TAMPER_GetSamplingFreq (TAMP_TypeDef *TAMPx)
 Get Tamper sampling frequency TAMP_FLTCR TAMPFREQ LL_RTC_TAMPER_GetSamplingFreq. More...
 
__STATIC_INLINE void LL_RTC_TAMPER_EnableActiveLevel (TAMP_TypeDef *TAMPx, uint32_t Tamper)
 Enable Active level for Tamper input TAMP_CR2 TAMP1TRG LL_RTC_TAMPER_EnableActiveLevel
TAMP_CR2 TAMP2TRG LL_RTC_TAMPER_EnableActiveLevel. More...
 
__STATIC_INLINE void LL_RTC_TAMPER_DisableActiveLevel (TAMP_TypeDef *TAMPx, uint32_t Tamper)
 Disable Active level for Tamper input TAMP_CR2 TAMP1TRG LL_RTC_TAMPER_DisableActiveLevel
TAMP_CR2 TAMP2TRG LL_RTC_TAMPER_DisableActiveLevel. More...
 
__STATIC_INLINE void LL_RTC_BKP_SetRegister (TAMP_TypeDef *TAMPx, uint32_t BackupRegister, uint32_t Data)
 Writes a data in a specified Backup data register. TAMP_BKPxR BKP LL_RTC_BKP_SetRegister. More...
 
__STATIC_INLINE uint32_t LL_RTC_BKP_GetRegister (TAMP_TypeDef *TAMPx, uint32_t BackupRegister)
 Reads data from the specified RTC Backup data Register. TAMP_BKPxR BKP LL_RTC_BKP_GetRegister. More...
 
__STATIC_INLINE uint32_t LL_RTC_IsActiveFlag_ITS (RTC_TypeDef *RTCx)
 Get Internal Time-stamp flag RTC_SR ITSF LL_RTC_IsActiveFlag_ITS. More...
 
__STATIC_INLINE uint32_t LL_RTC_IsActiveFlag_RECALP (RTC_TypeDef *RTCx)
 Get Recalibration pending Flag RTC_ICSR RECALPF LL_RTC_IsActiveFlag_RECALP. More...
 
__STATIC_INLINE uint32_t LL_RTC_IsActiveFlag_TSOV (RTC_TypeDef *RTCx)
 Get Time-stamp overflow flag RTC_SR TSOVF LL_RTC_IsActiveFlag_TSOV. More...
 
__STATIC_INLINE uint32_t LL_RTC_IsActiveFlag_TS (RTC_TypeDef *RTCx)
 Get Time-stamp flag RTC_SR TSF LL_RTC_IsActiveFlag_TS. More...
 
__STATIC_INLINE uint32_t LL_RTC_IsActiveFlag_WUT (RTC_TypeDef *RTCx)
 Get Wakeup timer flag RTC_SR WUTF LL_RTC_IsActiveFlag_WUT. More...
 
__STATIC_INLINE uint32_t LL_RTC_IsActiveFlag_ALRB (RTC_TypeDef *RTCx)
 Get Alarm B flag RTC_SR ALRBF LL_RTC_IsActiveFlag_ALRB. More...
 
__STATIC_INLINE uint32_t LL_RTC_IsActiveFlag_ALRA (RTC_TypeDef *RTCx)
 Get Alarm A flag RTC_SR ALRAF LL_RTC_IsActiveFlag_ALRA. More...
 
__STATIC_INLINE void LL_RTC_ClearFlag_ITS (RTC_TypeDef *RTCx)
 Clear Internal Time-stamp flag RTC_SCR CITSF LL_RTC_ClearFlag_ITS. More...
 
__STATIC_INLINE void LL_RTC_ClearFlag_TSOV (RTC_TypeDef *RTCx)
 Clear Time-stamp overflow flag RTC_SCR CTSOVF LL_RTC_ClearFlag_TSOV. More...
 
__STATIC_INLINE void LL_RTC_ClearFlag_TS (RTC_TypeDef *RTCx)
 Clear Time-stamp flag RTC_SCR CTSF LL_RTC_ClearFlag_TS. More...
 
__STATIC_INLINE void LL_RTC_ClearFlag_WUT (RTC_TypeDef *RTCx)
 Clear Wakeup timer flag RTC_SCR CWUTF LL_RTC_ClearFlag_WUT. More...
 
__STATIC_INLINE void LL_RTC_ClearFlag_ALRB (RTC_TypeDef *RTCx)
 Clear Alarm B flag RTC_SCR CALRBF LL_RTC_ClearFlag_ALRB. More...
 
__STATIC_INLINE void LL_RTC_ClearFlag_ALRA (RTC_TypeDef *RTCx)
 Clear Alarm A flag RTC_SCR CALRAF LL_RTC_ClearFlag_ALRA. More...
 
__STATIC_INLINE uint32_t LL_RTC_IsActiveFlag_INIT (RTC_TypeDef *RTCx)
 Get Initialization flag RTC_ICSR INITF LL_RTC_IsActiveFlag_INIT. More...
 
__STATIC_INLINE uint32_t LL_RTC_IsActiveFlag_RS (RTC_TypeDef *RTCx)
 Get Registers synchronization flag RTC_ICSR RSF LL_RTC_IsActiveFlag_RS. More...
 
__STATIC_INLINE void LL_RTC_ClearFlag_RS (RTC_TypeDef *RTCx)
 Clear Registers synchronization flag RTC_ICSR RSF LL_RTC_ClearFlag_RS. More...
 
__STATIC_INLINE uint32_t LL_RTC_IsActiveFlag_INITS (RTC_TypeDef *RTCx)
 Get Initialization status flag RTC_ICSR INITS LL_RTC_IsActiveFlag_INITS. More...
 
__STATIC_INLINE uint32_t LL_RTC_IsActiveFlag_SHP (RTC_TypeDef *RTCx)
 Get Shift operation pending flag RTC_ICSR SHPF LL_RTC_IsActiveFlag_SHP. More...
 
__STATIC_INLINE uint32_t LL_RTC_IsActiveFlag_WUTW (RTC_TypeDef *RTCx)
 Get Wakeup timer write flag RTC_ICSR WUTWF LL_RTC_IsActiveFlag_WUTW. More...
 
__STATIC_INLINE uint32_t LL_RTC_IsActiveFlag_ALRAM (RTC_TypeDef *RTCx)
 Get Alarm A masked flag. RTC_MISR ALRAMF LL_RTC_IsActiveFlag_ALRAM. More...
 
__STATIC_INLINE uint32_t LL_RTC_IsActiveFlag_ALRBM (RTC_TypeDef *RTCx)
 Get Alarm B masked flag. RTC_MISR ALRBMF LL_RTC_IsActiveFlag_ALRBM. More...
 
__STATIC_INLINE uint32_t LL_RTC_IsActiveFlag_WUTM (RTC_TypeDef *RTCx)
 Get Wakeup timer masked flag. RTC_MISR WUTMF LL_RTC_IsActiveFlag_WUTM. More...
 
__STATIC_INLINE uint32_t LL_RTC_IsActiveFlag_TSM (RTC_TypeDef *RTCx)
 Get Time-stamp masked flag. RTC_MISR TSMF LL_RTC_IsActiveFlag_TSM. More...
 
__STATIC_INLINE uint32_t LL_RTC_IsActiveFlag_TSOVM (RTC_TypeDef *RTCx)
 Get Time-stamp overflow masked flag. RTC_MISR TSOVMF LL_RTC_IsActiveFlag_TSOVM. More...
 
__STATIC_INLINE uint32_t LL_RTC_IsActiveFlag_ITSM (RTC_TypeDef *RTCx)
 Get Internal Time-stamp masked flag. RTC_MISR ITSMF LL_RTC_IsActiveFlag_ITSM. More...
 
__STATIC_INLINE uint32_t LL_RTC_IsActiveFlag_TAMP1 (TAMP_TypeDef *TAMPx)
 Get tamper 1 detection flag. TAMP_SR TAMP1F LL_RTC_IsActiveFlag_TAMP1. More...
 
__STATIC_INLINE uint32_t LL_RTC_IsActiveFlag_TAMP2 (TAMP_TypeDef *TAMPx)
 Get tamper 2 detection flag. TAMP_SR TAMP2F LL_RTC_IsActiveFlag_TAMP2. More...
 
__STATIC_INLINE uint32_t LL_RTC_IsActiveFlag_TAMP1M (TAMP_TypeDef *TAMPx)
 Get tamper 1 interrupt masked flag. TAMP_MISR TAMP1MF LL_RTC_IsActiveFlag_TAMP1M. More...
 
__STATIC_INLINE uint32_t LL_RTC_IsActiveFlag_TAMP2M (TAMP_TypeDef *TAMPx)
 Get tamper 2 interrupt masked flag. TAMP_MISR TAMP2MF LL_RTC_IsActiveFlag_TAMP2M. More...
 
__STATIC_INLINE void LL_RTC_ClearFlag_TAMP1 (TAMP_TypeDef *TAMPx)
 Clear tamper 1 detection flag. TAMP_SCR CTAMP1F LL_RTC_ClearFlag_TAMP1. More...
 
__STATIC_INLINE void LL_RTC_ClearFlag_TAMP2 (TAMP_TypeDef *TAMPx)
 Clear tamper 2 detection flag. TAMP_SCR CTAMP2F LL_RTC_ClearFlag_TAMP2. More...
 
__STATIC_INLINE void LL_RTC_EnableIT_TS (RTC_TypeDef *RTCx)
 Enable Time-stamp interrupt. More...
 
__STATIC_INLINE void LL_RTC_DisableIT_TS (RTC_TypeDef *RTCx)
 Disable Time-stamp interrupt. More...
 
__STATIC_INLINE void LL_RTC_EnableIT_WUT (RTC_TypeDef *RTCx)
 Enable Wakeup timer interrupt. More...
 
__STATIC_INLINE void LL_RTC_DisableIT_WUT (RTC_TypeDef *RTCx)
 Disable Wakeup timer interrupt. More...
 
__STATIC_INLINE void LL_RTC_EnableIT_ALRB (RTC_TypeDef *RTCx)
 Enable Alarm B interrupt. More...
 
__STATIC_INLINE void LL_RTC_DisableIT_ALRB (RTC_TypeDef *RTCx)
 Disable Alarm B interrupt. More...
 
__STATIC_INLINE void LL_RTC_EnableIT_ALRA (RTC_TypeDef *RTCx)
 Enable Alarm A interrupt. More...
 
__STATIC_INLINE void LL_RTC_DisableIT_ALRA (RTC_TypeDef *RTCx)
 Disable Alarm A interrupt. More...
 
__STATIC_INLINE uint32_t LL_RTC_IsEnabledIT_TS (RTC_TypeDef *RTCx)
 Check if Time-stamp interrupt is enabled or not RTC_CR TSIE LL_RTC_IsEnabledIT_TS. More...
 
__STATIC_INLINE uint32_t LL_RTC_IsEnabledIT_WUT (RTC_TypeDef *RTCx)
 Check if Wakeup timer interrupt is enabled or not RTC_CR WUTIE LL_RTC_IsEnabledIT_WUT. More...
 
__STATIC_INLINE uint32_t LL_RTC_IsEnabledIT_ALRB (RTC_TypeDef *RTCx)
 Check if Alarm B interrupt is enabled or not RTC_CR ALRBIE LL_RTC_IsEnabledIT_ALRB. More...
 
__STATIC_INLINE uint32_t LL_RTC_IsEnabledIT_ALRA (RTC_TypeDef *RTCx)
 Check if Alarm A interrupt is enabled or not RTC_CR ALRAIE LL_RTC_IsEnabledIT_ALRA. More...
 
__STATIC_INLINE void LL_RTC_EnableIT_TAMP1 (TAMP_TypeDef *TAMPx)
 Enable tamper 1 interrupt. TAMP_IER TAMP1IE LL_RTC_EnableIT_TAMP1. More...
 
__STATIC_INLINE void LL_RTC_DisableIT_TAMP1 (TAMP_TypeDef *TAMPx)
 Disable tamper 1 interrupt. TAMP_IER TAMP1IE LL_RTC_DisableIT_TAMP1. More...
 
__STATIC_INLINE void LL_RTC_EnableIT_TAMP2 (TAMP_TypeDef *TAMPx)
 Enable tamper 2 interrupt. TAMP_IER TAMP2IE LL_RTC_EnableIT_TAMP2. More...
 
__STATIC_INLINE void LL_RTC_DisableIT_TAMP2 (TAMP_TypeDef *TAMPx)
 Disable tamper 2 interrupt. TAMP_IER TAMP2IE LL_RTC_DisableIT_TAMP2. More...
 
__STATIC_INLINE uint32_t LL_RTC_IsEnabledIT_TAMP1 (TAMP_TypeDef *TAMPx)
 Check if tamper 1 interrupt is enabled or not. TAMP_IER TAMP1IE LL_RTC_IsEnabledIT_TAMP1. More...
 
__STATIC_INLINE uint32_t LL_RTC_IsEnabledIT_TAMP2 (TAMP_TypeDef *TAMPx)
 Check if tamper 2 interrupt is enabled or not. TAMP_IER TAMP2IE LL_RTC_IsEnabledIT_TAMP2. More...
 
__STATIC_INLINE void LL_RTC_TAMPER_Enable (RTC_TypeDef *RTCx, uint32_t Tamper)
 Enable RTC_TAMPx input detection TAMPCR TAMP1E LL_RTC_TAMPER_Enable
TAMPCR TAMP2E LL_RTC_TAMPER_Enable
TAMPCR TAMP3E LL_RTC_TAMPER_Enable. More...
 
__STATIC_INLINE void LL_RTC_TAMPER_Disable (RTC_TypeDef *RTCx, uint32_t Tamper)
 Clear RTC_TAMPx input detection TAMPCR TAMP1E LL_RTC_TAMPER_Disable
TAMPCR TAMP2E LL_RTC_TAMPER_Disable
TAMPCR TAMP3E LL_RTC_TAMPER_Disable. More...
 
__STATIC_INLINE void LL_RTC_TAMPER_EnableMask (RTC_TypeDef *RTCx, uint32_t Mask)
 Enable Tamper mask flag. More...
 
__STATIC_INLINE void LL_RTC_TAMPER_DisableMask (RTC_TypeDef *RTCx, uint32_t Mask)
 Disable Tamper mask flag TAMPCR TAMP1MF LL_RTC_TAMPER_DisableMask
TAMPCR TAMP2MF LL_RTC_TAMPER_DisableMask
TAMPCR TAMP3MF LL_RTC_TAMPER_DisableMask. More...
 
__STATIC_INLINE void LL_RTC_TAMPER_EnableEraseBKP (RTC_TypeDef *RTCx, uint32_t Tamper)
 Enable backup register erase after Tamper event detection TAMPCR TAMP1NOERASE LL_RTC_TAMPER_EnableEraseBKP
TAMPCR TAMP2NOERASE LL_RTC_TAMPER_EnableEraseBKP
TAMPCR TAMP3NOERASE LL_RTC_TAMPER_EnableEraseBKP. More...
 
__STATIC_INLINE void LL_RTC_TAMPER_DisableEraseBKP (RTC_TypeDef *RTCx, uint32_t Tamper)
 Disable backup register erase after Tamper event detection TAMPCR TAMP1NOERASE LL_RTC_TAMPER_DisableEraseBKP
TAMPCR TAMP2NOERASE LL_RTC_TAMPER_DisableEraseBKP
TAMPCR TAMP3NOERASE LL_RTC_TAMPER_DisableEraseBKP. More...
 
__STATIC_INLINE void LL_RTC_TAMPER_DisablePullUp (RTC_TypeDef *RTCx)
 Disable RTC_TAMPx pull-up disable (Disable precharge of RTC_TAMPx pins) TAMPCR TAMPPUDIS LL_RTC_TAMPER_DisablePullUp. More...
 
__STATIC_INLINE void LL_RTC_TAMPER_EnablePullUp (RTC_TypeDef *RTCx)
 Enable RTC_TAMPx pull-up disable ( Precharge RTC_TAMPx pins before sampling) TAMPCR TAMPPUDIS LL_RTC_TAMPER_EnablePullUp. More...
 
__STATIC_INLINE void LL_RTC_TAMPER_SetPrecharge (RTC_TypeDef *RTCx, uint32_t Duration)
 Set RTC_TAMPx precharge duration TAMPCR TAMPPRCH LL_RTC_TAMPER_SetPrecharge. More...
 
__STATIC_INLINE uint32_t LL_RTC_TAMPER_GetPrecharge (RTC_TypeDef *RTCx)
 Get RTC_TAMPx precharge duration TAMPCR TAMPPRCH LL_RTC_TAMPER_GetPrecharge. More...
 
__STATIC_INLINE void LL_RTC_TAMPER_SetFilterCount (RTC_TypeDef *RTCx, uint32_t FilterCount)
 Set RTC_TAMPx filter count TAMPCR TAMPFLT LL_RTC_TAMPER_SetFilterCount. More...
 
__STATIC_INLINE uint32_t LL_RTC_TAMPER_GetFilterCount (RTC_TypeDef *RTCx)
 Get RTC_TAMPx filter count TAMPCR TAMPFLT LL_RTC_TAMPER_GetFilterCount. More...
 
__STATIC_INLINE void LL_RTC_TAMPER_SetSamplingFreq (RTC_TypeDef *RTCx, uint32_t SamplingFreq)
 Set Tamper sampling frequency TAMPCR TAMPFREQ LL_RTC_TAMPER_SetSamplingFreq. More...
 
__STATIC_INLINE uint32_t LL_RTC_TAMPER_GetSamplingFreq (RTC_TypeDef *RTCx)
 Get Tamper sampling frequency TAMPCR TAMPFREQ LL_RTC_TAMPER_GetSamplingFreq. More...
 
__STATIC_INLINE void LL_RTC_TAMPER_EnableActiveLevel (RTC_TypeDef *RTCx, uint32_t Tamper)
 Enable Active level for Tamper input TAMPCR TAMP1TRG LL_RTC_TAMPER_EnableActiveLevel
TAMPCR TAMP2TRG LL_RTC_TAMPER_EnableActiveLevel
TAMPCR TAMP3TRG LL_RTC_TAMPER_EnableActiveLevel. More...
 
__STATIC_INLINE void LL_RTC_TAMPER_DisableActiveLevel (RTC_TypeDef *RTCx, uint32_t Tamper)
 Disable Active level for Tamper input TAMPCR TAMP1TRG LL_RTC_TAMPER_DisableActiveLevel
TAMPCR TAMP2TRG LL_RTC_TAMPER_DisableActiveLevel
TAMPCR TAMP3TRG LL_RTC_TAMPER_DisableActiveLevel. More...
 
__STATIC_INLINE void LL_RTC_BAK_SetRegister (RTC_TypeDef *RTCx, uint32_t BackupRegister, uint32_t Data)
 Writes a data in a specified RTC Backup data register. BKPxR BKP LL_RTC_BAK_SetRegister. More...
 
__STATIC_INLINE uint32_t LL_RTC_BAK_GetRegister (RTC_TypeDef *RTCx, uint32_t BackupRegister)
 Reads data from the specified RTC Backup data Register. BKPxR BKP LL_RTC_BAK_GetRegister. More...
 
__STATIC_INLINE uint32_t LL_RTC_IsActiveFlag_TAMP3 (RTC_TypeDef *RTCx)
 Get RTC_TAMP3 detection flag ISR TAMP3F LL_RTC_IsActiveFlag_TAMP3. More...
 
__STATIC_INLINE uint32_t LL_RTC_IsActiveFlag_TAMP2 (RTC_TypeDef *RTCx)
 Get RTC_TAMP2 detection flag ISR TAMP2F LL_RTC_IsActiveFlag_TAMP2. More...
 
__STATIC_INLINE uint32_t LL_RTC_IsActiveFlag_TAMP1 (RTC_TypeDef *RTCx)
 Get RTC_TAMP1 detection flag ISR TAMP1F LL_RTC_IsActiveFlag_TAMP1. More...
 
__STATIC_INLINE void LL_RTC_ClearFlag_TAMP3 (RTC_TypeDef *RTCx)
 Clear RTC_TAMP3 detection flag ISR TAMP3F LL_RTC_ClearFlag_TAMP3. More...
 
__STATIC_INLINE void LL_RTC_ClearFlag_TAMP2 (RTC_TypeDef *RTCx)
 Clear RTC_TAMP2 detection flag ISR TAMP2F LL_RTC_ClearFlag_TAMP2. More...
 
__STATIC_INLINE void LL_RTC_ClearFlag_TAMP1 (RTC_TypeDef *RTCx)
 Clear RTC_TAMP1 detection flag ISR TAMP1F LL_RTC_ClearFlag_TAMP1. More...
 
__STATIC_INLINE uint32_t LL_RTC_IsActiveFlag_ALRBW (RTC_TypeDef *RTCx)
 Get Alarm B write flag ISR ALRBWF LL_RTC_IsActiveFlag_ALRBW. More...
 
__STATIC_INLINE uint32_t LL_RTC_IsActiveFlag_ALRAW (RTC_TypeDef *RTCx)
 Get Alarm A write flag ISR ALRAWF LL_RTC_IsActiveFlag_ALRAW. More...
 
__STATIC_INLINE void LL_RTC_EnableIT_TAMP3 (RTC_TypeDef *RTCx)
 Enable Tamper 3 interrupt TAMPCR TAMP3IE LL_RTC_EnableIT_TAMP3. More...
 
__STATIC_INLINE void LL_RTC_DisableIT_TAMP3 (RTC_TypeDef *RTCx)
 Disable Tamper 3 interrupt TAMPCR TAMP3IE LL_RTC_DisableIT_TAMP3. More...
 
__STATIC_INLINE void LL_RTC_EnableIT_TAMP2 (RTC_TypeDef *RTCx)
 Enable Tamper 2 interrupt TAMPCR TAMP2IE LL_RTC_EnableIT_TAMP2. More...
 
__STATIC_INLINE void LL_RTC_DisableIT_TAMP2 (RTC_TypeDef *RTCx)
 Disable Tamper 2 interrupt TAMPCR TAMP2IE LL_RTC_DisableIT_TAMP2. More...
 
__STATIC_INLINE void LL_RTC_EnableIT_TAMP1 (RTC_TypeDef *RTCx)
 Enable Tamper 1 interrupt TAMPCR TAMP1IE LL_RTC_EnableIT_TAMP1. More...
 
__STATIC_INLINE void LL_RTC_DisableIT_TAMP1 (RTC_TypeDef *RTCx)
 Disable Tamper 1 interrupt TAMPCR TAMP1IE LL_RTC_DisableIT_TAMP1. More...
 
__STATIC_INLINE void LL_RTC_EnableIT_TAMP (RTC_TypeDef *RTCx)
 Enable all Tamper Interrupt TAMPCR TAMPIE LL_RTC_EnableIT_TAMP. More...
 
__STATIC_INLINE void LL_RTC_DisableIT_TAMP (RTC_TypeDef *RTCx)
 Disable all Tamper Interrupt TAMPCR TAMPIE LL_RTC_DisableIT_TAMP. More...
 
__STATIC_INLINE uint32_t LL_RTC_IsEnabledIT_TAMP3 (RTC_TypeDef *RTCx)
 Check if Tamper 3 interrupt is enabled or not TAMPCR TAMP3IE LL_RTC_IsEnabledIT_TAMP3. More...
 
__STATIC_INLINE uint32_t LL_RTC_IsEnabledIT_TAMP2 (RTC_TypeDef *RTCx)
 Check if Tamper 2 interrupt is enabled or not TAMPCR TAMP2IE LL_RTC_IsEnabledIT_TAMP2. More...
 
__STATIC_INLINE uint32_t LL_RTC_IsEnabledIT_TAMP1 (RTC_TypeDef *RTCx)
 Check if Tamper 1 interrupt is enabled or not TAMPCR TAMP1IE LL_RTC_IsEnabledIT_TAMP1. More...
 
__STATIC_INLINE uint32_t LL_RTC_IsEnabledIT_TAMP (RTC_TypeDef *RTCx)
 Check if all the TAMPER interrupts are enabled or not TAMPCR TAMPIE LL_RTC_IsEnabledIT_TAMP. More...
 
ErrorStatus LL_RTC_DeInit (RTC_TypeDef *RTCx)
 De-Initializes the RTC registers to their default reset values. More...
 
ErrorStatus LL_RTC_Init (RTC_TypeDef *RTCx, LL_RTC_InitTypeDef *RTC_InitStruct)
 Initializes the RTC registers according to the specified parameters in RTC_InitStruct. More...
 
void LL_RTC_StructInit (LL_RTC_InitTypeDef *RTC_InitStruct)
 Set each LL_RTC_InitTypeDef field to default value. More...
 
ErrorStatus LL_RTC_TIME_Init (RTC_TypeDef *RTCx, uint32_t RTC_Format, LL_RTC_TimeTypeDef *RTC_TimeStruct)
 Set the RTC current time. More...
 
void LL_RTC_TIME_StructInit (LL_RTC_TimeTypeDef *RTC_TimeStruct)
 Set each LL_RTC_TimeTypeDef field to default value (Time = 00h:00min:00sec). More...
 
ErrorStatus LL_RTC_DATE_Init (RTC_TypeDef *RTCx, uint32_t RTC_Format, LL_RTC_DateTypeDef *RTC_DateStruct)
 Set the RTC current date. More...
 
void LL_RTC_DATE_StructInit (LL_RTC_DateTypeDef *RTC_DateStruct)
 Set each LL_RTC_DateTypeDef field to default value (date = Monday, January 01 xx00) More...
 
ErrorStatus LL_RTC_ALMA_Init (RTC_TypeDef *RTCx, uint32_t RTC_Format, LL_RTC_AlarmTypeDef *RTC_AlarmStruct)
 Set the RTC Alarm A. More...
 
ErrorStatus LL_RTC_ALMB_Init (RTC_TypeDef *RTCx, uint32_t RTC_Format, LL_RTC_AlarmTypeDef *RTC_AlarmStruct)
 Set the RTC Alarm B. More...
 
void LL_RTC_ALMA_StructInit (LL_RTC_AlarmTypeDef *RTC_AlarmStruct)
 Set each LL_RTC_AlarmTypeDef of ALARMA field to default value (Time = 00h:00mn:00sec / Day = 1st day of the month/Mask = all fields are masked). More...
 
void LL_RTC_ALMB_StructInit (LL_RTC_AlarmTypeDef *RTC_AlarmStruct)
 Set each LL_RTC_AlarmTypeDef of ALARMA field to default value (Time = 00h:00mn:00sec / Day = 1st day of the month/Mask = all fields are masked). More...
 
ErrorStatus LL_RTC_EnterInitMode (RTC_TypeDef *RTCx)
 Enters the RTC Initialization mode. More...
 
ErrorStatus LL_RTC_ExitInitMode (RTC_TypeDef *RTCx)
 Exit the RTC Initialization mode. More...
 
ErrorStatus LL_RTC_WaitForSynchro (RTC_TypeDef *RTCx)
 Waits until the RTC Time and Day registers (RTC_TR and RTC_DR) are synchronized with RTC APB clock. More...
 

Detailed Description

Header file of RTC LL module.

Author
MCD Application Team
Attention

© Copyright (c) 2017 STMicroelectronics. All rights reserved.

This software component is licensed by ST under BSD 3-Clause license, the "License"; You may not use this file except in compliance with the License. You may obtain a copy of the License at: opensource.org/licenses/BSD-3-Clause

Definition in file stm32l4xx_ll_rtc.h.