STM32F4xx_HAL_Driver  1.8.3
stm32f4xx_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) @rmtoll 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 @rmtoll 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) More...
 
__STATIC_INLINE uint32_t LL_RTC_GetAlarmOutputType (RTC_TypeDef *RTCx)
 Get RTC_ALARM output type (ALARM in push-pull or open-drain output) 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) @rmtoll ISR 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 @rmtoll 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 @rmtoll 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. @rmtoll 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 @rmtoll PRER PREDIV_A LL_RTC_SetAsynchPrescaler. More...
 
__STATIC_INLINE void LL_RTC_SetSynchPrescaler (RTC_TypeDef *RTCx, uint32_t SynchPrescaler)
 Set Synchronous prescaler factor @rmtoll PRER PREDIV_S LL_RTC_SetSynchPrescaler. More...
 
__STATIC_INLINE uint32_t LL_RTC_GetAsynchPrescaler (RTC_TypeDef *RTCx)
 Get Asynchronous prescaler factor @rmtoll PRER PREDIV_A LL_RTC_GetAsynchPrescaler. More...
 
__STATIC_INLINE uint32_t LL_RTC_GetSynchPrescaler (RTC_TypeDef *RTCx)
 Get Synchronous prescaler factor @rmtoll PRER PREDIV_S LL_RTC_GetSynchPrescaler. More...
 
__STATIC_INLINE void LL_RTC_EnableWriteProtection (RTC_TypeDef *RTCx)
 Enable the write protection for RTC registers. @rmtoll WPR KEY LL_RTC_EnableWriteProtection. More...
 
__STATIC_INLINE void LL_RTC_DisableWriteProtection (RTC_TypeDef *RTCx)
 Disable the write protection for RTC registers. @rmtoll WPR KEY LL_RTC_DisableWriteProtection. 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 @rmtoll 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 subseconds 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 @rmtoll 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 @rmtoll DR WDU LL_RTC_DATE_Config
DR MT LL_RTC_DATE_Config
DR MU LL_RTC_DATE_Config
DR DT LL_RTC_DATE_Config
DR DU LL_RTC_DATE_Config
DR YT LL_RTC_DATE_Config
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. @rmtoll ALRMAR MSK4 LL_RTC_ALMA_SetMask
ALRMAR MSK3 LL_RTC_ALMA_SetMask
ALRMAR MSK2 LL_RTC_ALMA_SetMask
ALRMAR MSK1 LL_RTC_ALMA_SetMask. More...
 
__STATIC_INLINE uint32_t LL_RTC_ALMA_GetMask (RTC_TypeDef *RTCx)
 Get the Alarm A masks. @rmtoll ALRMAR MSK4 LL_RTC_ALMA_GetMask
ALRMAR MSK3 LL_RTC_ALMA_GetMask
ALRMAR MSK2 LL_RTC_ALMA_GetMask
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) @rmtoll 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 ) @rmtoll 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 @rmtoll ALRMAR DU LL_RTC_ALMA_SetWeekDay. More...
 
__STATIC_INLINE uint32_t LL_RTC_ALMA_GetWeekDay (RTC_TypeDef *RTCx)
 Get ALARM A Weekday @rmtoll 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) @rmtoll 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) @rmtoll 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 @rmtoll ALRMAR PM LL_RTC_ALMA_ConfigTime
ALRMAR HT LL_RTC_ALMA_ConfigTime
ALRMAR HU LL_RTC_ALMA_ConfigTime
ALRMAR MNT LL_RTC_ALMA_ConfigTime
ALRMAR MNU LL_RTC_ALMA_ConfigTime
ALRMAR ST LL_RTC_ALMA_ConfigTime
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)
 Mask the most-significant bits of the subseconds field starting from the bit specified in parameter Mask. More...
 
__STATIC_INLINE uint32_t LL_RTC_ALMA_GetSubSecondMask (RTC_TypeDef *RTCx)
 Get Alarm A subseconds mask @rmtoll ALRMASSR MASKSS LL_RTC_ALMA_GetSubSecondMask. More...
 
