Ll_Rtc_Getsynchprescaler; Ll_Rtc_Enablewriteprotection; Ll_Rtc_Disablewriteprotection; Ll_Rtc_Time_Setformat - 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

LL_RTC_GetSynchPrescaler

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

LL_RTC_EnableWriteProtection

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

LL_RTC_DisableWriteProtection

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

LL_RTC_TIME_SetFormat

Function name
Function description
Parameters
Return values
Notes
1068/1371
__STATIC_INLINE uint32_t LL_RTC_GetSynchPrescaler
(RTC_TypeDef * RTCx)
Get Synchronous prescaler factor.
RTCx: RTC Instance
Value: between Min_Data = 0 and Max_Data = 0x7FFF
PRER PREDIV_S LL_RTC_GetSynchPrescaler
__STATIC_INLINE void LL_RTC_EnableWriteProtection
(RTC_TypeDef * RTCx)
Enable the write protection for RTC registers.
RTCx: RTC Instance
None:
WPR KEY LL_RTC_EnableWriteProtection
__STATIC_INLINE void LL_RTC_DisableWriteProtection
(RTC_TypeDef * RTCx)
Disable the write protection for RTC registers.
RTCx: RTC Instance
None:
WPR KEY LL_RTC_DisableWriteProtection
__STATIC_INLINE void LL_RTC_TIME_SetFormat
(RTC_TypeDef * RTCx, uint32_t TimeFormat)
Set time format (AM/24-hour or PM notation)
RTCx: RTC Instance
TimeFormat: This parameter can be one of the following
values:
LL_RTC_TIME_FORMAT_AM_OR_24
LL_RTC_TIME_FORMAT_PM
None:
Bit is write-protected. LL_RTC_DisableWriteProtection
function should be called before.
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

Subscribe to Our Youtube Channel

Table of Contents

Save PDF