STM32F4xx_HAL_Driver  1.8.3
+ Collaboration diagram for RTC:

Functions

__STATIC_INLINE void LL_RCC_SetRTCClockSource (uint32_t Source)
 Set RTC Clock Source. More...
 
__STATIC_INLINE uint32_t LL_RCC_GetRTCClockSource (void)
 Get RTC Clock Source @rmtoll BDCR RTCSEL LL_RCC_GetRTCClockSource. More...
 
__STATIC_INLINE void LL_RCC_EnableRTC (void)
 Enable RTC @rmtoll BDCR RTCEN LL_RCC_EnableRTC. More...
 
__STATIC_INLINE void LL_RCC_DisableRTC (void)
 Disable RTC @rmtoll BDCR RTCEN LL_RCC_DisableRTC. More...
 
__STATIC_INLINE uint32_t LL_RCC_IsEnabledRTC (void)
 Check if RTC has been enabled or not @rmtoll BDCR RTCEN LL_RCC_IsEnabledRTC. More...
 
__STATIC_INLINE void LL_RCC_ForceBackupDomainReset (void)
 Force the Backup domain reset @rmtoll BDCR BDRST LL_RCC_ForceBackupDomainReset. More...
 
__STATIC_INLINE void LL_RCC_ReleaseBackupDomainReset (void)
 Release the Backup domain reset @rmtoll BDCR BDRST LL_RCC_ReleaseBackupDomainReset. More...
 
__STATIC_INLINE void LL_RCC_SetRTC_HSEPrescaler (uint32_t Prescaler)
 Set HSE Prescalers for RTC Clock @rmtoll CFGR RTCPRE LL_RCC_SetRTC_HSEPrescaler. More...
 
__STATIC_INLINE uint32_t LL_RCC_GetRTC_HSEPrescaler (void)
 Get HSE Prescalers for RTC Clock @rmtoll CFGR RTCPRE LL_RCC_GetRTC_HSEPrescaler. More...
 

Detailed Description

Function Documentation

◆ LL_RCC_DisableRTC()

__STATIC_INLINE void LL_RCC_DisableRTC ( void  )

Disable RTC @rmtoll BDCR RTCEN LL_RCC_DisableRTC.

Return values
None

Definition at line 4019 of file stm32f4xx_ll_rcc.h.

◆ LL_RCC_EnableRTC()

__STATIC_INLINE void LL_RCC_EnableRTC ( void  )

Enable RTC @rmtoll BDCR RTCEN LL_RCC_EnableRTC.

Return values
None

Definition at line 4009 of file stm32f4xx_ll_rcc.h.

◆ LL_RCC_ForceBackupDomainReset()

__STATIC_INLINE void LL_RCC_ForceBackupDomainReset ( void  )

Force the Backup domain reset @rmtoll BDCR BDRST LL_RCC_ForceBackupDomainReset.

Return values
None

Definition at line 4039 of file stm32f4xx_ll_rcc.h.

◆ LL_RCC_GetRTC_HSEPrescaler()

__STATIC_INLINE uint32_t LL_RCC_GetRTC_HSEPrescaler ( void  )

Get HSE Prescalers for RTC Clock @rmtoll CFGR RTCPRE LL_RCC_GetRTC_HSEPrescaler.

Return values
Returnedvalue can be one of the following values:
  • LL_RCC_RTC_NOCLOCK
  • LL_RCC_RTC_HSE_DIV_2
  • LL_RCC_RTC_HSE_DIV_3
  • LL_RCC_RTC_HSE_DIV_4
  • LL_RCC_RTC_HSE_DIV_5
  • LL_RCC_RTC_HSE_DIV_6
  • LL_RCC_RTC_HSE_DIV_7
  • LL_RCC_RTC_HSE_DIV_8
  • LL_RCC_RTC_HSE_DIV_9
  • LL_RCC_RTC_HSE_DIV_10
  • LL_RCC_RTC_HSE_DIV_11
  • LL_RCC_RTC_HSE_DIV_12
  • LL_RCC_RTC_HSE_DIV_13
  • LL_RCC_RTC_HSE_DIV_14
  • LL_RCC_RTC_HSE_DIV_15
  • LL_RCC_RTC_HSE_DIV_16
  • LL_RCC_RTC_HSE_DIV_17
  • LL_RCC_RTC_HSE_DIV_18
  • LL_RCC_RTC_HSE_DIV_19
  • LL_RCC_RTC_HSE_DIV_20
  • LL_RCC_RTC_HSE_DIV_21
  • LL_RCC_RTC_HSE_DIV_22
  • LL_RCC_RTC_HSE_DIV_23
  • LL_RCC_RTC_HSE_DIV_24
  • LL_RCC_RTC_HSE_DIV_25
  • LL_RCC_RTC_HSE_DIV_26
  • LL_RCC_RTC_HSE_DIV_27
  • LL_RCC_RTC_HSE_DIV_28
  • LL_RCC_RTC_HSE_DIV_29
  • LL_RCC_RTC_HSE_DIV_30
  • LL_RCC_RTC_HSE_DIV_31

