STM32F439xx HAL User Manual
Data Structures | Defines | Functions
stm32f4xx_ll_rtc.h File Reference

Header file of RTC LL module. More...

#include "stm32f4xx.h"

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...

Defines

#define RTC_INIT_MASK   0xFFFFFFFFU
#define RTC_RSF_MASK   0xFFFFFF5FU
#define RTC_WRITE_PROTECTION_DISABLE   ((uint8_t)0xFFU)
#define RTC_WRITE_PROTECTION_ENABLE_1   ((uint8_t)0xCAU)
#define RTC_WRITE_PROTECTION_ENABLE_2   ((uint8_t)0x53U)
#define RTC_OFFSET_WEEKDAY   24U
#define RTC_OFFSET_DAY   16U
#define RTC_OFFSET_MONTH   8U
#define RTC_OFFSET_HOUR   16U
#define RTC_OFFSET_MINUTE   8U
#define LL_RTC_FORMAT_BIN   0x000000000U
#define LL_RTC_FORMAT_BCD   0x000000001U
#define LL_RTC_ALMA_DATEWEEKDAYSEL_DATE   0x00000000U
#define LL_RTC_ALMA_DATEWEEKDAYSEL_WEEKDAY   RTC_ALRMAR_WDSEL
#define LL_RTC_ALMB_DATEWEEKDAYSEL_DATE   0x00000000U
#define LL_RTC_ALMB_DATEWEEKDAYSEL_WEEKDAY   RTC_ALRMBR_WDSEL
#define LL_RTC_ISR_RECALPF   RTC_ISR_RECALPF
#define LL_RTC_ISR_TAMP3F   RTC_ISR_TAMP3F
#define LL_RTC_ISR_TAMP2F   RTC_ISR_TAMP2F
#define LL_RTC_ISR_TAMP1F   RTC_ISR_TAMP1F
#define LL_RTC_ISR_TSOVF   RTC_ISR_TSOVF
#define LL_RTC_ISR_TSF   RTC_ISR_TSF
#define LL_RTC_ISR_WUTF   RTC_ISR_WUTF
#define LL_RTC_ISR_ALRBF   RTC_ISR_ALRBF
#define LL_RTC_ISR_ALRAF   RTC_ISR_ALRAF
#define LL_RTC_ISR_INITF   RTC_ISR_INITF
#define LL_RTC_ISR_RSF   RTC_ISR_RSF
#define LL_RTC_ISR_INITS   RTC_ISR_INITS
#define LL_RTC_ISR_SHPF   RTC_ISR_SHPF
#define LL_RTC_ISR_WUTWF   RTC_ISR_WUTWF
#define LL_RTC_ISR_ALRBWF   RTC_ISR_ALRBWF
#define LL_RTC_ISR_ALRAWF   RTC_ISR_ALRAWF
#define LL_RTC_CR_TSIE   RTC_CR_TSIE
#define LL_RTC_CR_WUTIE   RTC_CR_WUTIE
#define LL_RTC_CR_ALRBIE   RTC_CR_ALRBIE
#define LL_RTC_CR_ALRAIE   RTC_CR_ALRAIE
#define LL_RTC_TAFCR_TAMPIE   RTC_TAFCR_TAMPIE
#define LL_RTC_WEEKDAY_MONDAY   ((uint8_t)0x01U)
#define LL_RTC_WEEKDAY_TUESDAY   ((uint8_t)0x02U)
#define LL_RTC_WEEKDAY_WEDNESDAY   ((uint8_t)0x03U)
#define LL_RTC_WEEKDAY_THURSDAY   ((uint8_t)0x04U)
#define LL_RTC_WEEKDAY_FRIDAY   ((uint8_t)0x05U)
#define LL_RTC_WEEKDAY_SATURDAY   ((uint8_t)0x06U)
#define LL_RTC_WEEKDAY_SUNDAY   ((uint8_t)0x07U)
#define LL_RTC_MONTH_JANUARY   ((uint8_t)0x01U)
#define LL_RTC_MONTH_FEBRUARY   ((uint8_t)0x02U)
#define LL_RTC_MONTH_MARCH   ((uint8_t)0x03U)
#define LL_RTC_MONTH_APRIL   ((uint8_t)0x04U)
#define LL_RTC_MONTH_MAY   ((uint8_t)0x05U)
#define LL_RTC_MONTH_JUNE   ((uint8_t)0x06U)
#define LL_RTC_MONTH_JULY   ((uint8_t)0x07U)
#define LL_RTC_MONTH_AUGUST   ((uint8_t)0x08U)
#define LL_RTC_MONTH_SEPTEMBER   ((uint8_t)0x09U)
#define LL_RTC_MONTH_OCTOBER   ((uint8_t)0x10U)
#define LL_RTC_MONTH_NOVEMBER   ((uint8_t)0x11U)
#define LL_RTC_MONTH_DECEMBER   ((uint8_t)0x12U)
#define LL_RTC_HOURFORMAT_24HOUR   0x00000000U
#define LL_RTC_HOURFORMAT_AMPM   RTC_CR_FMT
#define LL_RTC_ALARMOUT_DISABLE   0x00000000U
#define LL_RTC_ALARMOUT_ALMA   RTC_CR_OSEL_0
#define LL_RTC_ALARMOUT_ALMB   RTC_CR_OSEL_1
#define LL_RTC_ALARMOUT_WAKEUP   RTC_CR_OSEL
#define LL_RTC_ALARM_OUTPUTTYPE_OPENDRAIN   0x00000000U
#define LL_RTC_ALARM_OUTPUTTYPE_PUSHPULL   RTC_TAFCR_ALARMOUTTYPE
#define LL_RTC_PIN_PC13   RTC_TAFCR_PC13MODE
#define LL_RTC_PIN_PC14   RTC_TAFCR_PC14MODE
#define LL_RTC_PIN_PC15   RTC_TAFCR_PC15MODE
#define LL_RTC_OUTPUTPOLARITY_PIN_HIGH   0x00000000U
#define LL_RTC_OUTPUTPOLARITY_PIN_LOW   RTC_CR_POL
#define LL_RTC_TIME_FORMAT_AM_OR_24   0x00000000U
#define LL_RTC_TIME_FORMAT_PM   RTC_TR_PM
#define LL_RTC_SHIFT_SECOND_DELAY   0x00000000U /* Delay (seconds) = SUBFS / (PREDIV_S + 1) */
#define LL_RTC_SHIFT_SECOND_ADVANCE   RTC_SHIFTR_ADD1S /* Advance (seconds) = (1 - (SUBFS / (PREDIV_S + 1))) */
#define LL_RTC_ALMA_MASK_NONE   0x00000000U
#define LL_RTC_ALMA_MASK_DATEWEEKDAY   RTC_ALRMAR_MSK4
#define LL_RTC_ALMA_MASK_HOURS   RTC_ALRMAR_MSK3
#define LL_RTC_ALMA_MASK_MINUTES   RTC_ALRMAR_MSK2
#define LL_RTC_ALMA_MASK_SECONDS   RTC_ALRMAR_MSK1
#define LL_RTC_ALMA_MASK_ALL   (RTC_ALRMAR_MSK4 | RTC_ALRMAR_MSK3 | RTC_ALRMAR_MSK2 | RTC_ALRMAR_MSK1)
#define LL_RTC_ALMA_TIME_FORMAT_AM   0x00000000U
#define LL_RTC_ALMA_TIME_FORMAT_PM   RTC_ALRMAR_PM
#define LL_RTC_ALMB_MASK_NONE   0x00000000U
#define LL_RTC_ALMB_MASK_DATEWEEKDAY   RTC_ALRMBR_MSK4
#define LL_RTC_ALMB_MASK_HOURS   RTC_ALRMBR_MSK3
#define LL_RTC_ALMB_MASK_MINUTES   RTC_ALRMBR_MSK2
#define LL_RTC_ALMB_MASK_SECONDS   RTC_ALRMBR_MSK1
#define LL_RTC_ALMB_MASK_ALL   (RTC_ALRMBR_MSK4 | RTC_ALRMBR_MSK3 | RTC_ALRMBR_MSK2 | RTC_ALRMBR_MSK1)
#define LL_RTC_ALMB_TIME_FORMAT_AM   0x00000000U
#define LL_RTC_ALMB_TIME_FORMAT_PM   RTC_ALRMBR_PM
#define LL_RTC_TIMESTAMP_EDGE_RISING   0x00000000U
#define LL_RTC_TIMESTAMP_EDGE_FALLING   RTC_CR_TSEDGE
#define LL_RTC_TS_TIME_FORMAT_AM   0x00000000U
#define LL_RTC_TS_TIME_FORMAT_PM   RTC_TSTR_PM
#define LL_RTC_TAMPER_1   RTC_TAFCR_TAMP1E
#define LL_RTC_TAMPER_2   RTC_TAFCR_TAMP2E
#define LL_RTC_TAMPER_MASK_TAMPER1   RTC_TAFCR_TAMP1MF
#define LL_RTC_TAMPER_MASK_TAMPER2   RTC_TAFCR_TAMP2MF
#define LL_RTC_TAMPER_NOERASE_TAMPER1   RTC_TAFCR_TAMP1NOERASE
#define LL_RTC_TAMPER_NOERASE_TAMPER2   RTC_TAFCR_TAMP2NOERASE
#define LL_RTC_TAMPER_DURATION_1RTCCLK   0x00000000U
#define LL_RTC_TAMPER_DURATION_2RTCCLK   RTC_TAFCR_TAMPPRCH_0
#define LL_RTC_TAMPER_DURATION_4RTCCLK   RTC_TAFCR_TAMPPRCH_1
#define LL_RTC_TAMPER_DURATION_8RTCCLK   RTC_TAFCR_TAMPPRCH
#define LL_RTC_TAMPER_FILTER_DISABLE   0x00000000U
#define LL_RTC_TAMPER_FILTER_2SAMPLE   RTC_TAFCR_TAMPFLT_0
#define LL_RTC_TAMPER_FILTER_4SAMPLE   RTC_TAFCR_TAMPFLT_1
#define LL_RTC_TAMPER_FILTER_8SAMPLE   RTC_TAFCR_TAMPFLT
#define LL_RTC_TAMPER_SAMPLFREQDIV_32768   0x00000000U
#define LL_RTC_TAMPER_SAMPLFREQDIV_16384   RTC_TAFCR_TAMPFREQ_0
#define LL_RTC_TAMPER_SAMPLFREQDIV_8192   RTC_TAFCR_TAMPFREQ_1
#define LL_RTC_TAMPER_SAMPLFREQDIV_4096   (RTC_TAFCR_TAMPFREQ_1 | RTC_TAFCR_TAMPFREQ_0)
#define LL_RTC_TAMPER_SAMPLFREQDIV_2048   RTC_TAFCR_TAMPFREQ_2
#define LL_RTC_TAMPER_SAMPLFREQDIV_1024   (RTC_TAFCR_TAMPFREQ_2 | RTC_TAFCR_TAMPFREQ_0)
#define LL_RTC_TAMPER_SAMPLFREQDIV_512   (RTC_TAFCR_TAMPFREQ_2 | RTC_TAFCR_TAMPFREQ_1)
#define LL_RTC_TAMPER_SAMPLFREQDIV_256   RTC_TAFCR_TAMPFREQ
#define LL_RTC_TAMPER_ACTIVELEVEL_TAMP1   RTC_TAFCR_TAMP1TRG
#define LL_RTC_TAMPER_ACTIVELEVEL_TAMP2   RTC_TAFCR_TAMP2TRG
#define LL_RTC_WAKEUPCLOCK_DIV_16   0x00000000U
#define LL_RTC_WAKEUPCLOCK_DIV_8   (RTC_CR_WUCKSEL_0)
#define LL_RTC_WAKEUPCLOCK_DIV_4   (RTC_CR_WUCKSEL_1)
#define LL_RTC_WAKEUPCLOCK_DIV_2   (RTC_CR_WUCKSEL_1 | RTC_CR_WUCKSEL_0)
#define LL_RTC_WAKEUPCLOCK_CKSPRE   (RTC_CR_WUCKSEL_2)
#define LL_RTC_WAKEUPCLOCK_CKSPRE_WUT   (RTC_CR_WUCKSEL_2 | RTC_CR_WUCKSEL_1)
#define LL_RTC_BKP_DR0   0x00000000U
#define LL_RTC_BKP_DR1   0x00000001U
#define LL_RTC_BKP_DR2   0x00000002U
#define LL_RTC_BKP_DR3   0x00000003U
#define LL_RTC_BKP_DR4   0x00000004U
#define LL_RTC_BKP_DR5   0x00000005U
#define LL_RTC_BKP_DR6   0x00000006U
#define LL_RTC_BKP_DR7   0x00000007U
#define LL_RTC_BKP_DR8   0x00000008U
#define LL_RTC_BKP_DR9   0x00000009U
#define LL_RTC_BKP_DR10   0x0000000AU
#define LL_RTC_BKP_DR11   0x0000000BU
#define LL_RTC_BKP_DR12   0x0000000CU
#define LL_RTC_BKP_DR13   0x0000000DU
#define LL_RTC_BKP_DR14   0x0000000EU
#define LL_RTC_BKP_DR15   0x0000000FU
#define LL_RTC_BKP_DR16   0x00000010U
#define LL_RTC_BKP_DR17   0x00000011U
#define LL_RTC_BKP_DR18   0x00000012U
#define LL_RTC_BKP_DR19   0x00000013U
#define LL_RTC_CALIB_OUTPUT_NONE   0x00000000U
#define LL_RTC_CALIB_OUTPUT_1HZ   (RTC_CR_COE | RTC_CR_COSEL)
#define LL_RTC_CALIB_OUTPUT_512HZ   (RTC_CR_COE)
#define LL_RTC_CALIB_SIGN_POSITIVE   0x00000000U
#define LL_RTC_CALIB_SIGN_NEGATIVE   RTC_CALIBR_DCS
#define LL_RTC_CALIB_INSERTPULSE_NONE   0x00000000U
#define LL_RTC_CALIB_INSERTPULSE_SET   RTC_CALR_CALP
#define LL_RTC_CALIB_PERIOD_32SEC   0x00000000U
#define LL_RTC_CALIB_PERIOD_16SEC   RTC_CALR_CALW16
#define LL_RTC_CALIB_PERIOD_8SEC   RTC_CALR_CALW8
#define LL_RTC_TimeStampPin_Default   0x00000000U
#define LL_RTC_TimeStampPin_Pos1   RTC_TAFCR_TSINSEL
#define LL_RTC_TamperPin_Default   0x00000000U
#define LL_RTC_TamperPin_Pos1   RTC_TAFCR_TAMP1INSEL
#define LL_RTC_WriteReg(__INSTANCE__, __REG__, __VALUE__)   WRITE_REG(__INSTANCE__->__REG__, (__VALUE__))
 Write a value in RTC register.
