STM32F4xx_HAL_Driver  1.8.3
+ Collaboration diagram for Date:

Functions

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

Detailed Description

Function Documentation

◆ LL_RTC_DATE_Config()

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

Parameters
RTCxRTC Instance
WeekDayThis parameter can be one of the following values:
  • LL_RTC_WEEKDAY_MONDAY
  • LL_RTC_WEEKDAY_TUESDAY
  • LL_RTC_WEEKDAY_WEDNESDAY
  • LL_RTC_WEEKDAY_THURSDAY
  • LL_RTC_WEEKDAY_FRIDAY
  • LL_RTC_WEEKDAY_SATURDAY
  • LL_RTC_WEEKDAY_SUNDAY
DayValue between Min_Data=0x01 and Max_Data=0x31
MonthThis parameter can be one of the following values:
  • LL_RTC_MONTH_JANUARY
  • LL_RTC_MONTH_FEBRUARY
  • LL_RTC_MONTH_MARCH
  • LL_RTC_MONTH_APRIL
  • LL_RTC_MONTH_MAY
  • LL_RTC_MONTH_JUNE
  • LL_RTC_MONTH_JULY
  • LL_RTC_MONTH_AUGUST
  • LL_RTC_MONTH_SEPTEMBER
  • LL_RTC_MONTH_OCTOBER
  • LL_RTC_MONTH_NOVEMBER
  • LL_RTC_MONTH_DECEMBER
YearValue between Min_Data=0x00 and Max_Data=0x99
Return values
None

Definition at line 1500 of file stm32f4xx_ll_rtc.h.

◆ LL_RTC_DATE_Get()

__STATIC_INLINE uint32_t LL_RTC_DATE_Get ( RTC_TypeDef *  RTCx)

Get date (WeekDay, Day, Month and Year) in BCD format.

Note
if RTC shadow registers are not bypassed (BYPSHAD=0), need to check if RSF flag is set before reading this bit
helper macros __LL_RTC_GET_WEEKDAY, __LL_RTC_GET_YEAR, __LL_RTC_GET_MONTH, and __LL_RTC_GET_DAY are available to get independently each parameter. @rmtoll DR WDU LL_RTC_DATE_Get
DR MT LL_RTC_DATE_Get
DR MU LL_RTC_DATE_Get
DR DT LL_RTC_DATE_Get
DR DU LL_RTC_DATE_Get
DR YT LL_RTC_DATE_Get
DR YU LL_RTC_DATE_Get
Parameters
RTCxRTC Instance
Return values
Combinationof WeekDay, Day, Month and Year (Format: 0xWWDDMMYY).

Definition at line 1528 of file stm32f4xx_ll_rtc.h.

◆ LL_RTC_DATE_GetDay()

__STATIC_INLINE uint32_t LL_RTC_DATE_GetDay ( RTC_TypeDef *  RTCx)

Get Day in BCD format.

Note
if RTC shadow registers are not bypassed (BYPSHAD=0), need to check if RSF flag is set before reading this bit
helper macro __LL_RTC_CONVERT_BCD2BIN is available to convert Day from BCD to Binary format @rmtoll DR DT LL_RTC_DATE_GetDay
DR DU LL_RTC_DATE_GetDay
Parameters
RTCxRTC Instance
Return values
Valuebetween Min_Data=0x01 and Max_Data=0x31

Definition at line 1460 of file stm32f4xx_ll_rtc.h.

◆ LL_RTC_DATE_GetMonth()

__STATIC_INLINE uint32_t LL_RTC_DATE_GetMonth ( RTC_TypeDef *  RTCx)

Get Month in BCD format.

Note
if RTC shadow registers are not bypassed (BYPSHAD=0), need to check if RSF flag is set before reading this bit
helper macro __LL_RTC_CONVERT_BCD2BIN is available to convert Month from BCD to Binary format @rmtoll DR MT LL_RTC_DATE_GetMonth
DR MU LL_RTC_DATE_GetMonth
Parameters
RTCxRTC Instance
Return values
Returnedvalue can be one of the following values:
  • LL_RTC_MONTH_JANUARY
  • LL_RTC_MONTH_FEBRUARY
  • LL_RTC_MONTH_MARCH
  • LL_RTC_MONTH_APRIL
  • LL_RTC_MONTH_MAY
  • LL_RTC_MONTH_JUNE
  • LL_RTC_MONTH_JULY
  • LL_RTC_MONTH_AUGUST
  • LL_RTC_MONTH_SEPTEMBER
  • LL_RTC_MONTH_OCTOBER
  • LL_RTC_MONTH_NOVEMBER
  • LL_RTC_MONTH_DECEMBER

Definition at line 1430 of file stm32f4xx_ll_rtc.h.

◆ LL_RTC_DATE_GetWeekDay()

__STATIC_INLINE uint32_t LL_RTC_DATE_GetWeekDay ( RTC_TypeDef *  RTCx)

Get Week day.