__STATIC_INLINE void LL_RTC_ALMA_SetSubSecond (RTC_TypeDef *RTCx, uint32_t Subsecond)
 Set Alarm A subseconds value @rmtoll ALRMASSR SS LL_RTC_ALMA_SetSubSecond. More...
 
__STATIC_INLINE uint32_t LL_RTC_ALMA_GetSubSecond (RTC_TypeDef *RTCx)
 Get Alarm A subseconds value @rmtoll 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. @rmtoll ALRMBR MSK4 LL_RTC_ALMB_SetMask
ALRMBR MSK3 LL_RTC_ALMB_SetMask
ALRMBR MSK2 LL_RTC_ALMB_SetMask
ALRMBR MSK1 LL_RTC_ALMB_SetMask. More...
 
__STATIC_INLINE uint32_t LL_RTC_ALMB_GetMask (RTC_TypeDef *RTCx)
 Get the Alarm B masks. @rmtoll ALRMBR MSK4 LL_RTC_ALMB_GetMask
ALRMBR MSK3 LL_RTC_ALMB_GetMask
ALRMBR MSK2 LL_RTC_ALMB_GetMask
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) @rmtoll 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 ) @rmtoll 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 @rmtoll ALRMBR DU LL_RTC_ALMB_SetWeekDay. More...
 
__STATIC_INLINE uint32_t LL_RTC_ALMB_GetWeekDay (RTC_TypeDef *RTCx)
 Get ALARM B Weekday @rmtoll 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) @rmtoll 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) @rmtoll 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 @rmtoll ALRMBR PM LL_RTC_ALMB_ConfigTime
ALRMBR HT LL_RTC_ALMB_ConfigTime
ALRMBR HU LL_RTC_ALMB_ConfigTime
ALRMBR MNT LL_RTC_ALMB_ConfigTime
ALRMBR MNU LL_RTC_ALMB_ConfigTime
ALRMBR ST LL_RTC_ALMB_ConfigTime
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)
 Mask the most-significant bits of the subseconds field starting from the bit specified in parameter Mask. More...
 
__STATIC_INLINE uint32_t LL_RTC_ALMB_GetSubSecondMask (RTC_TypeDef *RTCx)
 Get Alarm B subseconds mask @rmtoll ALRMBSSR MASKSS LL_RTC_ALMB_GetSubSecondMask. More...
 
__STATIC_INLINE void LL_RTC_ALMB_SetSubSecond (RTC_TypeDef *RTCx, uint32_t Subsecond)
 Set Alarm B subseconds value @rmtoll ALRMBSSR SS LL_RTC_ALMB_SetSubSecond. More...
 
__STATIC_INLINE uint32_t LL_RTC_ALMB_GetSubSecond (RTC_TypeDef *RTCx)
 Get Alarm B subseconds value @rmtoll ALRMBSSR SS LL_RTC_ALMB_GetSubSecond. 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) @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...
 
__STATIC_INLINE void LL_RTC_TAMPER_Enable (RTC_TypeDef *RTCx, uint32_t Tamper)
 Enable RTC_TAMPx input detection @rmtoll TAFCR TAMP1E LL_RTC_TAMPER_Enable
TAFCR TAMP2E LL_RTC_TAMPER_Enable
. More...
 
__STATIC_INLINE void LL_RTC_TAMPER_Disable (RTC_TypeDef *RTCx, uint32_t Tamper)
 Clear RTC_TAMPx input detection @rmtoll TAFCR TAMP1E LL_RTC_TAMPER_Disable
TAFCR TAMP2E LL_RTC_TAMPER_Disable
. More...
 
__STATIC_INLINE void LL_RTC_TAMPER_DisablePullUp (RTC_TypeDef *RTCx)
 Disable RTC_TAMPx pull-up disable (Disable precharge of RTC_TAMPx pins) @rmtoll TAFCR 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) @rmtoll TAFCR TAMPPUDIS LL_RTC_TAMPER_EnablePullUp. More...
 
__STATIC_INLINE void LL_RTC_TAMPER_SetPrecharge (RTC_TypeDef *RTCx, uint32_t Duration)
 Set RTC_TAMPx precharge duration @rmtoll TAFCR TAMPPRCH LL_RTC_TAMPER_SetPrecharge. More...
 
