STM32F4xx_HAL_Driver  1.8.3
Initialization and de-initialization functions
+ Collaboration diagram for Initialization and de-initialization functions:

Functions

ErrorStatus LL_I2S_DeInit (const SPI_TypeDef *SPIx)
 De-initialize the SPI/I2S registers to their default reset values. More...
 
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. More...
 
void LL_I2S_StructInit (LL_I2S_InitTypeDef *I2S_InitStruct)
 Set each LL_I2S_InitTypeDef field to default value. More...
 
void LL_I2S_ConfigPrescaler (SPI_TypeDef *SPIx, uint32_t PrescalerLinear, uint32_t PrescalerParity)
 Set linear and parity prescaler. More...
 
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. More...
 

Detailed Description

Function Documentation

◆ LL_I2S_ConfigPrescaler()

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:
  • LL_I2S_PRESCALER_PARITY_EVEN
  • LL_I2S_PRESCALER_PARITY_ODD
Return values
None

Definition at line 528 of file stm32f4xx_ll_spi.c.

◆ LL_I2S_DeInit()

ErrorStatus LL_I2S_DeInit ( const 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 384 of file stm32f4xx_ll_spi.c.

◆ LL_I2S_Init()

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 peripheral 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 399 of file stm32f4xx_ll_spi.c.

◆ LL_I2S_InitFullDuplex()

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 554 of file stm32f4xx_ll_spi.c.

◆ LL_I2S_StructInit()

void LL_I2S_StructInit ( LL_I2S_InitTypeDef I2S_InitStruct)

Set each LL_I2S_InitTypeDef field to default value.

Parameters
I2S_InitStructpointer to a LL_I2S_InitTypeDef structure whose fields will be set to default values.
Return values
None

Definition at line 506 of file stm32f4xx_ll_spi.c.