STM32L4xx_HAL_Driver  1.14.0
stm32l4xx_hal_rcc_ex.h File Reference

Header file of RCC HAL Extended module. More...

Go to the source code of this file.

Data Structures

struct  RCC_PLLSAI2InitTypeDef
 PLLSAI2 Clock structure definition. More...
 
struct  RCC_PeriphCLKInitTypeDef
 RCC extended clocks structure definition. More...
 
struct  RCC_CRSInitTypeDef
 RCC_CRS Init structure definition. More...
 
struct  RCC_CRSSynchroInfoTypeDef
 RCC_CRS Synchronization structure definition. More...
 

Functions

HAL_StatusTypeDef HAL_RCCEx_PeriphCLKConfig (RCC_PeriphCLKInitTypeDef *PeriphClkInit)
 Initialize the RCC extended peripherals clocks according to the specified parameters in the RCC_PeriphCLKInitTypeDef. More...
 
void HAL_RCCEx_GetPeriphCLKConfig (RCC_PeriphCLKInitTypeDef *PeriphClkInit)
 Get the RCC_ClkInitStruct according to the internal RCC configuration registers. More...
 
uint32_t HAL_RCCEx_GetPeriphCLKFreq (uint32_t PeriphClk)
 Return the peripheral clock frequency for peripherals with clock source from PLLSAIs. More...
 
HAL_StatusTypeDef HAL_RCCEx_EnablePLLSAI1 (RCC_PLLSAI1InitTypeDef *PLLSAI1Init)
 Enable PLLSAI1. More...
 
HAL_StatusTypeDef HAL_RCCEx_DisablePLLSAI1 (void)
 Disable PLLSAI1. More...
 
HAL_StatusTypeDef HAL_RCCEx_EnablePLLSAI2 (RCC_PLLSAI2InitTypeDef *PLLSAI2Init)
 Enable PLLSAI2. More...
 
HAL_StatusTypeDef HAL_RCCEx_DisablePLLSAI2 (void)
 Disable PLLISAI2. More...
 
void HAL_RCCEx_WakeUpStopCLKConfig (uint32_t WakeUpClk)
 Configure the oscillator clock source for wakeup from Stop and CSS backup clock. More...
 
void HAL_RCCEx_StandbyMSIRangeConfig (uint32_t MSIRange)
 Configure the MSI range after standby mode. More...
 
void HAL_RCCEx_EnableLSECSS (void)
 Enable the LSE Clock Security System. More...
 
void HAL_RCCEx_DisableLSECSS (void)
 Disable the LSE Clock Security System. More...
 
void HAL_RCCEx_EnableLSECSS_IT (void)
 Enable the LSE Clock Security System Interrupt & corresponding EXTI line. More...
 
void HAL_RCCEx_LSECSS_IRQHandler (void)
 Handle the RCC LSE Clock Security System interrupt request. More...
 
void HAL_RCCEx_LSECSS_Callback (void)
 RCCEx LSE Clock Security System interrupt callback. More...
 
void HAL_RCCEx_EnableLSCO (uint32_t LSCOSource)
 Select the Low Speed clock source to output on LSCO pin (PA2). More...
 
void HAL_RCCEx_DisableLSCO (void)
 Disable the Low Speed clock output. More...
 
void HAL_RCCEx_EnableMSIPLLMode (void)
 Enable the PLL-mode of the MSI. More...
 
void HAL_RCCEx_DisableMSIPLLMode (void)
 Disable the PLL-mode of the MSI. More...
 
void HAL_RCCEx_CRSConfig (RCC_CRSInitTypeDef *pInit)
 Start automatic synchronization for polling mode. More...
 
void HAL_RCCEx_CRSSoftwareSynchronizationGenerate (void)
 Generate the software synchronization event. More...
 
void HAL_RCCEx_CRSGetSynchronizationInfo (RCC_CRSSynchroInfoTypeDef *pSynchroInfo)
 Return synchronization info. More...
 
uint32_t HAL_RCCEx_CRSWaitSynchronization (uint32_t Timeout)
 Wait for CRS Synchronization status. More...
 
void HAL_RCCEx_CRS_IRQHandler (void)
 Handle the Clock Recovery System interrupt request. More...
 
void HAL_RCCEx_CRS_SyncOkCallback (void)
 RCCEx Clock Recovery System SYNCOK interrupt callback. More...
 
void HAL_RCCEx_CRS_SyncWarnCallback (void)
 RCCEx Clock Recovery System SYNCWARN interrupt callback. More...
 