__STATIC_INLINE uint32_t LL_RTC_TAMPER_GetPrecharge (RTC_TypeDef *RTCx)
 Get RTC_TAMPx precharge duration @rmtoll TAFCR TAMPPRCH LL_RTC_TAMPER_GetPrecharge. More...
 
__STATIC_INLINE void LL_RTC_TAMPER_SetFilterCount (RTC_TypeDef *RTCx, uint32_t FilterCount)
 Set RTC_TAMPx filter count @rmtoll TAFCR TAMPFLT LL_RTC_TAMPER_SetFilterCount. More...
 
__STATIC_INLINE uint32_t LL_RTC_TAMPER_GetFilterCount (RTC_TypeDef *RTCx)
 Get RTC_TAMPx filter count @rmtoll TAFCR TAMPFLT LL_RTC_TAMPER_GetFilterCount. More...
 
__STATIC_INLINE void LL_RTC_TAMPER_SetSamplingFreq (RTC_TypeDef *RTCx, uint32_t SamplingFreq)
 Set Tamper sampling frequency @rmtoll TAFCR TAMPFREQ LL_RTC_TAMPER_SetSamplingFreq. More...
 
__STATIC_INLINE uint32_t LL_RTC_TAMPER_GetSamplingFreq (RTC_TypeDef *RTCx)
 Get Tamper sampling frequency @rmtoll TAFCR 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 @rmtoll TAFCR TAMP1TRG LL_RTC_TAMPER_EnableActiveLevel
TAFCR TAMP2TRG LL_RTC_TAMPER_EnableActiveLevel
. More...
 
__STATIC_INLINE void LL_RTC_TAMPER_DisableActiveLevel (RTC_TypeDef *RTCx, uint32_t Tamper)
 Disable Active level for Tamper input @rmtoll TAFCR TAMP1TRG LL_RTC_TAMPER_DisableActiveLevel
TAFCR TAMP2TRG LL_RTC_TAMPER_DisableActiveLevel
. More...
 
__STATIC_INLINE void LL_RTC_TAMPER_SetPin (RTC_TypeDef *RTCx, uint32_t TamperPin)
 Set Tamper Pin @rmtoll TAFCR TAMP1INSEL LL_RTC_TAMPER_SetPin. More...
 
__STATIC_INLINE uint32_t LL_RTC_TAMPER_GetPin (RTC_TypeDef *RTCx)
 Get Tamper Pin @rmtoll TAFCR TAMP1INSEL LL_RTC_TAMPER_GetPin. 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 @rmtoll 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 @rmtoll 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 @rmtoll WUTR WUT LL_RTC_WAKEUP_GetAutoReload. 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. @rmtoll 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. @rmtoll BKPxR BKP LL_RTC_BAK_GetRegister. 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) @rmtoll CR COE LL_RTC_CAL_GetOutputFreq
CR COSEL LL_RTC_CAL_GetOutputFreq. More...
 
__STATIC_INLINE void LL_RTC_CAL_EnableCoarseDigital (RTC_TypeDef *RTCx)
 Enable Coarse digital calibration. More...
 
__STATIC_INLINE void LL_RTC_CAL_DisableCoarseDigital (RTC_TypeDef *RTCx)
 Disable Coarse digital calibration. More...
 
__STATIC_INLINE void LL_RTC_CAL_ConfigCoarseDigital (RTC_TypeDef *RTCx, uint32_t Sign, uint32_t Value)
 Set the coarse digital calibration. More...
 
__STATIC_INLINE uint32_t LL_RTC_CAL_GetCoarseDigitalValue (RTC_TypeDef *RTCx)
 Get the coarse digital calibration value @rmtoll CALIBR DC LL_RTC_CAL_GetCoarseDigitalValue. More...
 
__STATIC_INLINE uint32_t LL_RTC_CAL_GetCoarseDigitalSign (RTC_TypeDef *RTCx)
 Get the coarse digital calibration sign @rmtoll CALIBR DCS LL_RTC_CAL_GetCoarseDigitalSign. 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) @rmtoll CALR CALP LL_RTC_CAL_IsPulseInserted. More...
 