#define LL_RTC_ReadReg(__INSTANCE__, __REG__)   READ_REG(__INSTANCE__->__REG__)
 Read a value in RTC register.
#define __LL_RTC_CONVERT_BIN2BCD(__VALUE__)   (uint8_t)((((__VALUE__) / 10U) << 4U) | ((__VALUE__) % 10U))
 Helper macro to convert a value from 2 digit decimal format to BCD format.
#define __LL_RTC_CONVERT_BCD2BIN(__VALUE__)   (uint8_t)(((uint8_t)((__VALUE__) & (uint8_t)0xF0U) >> (uint8_t)0x4U) * 10U + ((__VALUE__) & (uint8_t)0x0FU))
 Helper macro to convert a value from BCD format to 2 digit decimal format.
#define __LL_RTC_GET_WEEKDAY(__RTC_DATE__)   (((__RTC_DATE__) >> RTC_OFFSET_WEEKDAY) & 0x000000FFU)
 Helper macro to retrieve weekday.
#define __LL_RTC_GET_YEAR(__RTC_DATE__)   ((__RTC_DATE__) & 0x000000FFU)
 Helper macro to retrieve Year in BCD format.
#define __LL_RTC_GET_MONTH(__RTC_DATE__)   (((__RTC_DATE__) >>RTC_OFFSET_MONTH) & 0x000000FFU)
 Helper macro to retrieve Month in BCD format.