Definition at line 4132 of file stm32f4xx_ll_rcc.h.

◆ LL_RCC_GetRTCClockSource()

__STATIC_INLINE uint32_t LL_RCC_GetRTCClockSource ( void  )

Get RTC Clock Source @rmtoll BDCR RTCSEL LL_RCC_GetRTCClockSource.

Return values
Returnedvalue can be one of the following values:
  • LL_RCC_RTC_CLKSOURCE_NONE
  • LL_RCC_RTC_CLKSOURCE_LSE
  • LL_RCC_RTC_CLKSOURCE_LSI
  • LL_RCC_RTC_CLKSOURCE_HSE

Definition at line 3999 of file stm32f4xx_ll_rcc.h.

◆ LL_RCC_IsEnabledRTC()

__STATIC_INLINE uint32_t LL_RCC_IsEnabledRTC ( void  )

Check if RTC has been enabled or not @rmtoll BDCR RTCEN LL_RCC_IsEnabledRTC.

Return values
Stateof bit (1 or 0).

Definition at line 4029 of file stm32f4xx_ll_rcc.h.

◆ LL_RCC_ReleaseBackupDomainReset()

__STATIC_INLINE void LL_RCC_ReleaseBackupDomainReset ( void  )

Release the Backup domain reset @rmtoll BDCR BDRST LL_RCC_ReleaseBackupDomainReset.

Return values
None

Definition at line 4049 of file stm32f4xx_ll_rcc.h.

◆ LL_RCC_SetRTC_HSEPrescaler()

__STATIC_INLINE void LL_RCC_SetRTC_HSEPrescaler ( uint32_t  Prescaler)

Set HSE Prescalers for RTC Clock @rmtoll CFGR RTCPRE LL_RCC_SetRTC_HSEPrescaler.

Parameters
PrescalerThis parameter can be one of the following values:
  • LL_RCC_RTC_NOCLOCK
  • LL_RCC_RTC_HSE_DIV_2
  • LL_RCC_RTC_HSE_DIV_3
  • LL_RCC_RTC_HSE_DIV_4
  • LL_RCC_RTC_HSE_DIV_5
  • LL_RCC_RTC_HSE_DIV_6
  • LL_RCC_RTC_HSE_DIV_7
  • LL_RCC_RTC_HSE_DIV_8
  • LL_RCC_RTC_HSE_DIV_9
  • LL_RCC_RTC_HSE_DIV_10
  • LL_RCC_RTC_HSE_DIV_11
  • LL_RCC_RTC_HSE_DIV_12
  • LL_RCC_RTC_HSE_DIV_13
  • LL_RCC_RTC_HSE_DIV_14
  • LL_RCC_RTC_HSE_DIV_15
  • LL_RCC_RTC_HSE_DIV_16
  • LL_RCC_RTC_HSE_DIV_17
  • LL_RCC_RTC_HSE_DIV_18
  • LL_RCC_RTC_HSE_DIV_19
  • LL_RCC_RTC_HSE_DIV_20
  • LL_RCC_RTC_HSE_DIV_21
  • LL_RCC_RTC_HSE_DIV_22
  • LL_RCC_RTC_HSE_DIV_23
  • LL_RCC_RTC_HSE_DIV_24
  • LL_RCC_RTC_HSE_DIV_25
  • LL_RCC_RTC_HSE_DIV_26
  • LL_RCC_RTC_HSE_DIV_27
  • LL_RCC_RTC_HSE_DIV_28
  • LL_RCC_RTC_HSE_DIV_29
  • LL_RCC_RTC_HSE_DIV_30
  • LL_RCC_RTC_HSE_DIV_31
Return values
None

Definition at line 4091 of file stm32f4xx_ll_rcc.h.

◆ LL_RCC_SetRTCClockSource()

__STATIC_INLINE void LL_RCC_SetRTCClockSource ( uint32_t  Source)

Set RTC Clock Source.

Note
Once the RTC clock source has been selected, it cannot be changed anymore unless the Backup domain is reset, or unless a failure is detected on LSE (LSECSSD is set). The BDRST bit can be used to reset them. @rmtoll BDCR RTCSEL LL_RCC_SetRTCClockSource
Parameters
SourceThis parameter can be one of the following values:
  • LL_RCC_RTC_CLKSOURCE_NONE
  • LL_RCC_RTC_CLKSOURCE_LSE
  • LL_RCC_RTC_CLKSOURCE_LSI
  • LL_RCC_RTC_CLKSOURCE_HSE
Return values
None

Definition at line 3985 of file stm32f4xx_ll_rcc.h.