TUKS MCU Introductory course / TUKS-COURSE-TIMER
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 void LL_RCC_LSE_DisableCSS (void)
 Disable 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 1607 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 1627 of file stm32l4xx_ll_rcc.h.

__STATIC_INLINE void LL_RCC_LSE_DisableCSS ( void   )

Disable Clock security system on LSE.

Note:
Clock security system can be disabled only after a LSE failure detection. In that case it MUST be disabled by software. BDCR LSECSSON LL_RCC_LSE_DisableCSS
Return values:
None

Definition at line 1679 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 1597 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 1617 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 1667 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 1657 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 1699 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 1689 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 1643 of file stm32l4xx_ll_rcc.h.