#define __LL_RTC_GET_DAY(__RTC_DATE__)   (((__RTC_DATE__) >>RTC_OFFSET_DAY) & 0x000000FFU)
 Helper macro to retrieve Day in BCD format.
#define __LL_RTC_GET_HOUR(__RTC_TIME__)   (((__RTC_TIME__) >> RTC_OFFSET_HOUR) & 0x000000FFU)
 Helper macro to retrieve hour in BCD format.
#define __LL_RTC_GET_MINUTE(__RTC_TIME__)   (((__RTC_TIME__) >> RTC_OFFSET_MINUTE) & 0x000000FFU)
 Helper macro to retrieve minute in BCD format.
#define __LL_RTC_GET_SECOND(__RTC_TIME__)   ((__RTC_TIME__) & 0x000000FFU)
 Helper macro to retrieve second in BCD format.

Functions

__STATIC_INLINE void LL_RTC_SetHourFormat (RTC_TypeDef *RTCx, uint32_t HourFormat)
 Set Hours format (24 hour/day or AM/PM hour format)
__STATIC_INLINE uint32_t LL_RTC_GetHourFormat (RTC_TypeDef *RTCx)
 Get Hours format (24 hour/day or AM/PM hour format)
__STATIC_INLINE void LL_RTC_SetAlarmOutEvent (RTC_TypeDef *RTCx, uint32_t AlarmOutput)
 Select the flag to be routed to RTC_ALARM output.
