STM32F439xx HAL User Manual
Functions
Initialization and de-initialization functions
I2S Exported Functions

Functions

ErrorStatus LL_I2S_DeInit (SPI_TypeDef *SPIx)
 De-initialize the SPI/I2S registers to their default reset values.
ErrorStatus LL_I2S_Init (SPI_TypeDef *SPIx, LL_I2S_InitTypeDef *I2S_InitStruct)
 Initializes the SPI/I2S registers according to the specified parameters in I2S_InitStruct.
void LL_I2S_StructInit (LL_I2S_InitTypeDef *I2S_InitStruct)
 Set each LL_I2S_InitTypeDef field to default value.
void LL_I2S_ConfigPrescaler (SPI_TypeDef *SPIx, uint32_t PrescalerLinear, uint32_t PrescalerParity)
 Set linear and parity prescaler.
ErrorStatus LL_I2S_InitFullDuplex (SPI_TypeDef *I2Sxext, LL_I2S_InitTypeDef *I2S_InitStruct)
 Configures the full duplex mode for the I2Sx peripheral using its extension I2Sxext according to the specified parameters in the I2S_InitStruct.

Function Documentation

void LL_I2S_ConfigPrescaler ( SPI_TypeDef *  SPIx,
uint32_t  PrescalerLinear,
uint32_t  PrescalerParity 
)

Set linear and parity prescaler.

Note:
To calculate value of PrescalerLinear(I2SDIV[7:0] bits) and PrescalerParity(ODD bit)
Check Audio frequency table and formulas inside Reference Manual (SPI/I2S).
Parameters:
SPIxSPI Instance
PrescalerLinearvalue Min_Data=0x02 and Max_Data=0xFF.
PrescalerParityThis parameter can be one of the following values:
Return values:
None

Definition at line 543 of file stm32f4xx_ll_spi.c.

References assert_param, IS_LL_I2S_PRESCALER_LINEAR, and IS_LL_I2S_PRESCALER_PARITY.

ErrorStatus LL_I2S_DeInit ( SPI_TypeDef *  SPIx)

De-initialize the SPI/I2S registers to their default reset values.

Parameters:
SPIxSPI Instance
Return values:
AnErrorStatus enumeration value:
  • SUCCESS: SPI registers are de-initialized
  • ERROR: SPI registers are not de-initialized

Definition at line 401 of file stm32f4xx_ll_spi.c.

References LL_SPI_DeInit().

ErrorStatus LL_I2S_Init ( SPI_TypeDef *  SPIx,
LL_I2S_InitTypeDef I2S_InitStruct 
)

Initializes the SPI/I2S registers according to the specified parameters in I2S_InitStruct.

Note:
As some bits in SPI configuration registers can only be written when the SPI is disabled (SPI_CR1_SPE bit =0), SPI IP should be in disabled state prior calling this function. Otherwise, ERROR result will be returned.
Parameters:
SPIxSPI Instance
I2S_InitStructpointer to a LL_I2S_InitTypeDef structure
Return values:
AnErrorStatus enumeration value:
  • SUCCESS: SPI registers are Initialized
  • ERROR: SPI registers are not Initialized

Definition at line 416 of file stm32f4xx_ll_spi.c.

References assert_param, LL_I2S_InitTypeDef::AudioFreq, LL_I2S_InitTypeDef::ClockPolarity, LL_I2S_InitTypeDef::DataFormat, I2S_I2SCFGR_CLEAR_MASK, IS_LL_I2S_AUDIO_FREQ, IS_LL_I2S_CPOL, IS_LL_I2S_DATAFORMAT, IS_LL_I2S_MCLK_OUTPUT, IS_LL_I2S_MODE, IS_LL_I2S_STANDARD, LL_I2S_AUDIOFREQ_DEFAULT, LL_I2S_DATAFORMAT_16B, LL_I2S_IsEnabled(), LL_I2S_MCLK_OUTPUT_ENABLE, LL_RCC_GetI2SClockFreq(), LL_RCC_I2S1_CLKSOURCE, LL_I2S_InitTypeDef::MCLKOutput, LL_I2S_InitTypeDef::Mode, and LL_I2S_InitTypeDef::Standard.

ErrorStatus LL_I2S_InitFullDuplex ( SPI_TypeDef *  I2Sxext,
LL_I2S_InitTypeDef I2S_InitStruct 
)

Configures the full duplex mode for the I2Sx peripheral using its extension I2Sxext according to the specified parameters in the I2S_InitStruct.

Note:
The structure pointed by I2S_InitStruct parameter should be the same used for the master I2S peripheral. In this case, if the master is configured as transmitter, the slave will be receiver and vice versa. Or you can force a different mode by modifying the field I2S_Mode to the value I2S_SlaveRx or I2S_SlaveTx independently of the master configuration.
Parameters:
I2SxextSPI Instance
I2S_InitStructpointer to a LL_I2S_InitTypeDef structure
Return values:
AnErrorStatus enumeration value:
  • SUCCESS: I2Sxext registers are Initialized
  • ERROR: I2Sxext registers are not Initialized

Definition at line 569 of file stm32f4xx_ll_spi.c.

References assert_param, LL_I2S_InitTypeDef::ClockPolarity, LL_I2S_InitTypeDef::DataFormat, I2S_I2SCFGR_CLEAR_MASK, I2S_I2SPR_CLEAR_MASK, IS_LL_I2S_CPOL, IS_LL_I2S_DATAFORMAT, IS_LL_I2S_MODE, IS_LL_I2S_STANDARD, LL_I2S_IsEnabled(), LL_I2S_MODE_MASTER_RX, LL_I2S_MODE_MASTER_TX, LL_I2S_MODE_SLAVE_RX, LL_I2S_MODE_SLAVE_TX, LL_I2S_InitTypeDef::Mode, and LL_I2S_InitTypeDef::Standard.

void LL_I2S_StructInit ( LL_I2S_InitTypeDef I2S_InitStruct)