Ll_Rtc_Time_Inchour; Ll_Rtc_Date_Setyear; Ll_Rtc_Date_Getyear - ST STM32F2 User Manual

Description of stm32f2 hal and low layer drivers
Hide thumbs Also See for STM32F2:
Table of Contents

Advertisement

LL RTC Generic Driver
Parameters
Return values
Notes
Reference Manual to
LL API cross
reference:

LL_RTC_TIME_IncHour

Function name
Function description
Parameters
Return values
Notes
Reference Manual to
LL API cross
reference:

LL_RTC_DATE_SetYear

Function name
Function description
Parameters
Return values
Notes
Reference Manual to
LL API cross
reference:

LL_RTC_DATE_GetYear

Function name
Function description
Parameters
Return values
Notes
1074/1371
RTCx: RTC Instance
None:
Bit is write-protected. LL_RTC_DisableWriteProtection
function should be called before.
CR SUB1H LL_RTC_TIME_DecHour
__STATIC_INLINE void LL_RTC_TIME_IncHour (RTC_TypeDef
* RTCx)
Add 1 hour (summer time change)
RTCx: RTC Instance
None:
Bit is write-protected. LL_RTC_DisableWriteProtection
function should be called before.
CR ADD1H LL_RTC_TIME_IncHour
__STATIC_INLINE void LL_RTC_DATE_SetYear
(RTC_TypeDef * RTCx, uint32_t Year)
Set Year in BCD format.
RTCx: RTC Instance
Year: Value between Min_Data=0x00 and Max_Data=0x99
None:
helper macro __LL_RTC_CONVERT_BIN2BCD is available
to convert Year from binary to BCD format
DR YT LL_RTC_DATE_SetYear
DR YU LL_RTC_DATE_SetYear
__STATIC_INLINE uint32_t LL_RTC_DATE_GetYear
(RTC_TypeDef * RTCx)
Get Year in BCD format.
RTCx: RTC Instance
Value: between Min_Data=0x00 and Max_Data=0x99
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
DocID028236 Rev 2
UM1940

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the STM32F2 and is the answer not in the manual?

Questions and answers

Table of Contents

Save PDF