__STATIC_INLINE uint32_t LL_RTC_GetAlarmOutEvent (RTC_TypeDef *RTCx)
 Get the flag to be routed to RTC_ALARM output.
__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)
__STATIC_INLINE uint32_t LL_RTC_GetAlarmOutputType (RTC_TypeDef *RTCx)
 Get RTC_ALARM output type (ALARM in push-pull or open-drain output)
__STATIC_INLINE void LL_RTC_EnablePushPullMode (RTC_TypeDef *RTCx, uint32_t PinMask)
 Enable push-pull output on PC13, PC14 and/or PC15.
__STATIC_INLINE void LL_RTC_DisablePushPullMode (RTC_TypeDef *RTCx, uint32_t PinMask)
 Disable push-pull output on PC13, PC14 and/or PC15.
__STATIC_INLINE void LL_RTC_SetOutputPin (RTC_TypeDef *RTCx, uint32_t PinMask)
 Set PC14 and/or PC15 to high level.
__STATIC_INLINE void LL_RTC_ResetOutputPin (RTC_TypeDef *RTCx, uint32_t PinMask)
 Set PC14 and/or PC15 to low level.
__STATIC_INLINE void LL_RTC_EnableInitMode (RTC_TypeDef *RTCx)
 Enable initialization mode.
__STATIC_INLINE void LL_RTC_DisableInitMode (RTC_TypeDef *RTCx)
 Disable initialization mode (Free running mode)
__STATIC_INLINE void LL_RTC_SetOutputPolarity (RTC_TypeDef *RTCx, uint32_t Polarity)
 Set Output polarity (pin is low when ALRAF/ALRBF/WUTF is asserted)
__STATIC_INLINE uint32_t LL_RTC_GetOutputPolarity (RTC_TypeDef *RTCx)
 Get Output polarity.
__STATIC_INLINE void LL_RTC_EnableShadowRegBypass (RTC_TypeDef *RTCx)
 Enable Bypass the shadow registers.
__STATIC_INLINE void LL_RTC_DisableShadowRegBypass (RTC_TypeDef *RTCx)
 Disable Bypass the shadow registers.
__STATIC_INLINE uint32_t LL_RTC_IsShadowRegBypassEnabled (RTC_TypeDef *RTCx)
 Check if Shadow registers bypass is enabled or not.
__STATIC_INLINE void LL_RTC_EnableRefClock (RTC_TypeDef *RTCx)
 Enable RTC_REFIN reference clock detection (50 or 60 Hz)
__STATIC_INLINE void LL_RTC_DisableRefClock (RTC_TypeDef *RTCx)
 Disable RTC_REFIN reference clock detection (50 or 60 Hz)
__STATIC_INLINE void LL_RTC_SetAsynchPrescaler (RTC_TypeDef *RTCx, uint32_t AsynchPrescaler)
 Set Asynchronous prescaler factor.
__STATIC_INLINE void LL_RTC_SetSynchPrescaler (RTC_TypeDef *RTCx, uint32_t SynchPrescaler)
 Set Synchronous prescaler factor.
__STATIC_INLINE uint32_t LL_RTC_GetAsynchPrescaler (RTC_TypeDef *RTCx)
 Get Asynchronous prescaler factor.
__STATIC_INLINE uint32_t LL_RTC_GetSynchPrescaler (RTC_TypeDef *RTCx)
 Get Synchronous prescaler factor.
__STATIC_INLINE void LL_RTC_EnableWriteProtection (RTC_TypeDef *RTCx)
 Enable the write protection for RTC registers.
__STATIC_INLINE void LL_RTC_DisableWriteProtection (RTC_TypeDef *RTCx)
 Disable the write protection for RTC registers.
__STATIC_INLINE void LL_RTC_TIME_SetFormat (RTC_TypeDef *RTCx, uint32_t TimeFormat)
 Set time format (AM/24-hour or PM notation)
__STATIC_INLINE uint32_t LL_RTC_TIME_GetFormat (RTC_TypeDef *RTCx)
 Get time format (AM or PM notation)
__STATIC_INLINE void LL_RTC_TIME_SetHour (RTC_TypeDef *RTCx, uint32_t Hours)
 Set Hours in BCD format.
__STATIC_INLINE uint32_t LL_RTC_TIME_GetHour (RTC_TypeDef *RTCx)
 Get Hours in BCD format.
__STATIC_INLINE void LL_RTC_TIME_SetMinute (RTC_TypeDef *RTCx, uint32_t Minutes)
 Set Minutes in BCD format.
__STATIC_INLINE uint32_t LL_RTC_TIME_GetMinute (RTC_TypeDef *RTCx)
 Get Minutes in BCD format.
__STATIC_INLINE void LL_RTC_TIME_SetSecond (RTC_TypeDef *RTCx, uint32_t Seconds)
 Set Seconds in BCD format.
__STATIC_INLINE uint32_t LL_RTC_TIME_GetSecond (RTC_TypeDef *RTCx)
 Get Seconds in BCD format.
__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.
__STATIC_INLINE uint32_t LL_RTC_TIME_Get (RTC_TypeDef *RTCx)
 Get time (hour, minute and second) in BCD format.
__STATIC_INLINE void LL_RTC_TIME_EnableDayLightStore (RTC_TypeDef *RTCx)
 Memorize whether the daylight saving time change has been performed.
__STATIC_INLINE void LL_RTC_TIME_DisableDayLightStore (RTC_TypeDef *RTCx)
 Disable memorization whether the daylight saving time change has been performed.
__STATIC_INLINE uint32_t LL_RTC_TIME_IsDayLightStoreEnabled (RTC_TypeDef *RTCx)
 Check if RTC Day Light Saving stored operation has been enabled or not.
__STATIC_INLINE void LL_RTC_TIME_DecHour (RTC_TypeDef *RTCx)
 Subtract 1 hour (winter time change)
