STM32L486xx HAL User Manual
Data Fields
SAI_InitTypeDef Struct Reference

#include <stm32l4xx_hal_sai.h>

Data Fields

uint32_t AudioMode
uint32_t Synchro
uint32_t SynchroExt
uint32_t OutputDrive
uint32_t NoDivider
uint32_t FIFOThreshold
uint32_t AudioFrequency
uint32_t Mckdiv
uint32_t MonoStereoMode
uint32_t CompandingMode
uint32_t TriState
uint32_t Protocol
uint32_t DataSize
uint32_t FirstBit
uint32_t ClockStrobing

Detailed Description

Definition at line 99 of file stm32l4xx_hal_sai.h.


Field Documentation

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

Definition at line 137 of file stm32l4xx_hal_sai.h.

Referenced by HAL_SAI_Init().

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

Definition at line 101 of file stm32l4xx_hal_sai.h.

Referenced by HAL_SAI_Init(), SAI_InitI2S(), SAI_InitPCM(), and SAI_InterruptFlag().

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

Definition at line 175 of file stm32l4xx_hal_sai.h.

Referenced by HAL_SAI_Init(), SAI_InitI2S(), and SAI_InitPCM().

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

Definition at line 153 of file stm32l4xx_hal_sai.h.

Referenced by HAL_SAI_Init(), HAL_SAI_Receive(), HAL_SAI_Receive_IT(), HAL_SAI_Transmit(), HAL_SAI_Transmit_IT(), and SAI_FillFifo().

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

Definition at line 169 of file stm32l4xx_hal_sai.h.

Referenced by HAL_SAI_Init(), HAL_SAI_Receive(), HAL_SAI_Receive_IT(), HAL_SAI_Transmit(), HAL_SAI_Transmit_IT(), SAI_FillFifo(), SAI_InitI2S(), and SAI_InitPCM().

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

Definition at line 134 of file stm32l4xx_hal_sai.h.

Referenced by HAL_SAI_Init().

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

Definition at line 172 of file stm32l4xx_hal_sai.h.

Referenced by HAL_SAI_Init(), SAI_InitI2S(), and SAI_InitPCM().

Specifies the master clock divider, the parameter will be used if for AudioFrequency the user choice This parameter must be a number between Min_Data = 0 and Max_Data = 63 on STM32L4Rx/STM32L4Sx devices. This parameter must be a number between Min_Data = 0 and Max_Data = 15 on other devices.

Definition at line 140 of file stm32l4xx_hal_sai.h.

Referenced by HAL_SAI_Init().

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

Definition at line 150 of file stm32l4xx_hal_sai.h.

Referenced by HAL_SAI_Init().

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

Note:
For STM32L4Rx/STM32L4Sx devices : If bit NOMCK 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 NOMCK in the SAI_xCR1 register is set, the frame length can take any of the values without constraint. There is no MCLK_x clock which can be output. For other devices : 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.

Definition at line 118 of file stm32l4xx_hal_sai.h.

Referenced by HAL_SAI_Init().

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.

Definition at line 113 of file stm32l4xx_hal_sai.h.

Referenced by HAL_SAI_Init().

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

Definition at line 166 of file stm32l4xx_hal_sai.h.

Referenced by HAL_SAI_Init(), SAI_InitI2S(), SAI_InitPCM(), and SAI_InterruptFlag().

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

Definition at line 104 of file stm32l4xx_hal_sai.h.

Referenced by HAL_SAI_Init().

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

Definition at line 107 of file stm32l4xx_hal_sai.h.

Referenced by HAL_SAI_Init().

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

Definition at line 156 of file stm32l4xx_hal_sai.h.

Referenced by HAL_SAI_Init().


The documentation for this struct was generated from the following file: