HAL
__HAL_RCC_GET_SAI2_SOURCE is only used within HAL.
 
Symbols
loading...
Files
loading...

__HAL_RCC_GET_SAI2_SOURCE macro

Macro to Get SAI2 clock source selection.

Syntax

#define __HAL_RCC_GET_SAI2_SOURCE() (READ_BIT(RCC->DCKCFGR, RCC_DCKCFGR_SAI2SRC))

Return value

The clock source can be one of the following values: @arg RCC_SAI2CLKSOURCE_PLLI2S: PLLI2S_Q clock divided by PLLI2SDIVQ used as SAI2 clock. @arg RCC_SAI2CLKSOURCE_PLLSAI: PLLISAI_Q clock divided by PLLSAIDIVQ used as SAI2 clock. @arg RCC_SAI2CLKSOURCE_PLLR: PLL VCO Output divided by PLLR used as SAI2 clock. @arg RCC_SAI2CLKSOURCE_PLLSRC: HSI or HSE depending from PLL Source clock used as SAI2 clock.

Notes

This configuration is only available with STM32F446xx Devices.

References

LocationText
stm32f4xx_hal_rcc_ex.h:6272
#define __HAL_RCC_GET_SAI2_SOURCE() (READ_BIT(RCC->DCKCFGR, RCC_DCKCFGR_SAI2SRC))
stm32f4xx_hal_rcc_ex.c:520
PeriphClkInit->Sai2ClockSelection = __HAL_RCC_GET_SAI2_SOURCE();