__STATIC_INLINE void LL_RTC_TIME_IncHour (RTC_TypeDef *RTCx)
 Add 1 hour (summer time change)
__STATIC_INLINE uint32_t LL_RTC_TIME_GetSubSecond (RTC_TypeDef *RTCx)
 Get Sub second value in the synchronous prescaler counter.
__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.
__STATIC_INLINE void LL_RTC_DATE_SetYear (RTC_TypeDef *RTCx, uint32_t Year)
 Set Year in BCD format.
__STATIC_INLINE uint32_t LL_RTC_DATE_GetYear (RTC_TypeDef *RTCx)
 Get Year in BCD format.
__STATIC_INLINE void LL_RTC_DATE_SetWeekDay (RTC_TypeDef *RTCx, uint32_t WeekDay)
 Set Week day.
__STATIC_INLINE uint32_t LL_RTC_DATE_GetWeekDay (RTC_TypeDef *RTCx)
 Get Week day.
__STATIC_INLINE void LL_RTC_DATE_SetMonth (RTC_TypeDef *RTCx, uint32_t Month)
 Set Month in BCD format.
__STATIC_INLINE uint32_t LL_RTC_DATE_GetMonth (RTC_TypeDef *RTCx)
 Get Month in BCD format.
__STATIC_INLINE void LL_RTC_DATE_SetDay (RTC_TypeDef *RTCx, uint32_t Day)
 Set Day in BCD format.
__STATIC_INLINE uint32_t LL_RTC_DATE_GetDay (RTC_TypeDef *RTCx)
 Get Day in BCD format.
__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.
__STATIC_INLINE uint32_t LL_RTC_DATE_Get (RTC_TypeDef *RTCx)
 Get date (WeekDay, Day, Month and Year) in BCD format.
__STATIC_INLINE void LL_RTC_ALMA_Enable (RTC_TypeDef *RTCx)
 Enable Alarm A.
__STATIC_INLINE void LL_RTC_ALMA_Disable (RTC_TypeDef *RTCx)
 Disable Alarm A.
__STATIC_INLINE void LL_RTC_ALMA_SetMask (RTC_TypeDef *RTCx, uint32_t Mask)
 Specify the Alarm A masks.
__STATIC_INLINE uint32_t LL_RTC_ALMA_GetMask (RTC_TypeDef *RTCx)
 Get the Alarm A masks.
