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

LL_RTC_TIME_SetHour() function

Set Hours in BCD format

Syntax

__STATIC_INLINE void LL_RTC_TIME_SetHour(RTC_TypeDef *RTCx,     uint32_t Hours);

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

References

LocationText
stm32f4xx_ll_rtc.h:1059
__STATIC_INLINE void LL_RTC_TIME_SetHour(RTC_TypeDef *RTCx, uint32_t Hours)

Data Use

Data read by LL_RTC_TIME_SetHour()
LL_RTC_TIME_SetHour()