STM32F4xx_HAL_Driver  1.8.3
SAI Frame Structure definition

SAI Frame Init structure definition. More...

+ Collaboration diagram for SAI Frame Structure definition:

Data Structures

struct  SAI_FrameInitTypeDef
 

Detailed Description

SAI Frame Init structure definition.

Note
For SPDIF and AC97 protocol, these parameters are not used (set by hardware).

Data Structure Documentation

◆ SAI_FrameInitTypeDef

struct SAI_FrameInitTypeDef

Definition at line 144 of file stm32f4xx_hal_sai.h.

Data Fields
uint32_t ActiveFrameLength

Specifies the Frame synchronization active level length. This Parameter specifies the length in number of bit clock (SCK + 1) of the active level of FS signal in audio frame. This parameter must be a number between Min_Data = 1 and Max_Data = 128

uint32_t FrameLength

Specifies the Frame length, the number of SCK clocks for each audio frame. This parameter must be a number between Min_Data = 8 and Max_Data = 256.

Note
If master clock MCLK_x pin is declared as an output, the frame length should be aligned to a number equal to power of 2 in order to keep in an audio frame, an integer number of MCLK pulses by bit Clock.
uint32_t FSDefinition

Specifies the Frame synchronization definition. This parameter can be a value of SAI Block FS Definition

uint32_t FSOffset

Specifies the Frame synchronization Offset. This parameter can be a value of SAI Block FS Offset

uint32_t FSPolarity

Specifies the Frame synchronization Polarity. This parameter can be a value of SAI Block FS Polarity