__STATIC_INLINE void LL_RTC_ALMA_EnableWeekday (RTC_TypeDef *RTCx)
 Enable AlarmA Week day selection (DU[3:0] represents the week day.
__STATIC_INLINE void LL_RTC_ALMA_DisableWeekday (RTC_TypeDef *RTCx)
 Disable AlarmA Week day selection (DU[3:0] represents the date )
__STATIC_INLINE void LL_RTC_ALMA_SetDay (RTC_TypeDef *RTCx, uint32_t Day)
 Set ALARM A Day in BCD format.
__STATIC_INLINE uint32_t LL_RTC_ALMA_GetDay (RTC_TypeDef *RTCx)
 Get ALARM A Day in BCD format.
__STATIC_INLINE void LL_RTC_ALMA_SetWeekDay (RTC_TypeDef *RTCx, uint32_t WeekDay)
 Set ALARM A Weekday.
__STATIC_INLINE uint32_t LL_RTC_ALMA_GetWeekDay (RTC_TypeDef *RTCx)
 Get ALARM A Weekday.
__STATIC_INLINE void LL_RTC_ALMA_SetTimeFormat (RTC_TypeDef *RTCx, uint32_t TimeFormat)
 Set Alarm A time format (AM/24-hour or PM notation)
__STATIC_INLINE uint32_t LL_RTC_ALMA_GetTimeFormat (RTC_TypeDef *RTCx)
 Get Alarm A time format (AM or PM notation)
__STATIC_INLINE void LL_RTC_ALMA_SetHour (RTC_TypeDef *RTCx, uint32_t Hours)
 Set ALARM A Hours in BCD format.
__STATIC_INLINE uint32_t LL_RTC_ALMA_GetHour (RTC_TypeDef *RTCx)
 Get ALARM A Hours in BCD format.
__STATIC_INLINE void LL_RTC_ALMA_SetMinute (RTC_TypeDef *RTCx, uint32_t Minutes)
 Set ALARM A Minutes in BCD format.
__STATIC_INLINE uint32_t LL_RTC_ALMA_GetMinute (RTC_TypeDef *RTCx)
 Get ALARM A Minutes in BCD format.
__STATIC_INLINE void LL_RTC_ALMA_SetSecond (RTC_TypeDef *RTCx, uint32_t Seconds)
 Set ALARM A Seconds in BCD format.
__STATIC_INLINE uint32_t LL_RTC_ALMA_GetSecond (RTC_TypeDef *RTCx)
 Get ALARM A Seconds in BCD format.
__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.
__STATIC_INLINE uint32_t LL_RTC_ALMA_GetTime (RTC_TypeDef *RTCx)
 Get Alarm B Time (hour, minute and second) in BCD format.
__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.
__STATIC_INLINE uint32_t LL_RTC_ALMA_GetSubSecondMask (RTC_TypeDef *RTCx)
 Get Alarm A Mask the most-significant bits starting at this bit.
__STATIC_INLINE void LL_RTC_ALMA_SetSubSecond (RTC_TypeDef *RTCx, uint32_t Subsecond)
 Set Alarm A Sub seconds value.
__STATIC_INLINE uint32_t LL_RTC_ALMA_GetSubSecond (RTC_TypeDef *RTCx)
 Get Alarm A Sub seconds value.
__STATIC_INLINE void LL_RTC_ALMB_Enable (RTC_TypeDef *RTCx)
 Enable Alarm B.
__STATIC_INLINE void LL_RTC_ALMB_Disable (RTC_TypeDef *RTCx)
 Disable Alarm B.
__STATIC_INLINE void LL_RTC_ALMB_SetMask (RTC_TypeDef *RTCx, uint32_t Mask)
 Specify the Alarm B masks.
__STATIC_INLINE uint32_t LL_RTC_ALMB_GetMask (RTC_TypeDef *RTCx)
 Get the Alarm B masks.
__STATIC_INLINE void LL_RTC_ALMB_EnableWeekday (RTC_TypeDef *RTCx)
 Enable AlarmB Week day selection (DU[3:0] represents the week day.
__STATIC_INLINE void LL_RTC_ALMB_DisableWeekday (RTC_TypeDef *RTCx)
 Disable AlarmB Week day selection (DU[3:0] represents the date )
__STATIC_INLINE void LL_RTC_ALMB_SetDay (RTC_TypeDef *RTCx, uint32_t Day)
 Set ALARM B Day in BCD format.
__STATIC_INLINE uint32_t LL_RTC_ALMB_GetDay (RTC_TypeDef *RTCx)
 Get ALARM B Day in BCD format.
__STATIC_INLINE void LL_RTC_ALMB_SetWeekDay (RTC_TypeDef *RTCx, uint32_t WeekDay)
 Set ALARM B Weekday.
__STATIC_INLINE uint32_t LL_RTC_ALMB_GetWeekDay (RTC_TypeDef *RTCx)
 Get ALARM B Weekday.
__STATIC_INLINE void LL_RTC_ALMB_SetTimeFormat (RTC_TypeDef *RTCx, uint32_t TimeFormat)
 Set ALARM B time format (AM/24-hour or PM notation)
__STATIC_INLINE uint32_t LL_RTC_ALMB_GetTimeFormat (RTC_TypeDef *RTCx)
 Get ALARM B time format (AM or PM notation)
__STATIC_INLINE void LL_RTC_ALMB_SetHour (RTC_TypeDef *RTCx, uint32_t Hours)
 Set ALARM B Hours in BCD format.
__STATIC_INLINE uint32_t LL_RTC_ALMB_GetHour (RTC_TypeDef *RTCx)
 Get ALARM B Hours in BCD format.
__STATIC_INLINE void LL_RTC_ALMB_SetMinute (RTC_TypeDef *RTCx, uint32_t Minutes)
 Set ALARM B Minutes in BCD format.
__STATIC_INLINE uint32_t LL_RTC_ALMB_GetMinute (RTC_TypeDef *RTCx)
 Get ALARM B Minutes in BCD format.
__STATIC_INLINE void LL_RTC_ALMB_SetSecond (RTC_TypeDef *RTCx, uint32_t Seconds)
 Set ALARM B Seconds in BCD format.
__STATIC_INLINE uint32_t LL_RTC_ALMB_GetSecond (RTC_TypeDef *RTCx)
 Get ALARM B Seconds in BCD format.
__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.
__STATIC_INLINE uint32_t LL_RTC_ALMB_GetTime (RTC_TypeDef *RTCx)
 Get Alarm B Time (hour, minute and second) in BCD format.
__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.
__STATIC_INLINE uint32_t LL_RTC_ALMB_GetSubSecondMask (RTC_TypeDef *RTCx)
 Get Alarm B Mask the most-significant bits starting at this bit.
__STATIC_INLINE void LL_RTC_ALMB_SetSubSecond (RTC_TypeDef *RTCx, uint32_t Subsecond)
 Set Alarm B Sub seconds value.
__STATIC_INLINE uint32_t LL_RTC_ALMB_GetSubSecond (RTC_TypeDef *RTCx)
 Get Alarm B Sub seconds value.
__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.
__STATIC_INLINE void LL_RTC_TAMPER_Enable (RTC_TypeDef *RTCx, uint32_t Tamper)
 Enable RTC_TAMPx input detection.
__STATIC_INLINE void LL_RTC_TAMPER_Disable (RTC_TypeDef *RTCx, uint32_t Tamper)
 Clear RTC_TAMPx input detection.
__STATIC_INLINE void LL_RTC_TAMPER_DisablePullUp (RTC_TypeDef *RTCx)
 Disable RTC_TAMPx pull-up disable (Disable precharge of RTC_TAMPx pins)
__STATIC_INLINE void LL_RTC_TAMPER_EnablePullUp (RTC_TypeDef *RTCx)
 Enable RTC_TAMPx pull-up disable ( Precharge RTC_TAMPx pins before sampling)
__STATIC_INLINE void LL_RTC_TAMPER_SetPrecharge (RTC_TypeDef *RTCx, uint32_t Duration)
 Set RTC_TAMPx precharge duration.
__STATIC_INLINE uint32_t LL_RTC_TAMPER_GetPrecharge (RTC_TypeDef *RTCx)
 Get RTC_TAMPx precharge duration.
__STATIC_INLINE void LL_RTC_TAMPER_SetFilterCount (RTC_TypeDef *RTCx, uint32_t FilterCount)
 Set RTC_TAMPx filter count.
__STATIC_INLINE uint32_t LL_RTC_TAMPER_GetFilterCount (RTC_TypeDef *RTCx)
 Get RTC_TAMPx filter count.
__STATIC_INLINE void LL_RTC_TAMPER_SetSamplingFreq (RTC_TypeDef *RTCx, uint32_t SamplingFreq)
 Set Tamper sampling frequency.
__STATIC_INLINE uint32_t LL_RTC_TAMPER_GetSamplingFreq (RTC_TypeDef *RTCx)
 Get Tamper sampling frequency.
__STATIC_INLINE void LL_RTC_TAMPER_EnableActiveLevel (RTC_TypeDef *RTCx, uint32_t Tamper)
 Enable Active level for Tamper input.
__STATIC_INLINE void LL_RTC_TAMPER_DisableActiveLevel (RTC_TypeDef *RTCx, uint32_t Tamper)
 Disable Active level for Tamper input.
__STATIC_INLINE void LL_RTC_TAMPER_SetPin (RTC_TypeDef *RTCx, uint32_t TamperPin)
 Set Tamper Pin.
__STATIC_INLINE uint32_t LL_RTC_TAMPER_GetPin (RTC_TypeDef *RTCx)
 Get Tamper Pin.
__STATIC_INLINE void LL_RTC_WAKEUP_Enable (RTC_TypeDef *RTCx)
 Enable Wakeup timer.
__STATIC_INLINE void LL_RTC_WAKEUP_Disable (RTC_TypeDef *RTCx)
 Disable Wakeup timer.
__STATIC_INLINE uint32_t LL_RTC_WAKEUP_IsEnabled (RTC_TypeDef *RTCx)
 Check if Wakeup timer is enabled or not.
__STATIC_INLINE void LL_RTC_WAKEUP_SetClock (RTC_TypeDef *RTCx, uint32_t WakeupClock)
 Select Wakeup clock.
__STATIC_INLINE uint32_t LL_RTC_WAKEUP_GetClock (RTC_TypeDef *RTCx)
 Get Wakeup clock.
__STATIC_INLINE void LL_RTC_WAKEUP_SetAutoReload (RTC_TypeDef *RTCx, uint32_t Value)
 Set Wakeup auto-reload value.
__STATIC_INLINE uint32_t LL_RTC_WAKEUP_GetAutoReload (RTC_TypeDef *RTCx)
 Get Wakeup auto-reload value.
__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.
__STATIC_INLINE uint32_t LL_RTC_BAK_GetRegister (RTC_TypeDef *RTCx, uint32_t BackupRegister)
 Reads data from the specified RTC Backup data Register.
__STATIC_INLINE void LL_RTC_CAL_SetOutputFreq (RTC_TypeDef *RTCx, uint32_t Frequency)
 Set Calibration output frequency (1 Hz or 512 Hz)
__STATIC_INLINE uint32_t LL_RTC_CAL_GetOutputFreq (RTC_TypeDef *RTCx)
 Get Calibration output frequency (1 Hz or 512 Hz)
__STATIC_INLINE void LL_RTC_CAL_EnableCoarseDigital (RTC_TypeDef *RTCx)
 Enable Coarse digital calibration.
__STATIC_INLINE void LL_RTC_CAL_DisableCoarseDigital (RTC_TypeDef *RTCx)
 Disable Coarse digital calibration.
__STATIC_INLINE void LL_RTC_CAL_ConfigCoarseDigital (RTC_TypeDef *RTCx, uint32_t Sign, uint32_t Value)
 Set the coarse digital calibration.
__STATIC_INLINE uint32_t LL_RTC_CAL_GetCoarseDigitalValue (RTC_TypeDef *RTCx)
 Get the coarse digital calibration value.
__STATIC_INLINE uint32_t LL_RTC_CAL_GetCoarseDigitalSign (RTC_TypeDef *RTCx)
 Get the coarse digital calibration sign.
__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)
__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)
__STATIC_INLINE void LL_RTC_CAL_SetPeriod (RTC_TypeDef *RTCx, uint32_t Period)
 Set the calibration cycle period.
