STM32F439xx HAL User Manual
Defines
Date helper Macros
RTC Exported Macros

Defines

#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 Documentation

#define __LL_RTC_GET_DAY (   __RTC_DATE__)    (((__RTC_DATE__) >>RTC_OFFSET_DAY) & 0x000000FFU)

Helper macro to retrieve Day in BCD format.

Parameters:
__RTC_DATE__Value returned by LL_RTC_DATE_Get
Return values:
Dayin BCD format (0x01 . . . 0x31)

Definition at line 744 of file stm32f4xx_ll_rtc.h.

#define __LL_RTC_GET_MONTH (   __RTC_DATE__)    (((__RTC_DATE__) >>RTC_OFFSET_MONTH) & 0x000000FFU)

Helper macro to retrieve Month in BCD format.

Parameters:
__RTC_DATE__Value returned by LL_RTC_DATE_Get
Return values:
Returnedvalue can be one of the following values:

Definition at line 737 of file stm32f4xx_ll_rtc.h.

#define __LL_RTC_GET_WEEKDAY (   __RTC_DATE__)    (((__RTC_DATE__) >> RTC_OFFSET_WEEKDAY) & 0x000000FFU)

Helper macro to retrieve weekday.

Parameters:
__RTC_DATE__Date returned by LL_RTC_DATE_Get function.
Return values:
Returnedvalue can be one of the following values:

Definition at line 711 of file stm32f4xx_ll_rtc.h.

#define __LL_RTC_GET_YEAR (   __RTC_DATE__)    ((__RTC_DATE__) & 0x000000FFU)

Helper macro to retrieve Year in BCD format.

Parameters:
__RTC_DATE__Value returned by LL_RTC_DATE_Get
Return values:
Yearin BCD format (0x00 . . . 0x99)

Definition at line 718 of file stm32f4xx_ll_rtc.h.