HAL
LL_RTC_DATE_SetYear() is only used within HAL.
 
Symbols
loading...
Files
loading...

LL_RTC_DATE_SetYear() function

Set Year in BCD format

Syntax

__STATIC_INLINE void LL_RTC_DATE_SetYear(RTC_TypeDef *RTCx,     uint32_t Year);

Arguments

RTCx

RTC Instance

Year

Value between Min_Data=0x00 and Max_Data=0x99

Return value

None

Notes

helper macro __LL_RTC_CONVERT_BIN2BCD is available to convert Year from binary to BCD format DR YU LL_RTC_DATE_SetYear

References

LocationText
stm32f4xx_ll_rtc.h:1321
__STATIC_INLINE void LL_RTC_DATE_SetYear(RTC_TypeDef *RTCx, uint32_t Year)

Data Use

Data read by LL_RTC_DATE_SetYear()
LL_RTC_DATE_SetYear()