LL_RTC_TIME_SetHour() function
Set Hours in BCD format
Arguments
RTCx
RTC Instance
Hours
Value between Min_Data=0x01 and Max_Data=0x12 or between Min_Data=0x00 and Max_Data=0x23
Return value
None
Notes
Bit is write-protected. LL_RTC_DisableWriteProtection function should be called before. It can be written in initialization mode only (LL_RTC_EnableInitMode function) helper macro __LL_RTC_CONVERT_BIN2BCD is available to convert hour from binary to BCD format TR HU LL_RTC_TIME_SetHour
Data read by LL_RTC_TIME_SetHour()
LL_RTC_TIME_SetHour()