STM32F439xx HAL User Manual
Functions
Extension features functions
SAI Extended Exported Functions

Extension features functions. More...

Functions

void SAI_BlockSynchroConfig (SAI_HandleTypeDef *hsai)
 Configure SAI Block synchronization mode.
uint32_t SAI_GetInputClock (SAI_HandleTypeDef *hsai)
 Get SAI Input Clock based on SAI source clock selection.

Detailed Description

Extension features functions.

 ===============================================================================
                       ##### Extension features Functions #####
 ===============================================================================
    [..]
    This subsection provides a set of functions allowing to manage the possible 
    SAI clock sources.


Function Documentation

Configure SAI Block synchronization mode.

Parameters:
hsaipointer to a SAI_HandleTypeDef structure that contains the configuration information for SAI module.
Return values:
SAIClock Input

Definition at line 114 of file stm32f4xx_hal_sai_ex.c.

References __SAI_HandleTypeDef::Init, __SAI_HandleTypeDef::Instance, SAI_SYNCEXT_DISABLE, SAI_SYNCEXT_OUTBLOCKA_ENABLE, SAI_SYNCEXT_OUTBLOCKB_ENABLE, SAI_SYNCHRONOUS_EXT_SAI2, SAI_InitTypeDef::Synchro, and SAI_InitTypeDef::SynchroExt.

Referenced by HAL_SAI_Init().

uint32_t SAI_GetInputClock ( SAI_HandleTypeDef hsai)

Get SAI Input Clock based on SAI source clock selection.

Parameters:
hsaipointer to a SAI_HandleTypeDef structure that contains the configuration information for SAI module.
Return values:
SAIClock Input

Definition at line 175 of file stm32f4xx_hal_sai_ex.c.

References __HAL_RCC_I2S_CONFIG, __HAL_RCC_SAI_BLOCKACLKSOURCE_CONFIG, __HAL_RCC_SAI_BLOCKBCLKSOURCE_CONFIG, assert_param, SAI_InitTypeDef::ClockSource, EXTERNAL_CLOCK_VALUE, HAL_RCCEx_GetPeriphCLKFreq(), HSE_VALUE, HSI_VALUE, __SAI_HandleTypeDef::Init, __SAI_HandleTypeDef::Instance, IS_SAI_CLK_SOURCE, RCC_I2SCLKSOURCE_EXT, RCC_PLLSOURCE_HSE, RCC_PLLSOURCE_HSI, SAI_CLKSOURCE_PLLI2S, and SAI_CLKSOURCE_PLLSAI.

Referenced by HAL_SAI_Init().