__STATIC_INLINE void LL_RTC_CAL_SetPeriod (RTC_TypeDef *RTCx, uint32_t Period)
 Set smooth calibration cycle period. More...
 
__STATIC_INLINE uint32_t LL_RTC_CAL_GetPeriod (RTC_TypeDef *RTCx)
 Get smooth calibration cycle period @rmtoll CALR CALW8 LL_RTC_CAL_GetPeriod
CALR CALW16 LL_RTC_CAL_GetPeriod. More...
 
__STATIC_INLINE void LL_RTC_CAL_SetMinus (RTC_TypeDef *RTCx, uint32_t CalibMinus)
 Set smooth Calibration minus. More...
 
__STATIC_INLINE uint32_t LL_RTC_CAL_GetMinus (RTC_TypeDef *RTCx)
 Get smooth Calibration minus @rmtoll CALR CALM LL_RTC_CAL_GetMinus. More...
 
__STATIC_INLINE uint32_t LL_RTC_IsActiveFlag_RECALP (RTC_TypeDef *RTCx)
 Get Recalibration pending Flag @rmtoll ISR RECALPF LL_RTC_IsActiveFlag_RECALP. More...
 
__STATIC_INLINE uint32_t LL_RTC_IsActiveFlag_TAMP2 (RTC_TypeDef *RTCx)
 Get RTC_TAMP2 detection flag @rmtoll ISR TAMP2F LL_RTC_IsActiveFlag_TAMP2. More...
 
__STATIC_INLINE uint32_t LL_RTC_IsActiveFlag_TAMP1 (RTC_TypeDef *RTCx)
 Get RTC_TAMP1 detection flag @rmtoll ISR TAMP1F LL_RTC_IsActiveFlag_TAMP1. More...
 
__STATIC_INLINE uint32_t LL_RTC_IsActiveFlag_TSOV (RTC_TypeDef *RTCx)
 Get Time-stamp overflow flag @rmtoll ISR TSOVF LL_RTC_IsActiveFlag_TSOV. More...
 
__STATIC_INLINE uint32_t LL_RTC_IsActiveFlag_TS (RTC_TypeDef *RTCx)
 Get Time-stamp flag @rmtoll ISR TSF LL_RTC_IsActiveFlag_TS. More...
 
__STATIC_INLINE uint32_t LL_RTC_IsActiveFlag_WUT (RTC_TypeDef *RTCx)
 Get Wakeup timer flag @rmtoll ISR WUTF LL_RTC_IsActiveFlag_WUT. More...
 
__STATIC_INLINE uint32_t LL_RTC_IsActiveFlag_ALRB (RTC_TypeDef *RTCx)
 Get Alarm B flag @rmtoll ISR ALRBF LL_RTC_IsActiveFlag_ALRB. More...
 
__STATIC_INLINE uint32_t LL_RTC_IsActiveFlag_ALRA (RTC_TypeDef *RTCx)
 Get Alarm A flag @rmtoll ISR ALRAF LL_RTC_IsActiveFlag_ALRA. More...
 
__STATIC_INLINE void LL_RTC_ClearFlag_TAMP2 (RTC_TypeDef *RTCx)
 Clear RTC_TAMP2 detection flag @rmtoll ISR TAMP2F LL_RTC_ClearFlag_TAMP2. More...
 
__STATIC_INLINE void LL_RTC_ClearFlag_TAMP1 (RTC_TypeDef *RTCx)
 Clear RTC_TAMP1 detection flag @rmtoll ISR TAMP1F LL_RTC_ClearFlag_TAMP1. More...
 
__STATIC_INLINE void LL_RTC_ClearFlag_TSOV (RTC_TypeDef *RTCx)
 Clear Time-stamp overflow flag @rmtoll ISR TSOVF LL_RTC_ClearFlag_TSOV. More...
 
__STATIC_INLINE void LL_RTC_ClearFlag_TS (RTC_TypeDef *RTCx)
 Clear Time-stamp flag @rmtoll ISR TSF LL_RTC_ClearFlag_TS. More...
 