Note
if RTC shadow registers are not bypassed (BYPSHAD=0), need to check if RSF flag is set before reading this bit @rmtoll DR WDU LL_RTC_DATE_GetWeekDay
Parameters
RTCxRTC Instance
Return values
Returnedvalue can be one of the following values:
  • LL_RTC_WEEKDAY_MONDAY
  • LL_RTC_WEEKDAY_TUESDAY
  • LL_RTC_WEEKDAY_WEDNESDAY
  • LL_RTC_WEEKDAY_THURSDAY
  • LL_RTC_WEEKDAY_FRIDAY
  • LL_RTC_WEEKDAY_SATURDAY
  • LL_RTC_WEEKDAY_SUNDAY

Definition at line 1376 of file stm32f4xx_ll_rtc.h.

◆ LL_RTC_DATE_GetYear()

__STATIC_INLINE uint32_t LL_RTC_DATE_GetYear ( RTC_TypeDef *  RTCx)

Get Year in BCD format.

Note
if RTC shadow registers are not bypassed (BYPSHAD=0), need to check if RSF flag is set before reading this bit
helper macro __LL_RTC_CONVERT_BCD2BIN is available to convert Year from BCD to Binary format @rmtoll DR YT LL_RTC_DATE_GetYear
DR YU LL_RTC_DATE_GetYear
Parameters
RTCxRTC Instance
Return values
Valuebetween Min_Data=0x00 and Max_Data=0x99

Definition at line 1337 of file stm32f4xx_ll_rtc.h.

◆ LL_RTC_DATE_SetDay()

__STATIC_INLINE void LL_RTC_DATE_SetDay ( RTC_TypeDef *  RTCx,
uint32_t  Day 
)

Set Day in BCD format.

Note
helper macro __LL_RTC_CONVERT_BIN2BCD is available to convert Day from binary to BCD format @rmtoll DR DT LL_RTC_DATE_SetDay
DR DU LL_RTC_DATE_SetDay
Parameters
RTCxRTC Instance
DayValue between Min_Data=0x01 and Max_Data=0x31
Return values
None

Definition at line 1444 of file stm32f4xx_ll_rtc.h.

◆ LL_RTC_DATE_SetMonth()

__STATIC_INLINE void LL_RTC_DATE_SetMonth ( RTC_TypeDef *  RTCx,
uint32_t  Month 
)

Set Month in BCD format.

Note
helper macro __LL_RTC_CONVERT_BIN2BCD is available to convert Month from binary to BCD format @rmtoll DR MT LL_RTC_DATE_SetMonth
DR MU LL_RTC_DATE_SetMonth
Parameters
RTCxRTC Instance
MonthThis parameter can be one of the following values:
  • LL_RTC_MONTH_JANUARY
  • LL_RTC_MONTH_FEBRUARY
  • LL_RTC_MONTH_MARCH
  • LL_RTC_MONTH_APRIL
  • LL_RTC_MONTH_MAY
  • LL_RTC_MONTH_JUNE
  • LL_RTC_MONTH_JULY
  • LL_RTC_MONTH_AUGUST
  • LL_RTC_MONTH_SEPTEMBER
  • LL_RTC_MONTH_OCTOBER
  • LL_RTC_MONTH_NOVEMBER
  • LL_RTC_MONTH_DECEMBER
Return values
None

Definition at line 1402 of file stm32f4xx_ll_rtc.h.

◆ LL_RTC_DATE_SetWeekDay()

__STATIC_INLINE void LL_RTC_DATE_SetWeekDay ( RTC_TypeDef *  RTCx,
uint32_t  WeekDay 
)

Set Week day @rmtoll DR WDU LL_RTC_DATE_SetWeekDay.

Parameters
RTCxRTC Instance
WeekDayThis parameter can be one of the following values:
  • LL_RTC_WEEKDAY_MONDAY
  • LL_RTC_WEEKDAY_TUESDAY
  • LL_RTC_WEEKDAY_WEDNESDAY
  • LL_RTC_WEEKDAY_THURSDAY
  • LL_RTC_WEEKDAY_FRIDAY
  • LL_RTC_WEEKDAY_SATURDAY
  • LL_RTC_WEEKDAY_SUNDAY
Return values
None

Definition at line 1356 of file stm32f4xx_ll_rtc.h.

◆ LL_RTC_DATE_SetYear()

__STATIC_INLINE void LL_RTC_DATE_SetYear ( RTC_TypeDef *  RTCx,
uint32_t  Year 
)

Set Year in BCD format.

Note
helper macro __LL_RTC_CONVERT_BIN2BCD is available to convert Year from binary to BCD format @rmtoll DR YT LL_RTC_DATE_SetYear
DR YU LL_RTC_DATE_SetYear
Parameters
RTCxRTC Instance
YearValue between Min_Data=0x00 and Max_Data=0x99
Return values
None

Definition at line 1321 of file stm32f4xx_ll_rtc.h.