STM32F4xx_HAL_Driver  1.8.3
SAI Init Structure definition

SAI Init Structure definition. More...

+ Collaboration diagram for SAI Init Structure definition:

Data Structures

struct  SAI_InitTypeDef
 

Detailed Description

SAI Init Structure definition.


Data Structure Documentation

◆ SAI_InitTypeDef

struct SAI_InitTypeDef

Definition at line 69 of file stm32f4xx_hal_sai.h.

Data Fields
uint32_t AudioFrequency

Specifies the audio frequency sampling. This parameter can be a value of SAI Audio Frequency

uint32_t AudioMode

Specifies the SAI Block audio Mode. This parameter can be a value of SAI Block Mode

uint32_t ClockSource

Specifies the SAI Block x Clock source. This parameter is not used for STM32F446xx devices.

uint32_t ClockStrobing

Specifies the SAI Block clock strobing edge sensitivity. This parameter can be a value of SAI Block Clock Strobing

uint32_t CompandingMode

Specifies the companding mode type. This parameter can be a value of SAI Block Companding Mode

uint32_t DataSize

Specifies the SAI Block data size. This parameter can be a value of SAI Block Data Size

uint32_t FIFOThreshold

Specifies SAI Block FIFO threshold. This parameter can be a value of SAI Block Fifo Threshold

uint32_t FirstBit

Specifies whether data transfers start from MSB or LSB bit. This parameter can be a value of SAI Block MSB LSB transmission

uint32_t Mckdiv

Specifies the master clock divider. This parameter must be a number between Min_Data = 0 and Max_Data = 15.

Note
This parameter is used only if AudioFrequency is set to SAI_AUDIO_FREQUENCY_MCKDIV otherwise it is internally computed.
uint32_t MonoStereoMode

Specifies if the mono or stereo mode is selected. This parameter can be a value of SAI Mono Stereo Mode

uint32_t NoDivider

Specifies whether master clock will be divided or not. This parameter can be a value of SAI Block NoDivider

Note
If bit NODIV in the SAI_xCR1 register is cleared, the frame length should be aligned to a number equal to a power of 2, from 8 to 256. If bit NODIV in the SAI_xCR1 register is set, the frame length can take any of the values without constraint since the input clock of the audio block should be equal to the bit clock. There is no MCLK_x clock which can be output.
uint32_t OutputDrive

Specifies when SAI Block outputs are driven. This parameter can be a value of SAI Block Output Drive

Note
this value has to be set before enabling the audio block but after the audio block configuration.
uint32_t Protocol

Specifies the SAI Block protocol. This parameter can be a value of SAI Block Protocol

uint32_t Synchro

Specifies SAI Block synchronization This parameter can be a value of SAI Block Synchronization

uint32_t SynchroExt

Specifies SAI external output synchronization, this setup is common for BlockA and BlockB This parameter can be a value of SAI External synchronisation

Note
: If both audio blocks of same SAI are used, this parameter has to be set to the same value for each audio block
uint32_t TriState

Specifies the companding mode type. This parameter can be a value of SAI TRIState Management