__STATIC_INLINE void LL_RTC_ClearFlag_WUT (RTC_TypeDef *RTCx)
 Clear Wakeup timer flag @rmtoll ISR WUTF LL_RTC_ClearFlag_WUT. More...
 
__STATIC_INLINE void LL_RTC_ClearFlag_ALRB (RTC_TypeDef *RTCx)
 Clear Alarm B flag @rmtoll ISR ALRBF LL_RTC_ClearFlag_ALRB. More...
 
__STATIC_INLINE void LL_RTC_ClearFlag_ALRA (RTC_TypeDef *RTCx)
 Clear Alarm A flag @rmtoll ISR ALRAF LL_RTC_ClearFlag_ALRA. More...
 
__STATIC_INLINE uint32_t LL_RTC_IsActiveFlag_INIT (RTC_TypeDef *RTCx)
 Get Initialization flag @rmtoll ISR INITF LL_RTC_IsActiveFlag_INIT. More...
 
__STATIC_INLINE uint32_t LL_RTC_IsActiveFlag_RS (RTC_TypeDef *RTCx)
 Get Registers synchronization flag @rmtoll ISR RSF LL_RTC_IsActiveFlag_RS. More...
 
__STATIC_INLINE void LL_RTC_ClearFlag_RS (RTC_TypeDef *RTCx)
 Clear Registers synchronization flag @rmtoll ISR RSF LL_RTC_ClearFlag_RS. More...
 
__STATIC_INLINE uint32_t LL_RTC_IsActiveFlag_INITS (RTC_TypeDef *RTCx)
 Get Initialization status flag @rmtoll ISR INITS LL_RTC_IsActiveFlag_INITS. More...
 
__STATIC_INLINE uint32_t LL_RTC_IsActiveFlag_SHP (RTC_TypeDef *RTCx)
 Get Shift operation pending flag @rmtoll ISR SHPF LL_RTC_IsActiveFlag_SHP. More...
 
__STATIC_INLINE uint32_t LL_RTC_IsActiveFlag_WUTW (RTC_TypeDef *RTCx)
 Get Wakeup timer write flag @rmtoll ISR WUTWF LL_RTC_IsActiveFlag_WUTW. More...
 
__STATIC_INLINE uint32_t LL_RTC_IsActiveFlag_ALRBW (RTC_TypeDef *RTCx)
 Get Alarm B write flag @rmtoll ISR ALRBWF LL_RTC_IsActiveFlag_ALRBW. More...
 
__STATIC_INLINE uint32_t LL_RTC_IsActiveFlag_ALRAW (RTC_TypeDef *RTCx)
 Get Alarm A write flag @rmtoll ISR ALRAWF LL_RTC_IsActiveFlag_ALRAW. 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 void LL_RTC_EnableIT_TAMP (RTC_TypeDef *RTCx)
 Enable all Tamper Interrupt @rmtoll TAFCR TAMPIE LL_RTC_EnableIT_TAMP. More...
 
__STATIC_INLINE void LL_RTC_DisableIT_TAMP (RTC_TypeDef *RTCx)
 Disable all Tamper Interrupt @rmtoll TAFCR TAMPIE LL_RTC_DisableIT_TAMP. More...
 
__STATIC_INLINE uint32_t LL_RTC_IsEnabledIT_TS (RTC_TypeDef *RTCx)
 Check if Time-stamp interrupt is enabled or not @rmtoll 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 @rmtoll 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 @rmtoll 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 @rmtoll CR ALRAIE LL_RTC_IsEnabledIT_ALRA. More...
 
__STATIC_INLINE uint32_t LL_RTC_IsEnabledIT_TAMP (RTC_TypeDef *RTCx)
 Check if all the TAMPER interrupts are enabled or not @rmtoll TAFCR 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) 2016 STMicroelectronics. All rights reserved.

This software is licensed under terms that can be found in the LICENSE file in the root directory of this software component. If no LICENSE file comes with this software, it is provided AS-IS.

Definition in file stm32f4xx_ll_rtc.h.