L4 HAL Drivers

Embed: (wiki syntax)

« Back to documentation index

LSE

Functions

__STATIC_INLINE void LL_RCC_LSE_Enable (void)
 Enable Low Speed External (LSE) crystal.
__STATIC_INLINE void LL_RCC_LSE_Disable (void)
 Disable Low Speed External (LSE) crystal.
__STATIC_INLINE void LL_RCC_LSE_EnableBypass (void)
 Enable external clock source (LSE bypass).
__STATIC_INLINE void LL_RCC_LSE_DisableBypass (void)
 Disable external clock source (LSE bypass).
__STATIC_INLINE void LL_RCC_LSE_SetDriveCapability (uint32_t LSEDrive)
 Set LSE oscillator drive capability.
__STATIC_INLINE uint32_t LL_RCC_LSE_GetDriveCapability (void)
 Get LSE oscillator drive capability BDCR LSEDRV LL_RCC_LSE_GetDriveCapability.
__STATIC_INLINE void LL_RCC_LSE_EnableCSS (void)
 Enable Clock security system on LSE.
__STATIC_INLINE uint32_t LL_RCC_LSE_IsReady (void)
 Check if LSE oscillator Ready BDCR LSERDY LL_RCC_LSE_IsReady.
__STATIC_INLINE uint32_t LL_RCC_LSE_IsCSSDetected (void)
 Check if CSS on LSE failure Detection BDCR LSECSSD LL_RCC_LSE_IsCSSDetected.

Function Documentation

__STATIC_INLINE void LL_RCC_LSE_Disable ( void   )

Disable Low Speed External (LSE) crystal.

BDCR LSEON LL_RCC_LSE_Disable

Return values:
None

Definition at line 1051 of file stm32l4xx_ll_rcc.h.

__STATIC_INLINE void LL_RCC_LSE_DisableBypass ( void   )

Disable external clock source (LSE bypass).

BDCR LSEBYP LL_RCC_LSE_DisableBypass

Return values:
None

Definition at line 1071 of file stm32l4xx_ll_rcc.h.

__STATIC_INLINE void LL_RCC_LSE_Enable ( void   )

Enable Low Speed External (LSE) crystal.

BDCR LSEON LL_RCC_LSE_Enable

Return values:
None

Definition at line 1041 of file stm32l4xx_ll_rcc.h.

__STATIC_INLINE void LL_RCC_LSE_EnableBypass ( void   )

Enable external clock source (LSE bypass).

BDCR LSEBYP LL_RCC_LSE_EnableBypass

Return values:
None

Definition at line 1061 of file stm32l4xx_ll_rcc.h.

__STATIC_INLINE void LL_RCC_LSE_EnableCSS ( void   )

Enable Clock security system on LSE.

BDCR LSECSSON LL_RCC_LSE_EnableCSS

Return values:
None

Definition at line 1111 of file stm32l4xx_ll_rcc.h.

__STATIC_INLINE uint32_t LL_RCC_LSE_GetDriveCapability ( void   )

Get LSE oscillator drive capability BDCR LSEDRV LL_RCC_LSE_GetDriveCapability.

Return values:
Returnedvalue can be one of the following values:

  • LL_RCC_LSEDRIVE_LOW
  • LL_RCC_LSEDRIVE_MEDIUMLOW
  • LL_RCC_LSEDRIVE_MEDIUMHIGH
  • LL_RCC_LSEDRIVE_HIGH

Definition at line 1101 of file stm32l4xx_ll_rcc.h.

__STATIC_INLINE uint32_t LL_RCC_LSE_IsCSSDetected ( void   )

Check if CSS on LSE failure Detection BDCR LSECSSD LL_RCC_LSE_IsCSSDetected.

Return values:
Stateof bit (1 or 0).

Definition at line 1131 of file stm32l4xx_ll_rcc.h.

__STATIC_INLINE uint32_t LL_RCC_LSE_IsReady ( void   )

Check if LSE oscillator Ready BDCR LSERDY LL_RCC_LSE_IsReady.

Return values:
Stateof bit (1 or 0).

Definition at line 1121 of file stm32l4xx_ll_rcc.h.

__STATIC_INLINE void LL_RCC_LSE_SetDriveCapability ( uint32_t  LSEDrive )

Set LSE oscillator drive capability.

Note:
The oscillator is in Xtal mode when it is not in bypass mode. BDCR LSEDRV LL_RCC_LSE_SetDriveCapability
Parameters:
LSEDriveThis parameter can be one of the following values:

  • LL_RCC_LSEDRIVE_LOW
  • LL_RCC_LSEDRIVE_MEDIUMLOW
  • LL_RCC_LSEDRIVE_MEDIUMHIGH
  • LL_RCC_LSEDRIVE_HIGH
Return values:
None

Definition at line 1087 of file stm32l4xx_ll_rcc.h.