STM32F4xx HAL Documentation
Hardware Abstraction Layer for STM32F4 familiy
Loading...
Searching...
No Matches

Extension features functions. More...

Collaboration diagram for Extension features functions:

Functions

void SAI_BlockSynchroConfig (const SAI_HandleTypeDef *hsai)
 Configure SAI Block synchronization mode.
 
uint32_t SAI_GetInputClock (const 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

◆ SAI_BlockSynchroConfig()

void SAI_BlockSynchroConfig ( const SAI_HandleTypeDef * hsai)

#include <stm32f4xx_hal_sai_ex.h>

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 98 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().

◆ SAI_GetInputClock()

uint32_t SAI_GetInputClock ( const SAI_HandleTypeDef * hsai)

#include <stm32f4xx_hal_sai_ex.h>

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 161 of file stm32f4xx_hal_sai_ex.c.

References 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_PERIPHCLK_SAI1, RCC_PERIPHCLK_SAI2, RCC_PLLSOURCE_HSE, RCC_PLLSOURCE_HSI, SAI_CLKSOURCE_PLLI2S, and SAI_CLKSOURCE_PLLSAI.

Referenced by HAL_SAI_Init().