void HAL_RCCEx_CRS_ExpectedSyncCallback (void)
 RCCEx Clock Recovery System Expected SYNC interrupt callback. More...
 
void HAL_RCCEx_CRS_ErrorCallback (uint32_t Error)
 RCCEx Clock Recovery System Error interrupt callback. More...
 

Variables

 C
 

Detailed Description

Header file of RCC HAL Extended module.

Author
MCD Application Team
Attention

© Copyright (c) 2017 STMicroelectronics. All rights reserved.

This software component is licensed by ST under BSD 3-Clause license, the "License"; You may not use this file except in compliance with the License. You may obtain a copy of the License at: opensource.org/licenses/BSD-3-Clause

Definition in file stm32l4xx_hal_rcc_ex.h.


Data Structure Documentation

◆ RCC_PLLSAI2InitTypeDef

struct RCC_PLLSAI2InitTypeDef

PLLSAI2 Clock structure definition.

Definition at line 84 of file stm32l4xx_hal_rcc_ex.h.

Data Fields
uint32_t PLLSAI2ClockOut

PLLSAIClockOut: specifies PLLSAI2 output clock to be enabled. This parameter must be a value of PLLSAI2 Clock Output

uint32_t PLLSAI2M

PLLSAI2M: specifies the division factor for PLLSAI2 input clock. This parameter must be a number between Min_Data = 1 and Max_Data = 16

PLLSAI2M: specifies the division factor for PLLSAI2 input clock. This parameter must be a number between Min_Data = 1 and Max_Data = 8

uint32_t PLLSAI2N

PLLSAI2N: specifies the multiplication factor for PLLSAI2 VCO output clock. This parameter must be a number between 8 and 86 or 127 depending on devices.

uint32_t PLLSAI2P

PLLSAI2P: specifies the division factor for SAI clock. This parameter must be a value of PLLP Clock Divider

uint32_t PLLSAI2Q

PLLSAI2Q: specifies the division factor for DSI clock. This parameter must be a value of PLLQ Clock Divider

uint32_t PLLSAI2R

PLLSAI2R: specifies the division factor for ADC clock. This parameter must be a value of PLLR Clock Divider

uint32_t PLLSAI2Source

PLLSAI2Source: PLLSAI2 entry clock source. This parameter must be a value of PLL Clock Source

◆ RCC_PeriphCLKInitTypeDef

struct RCC_PeriphCLKInitTypeDef

RCC extended clocks structure definition.

Definition at line 121 of file stm32l4xx_hal_rcc_ex.h.

Data Fields
uint32_t AdcClockSelection

Specifies ADC interface clock source. This parameter can be a value of ADC Clock Source

uint32_t Dfsdm1AudioClockSelection

Specifies DFSDM1 audio clock source. This parameter can be a value of DFSDM1 Audio Clock Source

uint32_t Dfsdm1ClockSelection

Specifies DFSDM1 clock source. This parameter can be a value of DFSDM1 Clock Source

uint32_t DsiClockSelection

Specifies DSI clock source. This parameter can be a value of DSI Clock Source

uint32_t I2c1ClockSelection

Specifies I2C1 clock source. This parameter can be a value of I2C1 Clock Source

uint32_t I2c2ClockSelection

Specifies I2C2 clock source. This parameter can be a value of I2C2 Clock Source

uint32_t I2c3ClockSelection

Specifies I2C3 clock source. This parameter can be a value of I2C3 Clock Source

uint32_t I2c4ClockSelection

Specifies I2C4 clock source. This parameter can be a value of I2C4 Clock Source

uint32_t Lptim1ClockSelection

Specifies LPTIM1 clock source. This parameter can be a value of LPTIM1 Clock Source

uint32_t Lptim2ClockSelection

Specifies LPTIM2 clock source. This parameter can be a value of LPTIM2 Clock Source

uint32_t Lpuart1ClockSelection

Specifies LPUART1 clock source. This parameter can be a value of LPUART1 Clock Source

uint32_t LtdcClockSelection

Specifies LTDC clock source. This parameter can be a value of LTDC Clock Source

uint32_t OspiClockSelection

Specifies OctoSPI clock source. This parameter can be a value of OctoSPI Clock Source

uint32_t PeriphClockSelection

The Extended Clock to be configured. This parameter can be a value of Periph Clock Selection

RCC_PLLSAI1InitTypeDef PLLSAI1