__STATIC_INLINE uint32_t LL_RTC_CAL_GetPeriod (RTC_TypeDef *RTCx)
 Get the calibration cycle period.
__STATIC_INLINE void LL_RTC_CAL_SetMinus (RTC_TypeDef *RTCx, uint32_t CalibMinus)
 Set Calibration minus.
__STATIC_INLINE uint32_t LL_RTC_CAL_GetMinus (RTC_TypeDef *RTCx)
 Get Calibration minus.
__STATIC_INLINE uint32_t LL_RTC_IsActiveFlag_RECALP (RTC_TypeDef *RTCx)
 Get Recalibration pending Flag.
__STATIC_INLINE uint32_t LL_RTC_IsActiveFlag_TAMP2 (RTC_TypeDef *RTCx)
 Get RTC_TAMP2 detection flag.
__STATIC_INLINE uint32_t LL_RTC_IsActiveFlag_TAMP1 (RTC_TypeDef *RTCx)
 Get RTC_TAMP1 detection flag.
__STATIC_INLINE uint32_t LL_RTC_IsActiveFlag_TSOV (RTC_TypeDef *RTCx)
 Get Time-stamp overflow flag.
__STATIC_INLINE uint32_t LL_RTC_IsActiveFlag_TS (RTC_TypeDef *RTCx)
 Get Time-stamp flag.
__STATIC_INLINE uint32_t LL_RTC_IsActiveFlag_WUT (RTC_TypeDef *RTCx)
 Get Wakeup timer flag.
__STATIC_INLINE uint32_t LL_RTC_IsActiveFlag_ALRB (RTC_TypeDef *RTCx)
 Get Alarm B flag.
__STATIC_INLINE uint32_t LL_RTC_IsActiveFlag_ALRA (RTC_TypeDef *RTCx)
 Get Alarm A flag.
__STATIC_INLINE void LL_RTC_ClearFlag_TAMP2 (RTC_TypeDef *RTCx)
 Clear RTC_TAMP2 detection flag.
__STATIC_INLINE void LL_RTC_ClearFlag_TAMP1 (RTC_TypeDef *RTCx)
 Clear RTC_TAMP1 detection flag.
__STATIC_INLINE void LL_RTC_ClearFlag_TSOV (RTC_TypeDef *RTCx)
 Clear Time-stamp overflow flag.
__STATIC_INLINE void LL_RTC_ClearFlag_TS (RTC_TypeDef *RTCx)
 Clear Time-stamp flag.
__STATIC_INLINE void LL_RTC_ClearFlag_WUT (RTC_TypeDef *RTCx)
 Clear Wakeup timer flag.
__STATIC_INLINE void LL_RTC_ClearFlag_ALRB (RTC_TypeDef *RTCx)
 Clear Alarm B flag.
__STATIC_INLINE void LL_RTC_ClearFlag_ALRA (RTC_TypeDef *RTCx)
 Clear Alarm A flag.
__STATIC_INLINE uint32_t LL_RTC_IsActiveFlag_INIT (RTC_TypeDef *RTCx)
 Get Initialization flag.
