STM32F4xx_HAL_Driver  1.8.3
RTC Exported Init structure
+ Collaboration diagram for RTC Exported Init structure:

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

Detailed Description


Data Structure Documentation

◆ LL_RTC_InitTypeDef

struct LL_RTC_InitTypeDef

RTC Init structures definition.

Definition at line 85 of file stm32f4xx_ll_rtc.h.

Data Fields
uint32_t AsynchPrescaler

Specifies the RTC Asynchronous Predivider value. This parameter must be a number between Min_Data = 0x00 and Max_Data = 0x7F

This feature can be modified afterwards using unitary function LL_RTC_SetAsynchPrescaler().

uint32_t HourFormat

Specifies the RTC Hours Format. This parameter can be a value of HOUR FORMAT

This feature can be modified afterwards using unitary function LL_RTC_SetHourFormat().

uint32_t SynchPrescaler

Specifies the RTC Synchronous Predivider value. This parameter must be a number between Min_Data = 0x00 and Max_Data = 0x7FFF

This feature can be modified afterwards using unitary function LL_RTC_SetSynchPrescaler().

◆ LL_RTC_TimeTypeDef

struct LL_RTC_TimeTypeDef

RTC Time structure definition.

Definition at line 109 of file stm32f4xx_ll_rtc.h.

Data Fields
uint8_t Hours

Specifies the RTC Time Hours. This parameter must be a number between Min_Data = 0 and Max_Data = 12 if the LL_RTC_TIME_FORMAT_PM is selected. This parameter must be a number between Min_Data = 0 and Max_Data = 23 if the LL_RTC_TIME_FORMAT_AM_OR_24 is selected.

This feature can be modified afterwards using unitary function LL_RTC_TIME_SetHour().

uint8_t Minutes

Specifies the RTC Time Minutes. This parameter must be a number between Min_Data = 0 and Max_Data = 59

This feature can be modified afterwards using unitary function LL_RTC_TIME_SetMinute().

uint8_t Seconds

Specifies the RTC Time Seconds. This parameter must be a number between Min_Data = 0 and Max_Data = 59

This feature can be modified afterwards using unitary function LL_RTC_TIME_SetSecond().

uint32_t TimeFormat

Specifies the RTC AM/PM Time. This parameter can be a value of TIME FORMAT

This feature can be modified afterwards using unitary function LL_RTC_TIME_SetFormat().

◆ LL_RTC_DateTypeDef

struct LL_RTC_DateTypeDef

RTC Date structure definition.

Definition at line 136 of file stm32f4xx_ll_rtc.h.

Data Fields
uint8_t Day

Specifies the RTC Date Day. This parameter must be a number between Min_Data = 1 and Max_Data = 31

This feature can be modified afterwards using unitary function LL_RTC_DATE_SetDay().

uint8_t Month

Specifies the RTC Date Month. This parameter can be a value of MONTH

This feature can be modified afterwards using unitary function LL_RTC_DATE_SetMonth().

uint8_t WeekDay

Specifies the RTC Date WeekDay. This parameter can be a value of WEEK DAY

This feature can be modified afterwards using unitary function LL_RTC_DATE_SetWeekDay().

uint8_t Year

Specifies the RTC Date Year. This parameter must be a number between Min_Data = 0 and Max_Data = 99

This feature can be modified afterwards using unitary function LL_RTC_DATE_SetYear().

◆ LL_RTC_AlarmTypeDef

struct LL_RTC_AlarmTypeDef

RTC Alarm structure definition.

Definition at line 162 of file stm32f4xx_ll_rtc.h.

+ Collaboration diagram for LL_RTC_AlarmTypeDef:
Data Fields
uint8_t AlarmDateWeekDay

Specifies the RTC Alarm Day/WeekDay. If AlarmDateWeekDaySel set to day, this parameter must be a number between Min_Data = 1 and Max_Data = 31.

This feature can be modified afterwards using unitary function LL_RTC_ALMA_SetDay() for ALARM A or LL_RTC_ALMB_SetDay() for ALARM B.

If AlarmDateWeekDaySel set to Weekday, this parameter can be a value of WEEK DAY.

This feature can be modified afterwards using unitary function LL_RTC_ALMA_SetWeekDay() for ALARM A or LL_RTC_ALMB_SetWeekDay() for ALARM B.

uint32_t AlarmDateWeekDaySel

Specifies the RTC Alarm is on day or WeekDay. This parameter can be a value of RTC Alarm A Date WeekDay for ALARM A or RTC Alarm B Date WeekDay for ALARM B

This feature can be modified afterwards using unitary function LL_RTC_ALMA_EnableWeekday() or LL_RTC_ALMA_DisableWeekday() for ALARM A or LL_RTC_ALMB_EnableWeekday() or LL_RTC_ALMB_DisableWeekday() for ALARM B

uint32_t AlarmMask

Specifies the RTC Alarm Masks. This parameter can be a value of ALARMA MASK for ALARM A or ALARMB MASK for ALARM B.

This feature can be modified afterwards using unitary function LL_RTC_ALMA_SetMask() for ALARM A or LL_RTC_ALMB_SetMask() for ALARM B.

LL_RTC_TimeTypeDef AlarmTime

Specifies the RTC Alarm Time members.