PLLSAI1 structure parameters. This parameter will be used only when PLLSAI1 is selected as Clock Source for SAI1, USB/RNG/SDMMC1 or ADC

RCC_PLLSAI2InitTypeDef PLLSAI2

PLLSAI2 structure parameters. This parameter will be used only when PLLSAI2 is selected as Clock Source for SAI2 or ADC

uint32_t RngClockSelection

Specifies RNG clock source (warning: same source for USB and SDMMC1). This parameter can be a value of RNG Clock Source

uint32_t RTCClockSelection

Specifies RTC clock source. This parameter can be a value of RTC Clock Source

uint32_t Sai1ClockSelection

Specifies SAI1 clock source. This parameter can be a value of SAI1 Clock Source

uint32_t Sai2ClockSelection

Specifies SAI2 clock source. This parameter can be a value of SAI2 Clock Source

uint32_t Sdmmc1ClockSelection

Specifies SDMMC1 clock source (warning: same source for USB and RNG). This parameter can be a value of SDMMC1 Clock Source

uint32_t Swpmi1ClockSelection

Specifies SWPMI1 clock source. This parameter can be a value of SWPMI1 Clock Source

uint32_t Uart4ClockSelection

Specifies UART4 clock source. This parameter can be a value of UART4 Clock Source

uint32_t Uart5ClockSelection

Specifies UART5 clock source. This parameter can be a value of UART5 Clock Source

uint32_t Usart1ClockSelection

Specifies USART1 clock source. This parameter can be a value of USART1 Clock Source

uint32_t Usart2ClockSelection

Specifies USART2 clock source. This parameter can be a value of USART2 Clock Source

uint32_t Usart3ClockSelection

Specifies USART3 clock source. This parameter can be a value of USART3 Clock Source

uint32_t UsbClockSelection

Specifies USB clock source (warning: same source for SDMMC1 and RNG). This parameter can be a value of USB Clock Source

◆ RCC_CRSInitTypeDef

struct RCC_CRSInitTypeDef

RCC_CRS Init structure definition.

Definition at line 277 of file stm32l4xx_hal_rcc_ex.h.

Data Fields
uint32_t ErrorLimitValue

Specifies the value to be used to evaluate the captured frequency error value. This parameter must be a number between 0 and 0xFF or a value of RCCEx CRS ErrorLimitDefault

uint32_t HSI48CalibrationValue

Specifies a user-programmable trimming value to the HSI48 oscillator. This parameter must be a number between 0 and 0x7F for STM32L412xx/L422xx, between 0 and 0x3F otherwise, or a value of RCCEx CRS HSI48CalibrationDefault

uint32_t Polarity

Specifies the input polarity for the SYNC signal source. This parameter can be a value of RCCEx CRS SynchroPolarity

uint32_t Prescaler

Specifies the division factor of the SYNC signal. This parameter can be a value of RCCEx CRS SynchroDivider

uint32_t ReloadValue

Specifies the value to be loaded in the frequency error counter with each SYNC event. It can be calculated in using macro HAL_RCC_CRS_RELOADVALUE_CALCULATE(__FTARGET, FSYNC) This parameter must be a number between 0 and 0xFFFF or a value of RCCEx CRS ReloadValueDefault .

uint32_t Source

Specifies the SYNC signal source. This parameter can be a value of RCCEx CRS SynchroSource

◆ RCC_CRSSynchroInfoTypeDef

struct RCC_CRSSynchroInfoTypeDef

RCC_CRS Synchronization structure definition.

Definition at line 304 of file stm32l4xx_hal_rcc_ex.h.

Data Fields
uint32_t FreqErrorCapture

Specifies the value loaded in the .FECAP, the frequency error counter value latched in the time of the last SYNC event. This parameter must be a number between 0 and 0xFFFF

uint32_t FreqErrorDirection

Specifies the value loaded in the .FEDIR, the counting direction of the frequency error counter latched in the time of the last SYNC event. It shows whether the actual frequency is below or above the target. This parameter must be a value of RCCEx CRS FreqErrorDirection

uint32_t HSI48CalibrationValue

Specifies value loaded in HSI48 oscillator smooth trimming. This parameter must be a number between 0 and 0x7F for STM32L412xx/L422xx, between 0 and 0x3F otherwise

uint32_t ReloadValue

Specifies the value loaded in the Counter reload value. This parameter must be a number between 0 and 0xFFFF

Variable Documentation

◆ C

C