__STATIC_INLINE uint32_t LL_RTC_IsActiveFlag_RS (RTC_TypeDef *RTCx)
 Get Registers synchronization flag.
__STATIC_INLINE void LL_RTC_ClearFlag_RS (RTC_TypeDef *RTCx)
 Clear Registers synchronization flag.
__STATIC_INLINE uint32_t LL_RTC_IsActiveFlag_INITS (RTC_TypeDef *RTCx)
 Get Initialization status flag.
__STATIC_INLINE uint32_t LL_RTC_IsActiveFlag_SHP (RTC_TypeDef *RTCx)
 Get Shift operation pending flag.
__STATIC_INLINE uint32_t LL_RTC_IsActiveFlag_WUTW (RTC_TypeDef *RTCx)
 Get Wakeup timer write flag.
__STATIC_INLINE uint32_t LL_RTC_IsActiveFlag_ALRBW (RTC_TypeDef *RTCx)
 Get Alarm B write flag.
__STATIC_INLINE uint32_t LL_RTC_IsActiveFlag_ALRAW (RTC_TypeDef *RTCx)
 Get Alarm A write flag.
__STATIC_INLINE void LL_RTC_EnableIT_TS (RTC_TypeDef *RTCx)
 Enable Time-stamp interrupt.
__STATIC_INLINE void LL_RTC_DisableIT_TS (RTC_TypeDef *RTCx)
 Disable Time-stamp interrupt.
__STATIC_INLINE void LL_RTC_EnableIT_WUT (RTC_TypeDef *RTCx)
 Enable Wakeup timer interrupt.
__STATIC_INLINE void LL_RTC_DisableIT_WUT (RTC_TypeDef *RTCx)
 Disable Wakeup timer interrupt.
__STATIC_INLINE void LL_RTC_EnableIT_ALRB (RTC_TypeDef *RTCx)
 Enable Alarm B interrupt.
__STATIC_INLINE void LL_RTC_DisableIT_ALRB (RTC_TypeDef *RTCx)
 Disable Alarm B interrupt.
__STATIC_INLINE void LL_RTC_EnableIT_ALRA (RTC_TypeDef *RTCx)
 Enable Alarm A interrupt.
__STATIC_INLINE void LL_RTC_DisableIT_ALRA (RTC_TypeDef *RTCx)
 Disable Alarm A interrupt.
__STATIC_INLINE void LL_RTC_EnableIT_TAMP (RTC_TypeDef *RTCx)
 Enable all Tamper Interrupt.
__STATIC_INLINE void LL_RTC_DisableIT_TAMP (RTC_TypeDef *RTCx)
 Disable all Tamper Interrupt.
__STATIC_INLINE uint32_t LL_RTC_IsEnabledIT_TS (RTC_TypeDef *RTCx)
 Check if Time-stamp interrupt is enabled or not.
__STATIC_INLINE uint32_t LL_RTC_IsEnabledIT_WUT (RTC_TypeDef *RTCx)
 Check if Wakeup timer interrupt is enabled or not.
__STATIC_INLINE uint32_t LL_RTC_IsEnabledIT_ALRB (RTC_TypeDef *RTCx)
 Check if Alarm B interrupt is enabled or not.
__STATIC_INLINE uint32_t LL_RTC_IsEnabledIT_ALRA (RTC_TypeDef *RTCx)
 Check if Alarm A interrupt is enabled or not.
__STATIC_INLINE uint32_t LL_RTC_IsEnabledIT_TAMP (RTC_TypeDef *RTCx)
 Check if all the TAMPER interrupts are enabled or not.
ErrorStatus LL_RTC_DeInit (RTC_TypeDef *RTCx)
 De-Initializes the RTC registers to their default reset values.
ErrorStatus LL_RTC_Init (RTC_TypeDef *RTCx, LL_RTC_InitTypeDef *RTC_InitStruct)
 Initializes the RTC registers according to the specified parameters in RTC_InitStruct.
void LL_RTC_StructInit (LL_RTC_InitTypeDef *RTC_InitStruct)
 Set each LL_RTC_InitTypeDef field to default value.
ErrorStatus LL_RTC_TIME_Init (RTC_TypeDef *RTCx, uint32_t RTC_Format, LL_RTC_TimeTypeDef *RTC_TimeStruct)
 Set the RTC current time.
void LL_RTC_TIME_StructInit (LL_RTC_TimeTypeDef *RTC_TimeStruct)
 Set each LL_RTC_TimeTypeDef field to default value (Time = 00h:00min:00sec).
ErrorStatus LL_RTC_DATE_Init (RTC_TypeDef *RTCx, uint32_t RTC_Format, LL_RTC_DateTypeDef *RTC_DateStruct)
 Set the RTC current date.
void LL_RTC_DATE_StructInit (LL_RTC_DateTypeDef *RTC_DateStruct)
 Set each LL_RTC_DateTypeDef field to default value (date = Monday, January 01 xx00)
ErrorStatus LL_RTC_ALMA_Init (RTC_TypeDef *RTCx, uint32_t RTC_Format, LL_RTC_AlarmTypeDef *RTC_AlarmStruct)
 Set the RTC Alarm A.
ErrorStatus LL_RTC_ALMB_Init (RTC_TypeDef *RTCx, uint32_t RTC_Format, LL_RTC_AlarmTypeDef *RTC_AlarmStruct)
 Set the RTC Alarm B.
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).
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).
ErrorStatus LL_RTC_EnterInitMode (RTC_TypeDef *RTCx)
 Enters the RTC Initialization mode.
ErrorStatus LL_RTC_ExitInitMode (RTC_TypeDef *RTCx)
 Exit the RTC Initialization mode.
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.

Detailed Description

Header file of RTC LL module.

Author:
MCD Application Team
Attention:

© COPYRIGHT(c) 2017 STMicroelectronics

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. 3. Neither the name of STMicroelectronics nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

Definition in file stm32f4xx_ll_rtc.h.