UM1940
reference:
LL_RTC_DATE_SetDay
Function name
Function description
Parameters
Return values
Notes
Reference Manual to
LL API cross
reference:
LL_RTC_DATE_GetDay
Function name
Function description
Parameters
Return values
Notes
Reference Manual to
LL API cross
reference:
LL_RTC_DATE_Config
Function name
Function description
Parameters
DR MU LL_RTC_DATE_GetMonth
__STATIC_INLINE void LL_RTC_DATE_SetDay (RTC_TypeDef
* RTCx, uint32_t Day)
Set Day in BCD format.
RTCx: RTC Instance
Day: Value between Min_Data=0x01 and Max_Data=0x31
None:
helper macro __LL_RTC_CONVERT_BIN2BCD is available
to convert Day from binary to BCD format
DR DT LL_RTC_DATE_SetDay
DR DU LL_RTC_DATE_SetDay
__STATIC_INLINE uint32_t LL_RTC_DATE_GetDay
(RTC_TypeDef * RTCx)
Get Day in BCD format.
RTCx: RTC Instance
Value: between Min_Data=0x01 and Max_Data=0x31
if shadow mode is disabled (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
DR DT LL_RTC_DATE_GetDay
DR DU LL_RTC_DATE_GetDay
__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.
RTCx: RTC Instance
WeekDay: This 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
Day: Value between Min_Data=0x01 and Max_Data=0x31
DocID028236 Rev 2
LL RTC Generic Driver
1077/1371
Need help?
Do you have a question about the STM32F2 and is the answer not in the manual?
Questions and answers