Serial peripheral interface (SPI)
Initializes the SPIx peripheral according to the specified
parameters in the SPI_InitStruct.
ï‚· SPIx : where x can be 1, 2 or 3 to select the SPI peripheral.
ï‚· SPI_InitStruct : pointer to a SPI_InitTypeDef structure that
contains the configuration information for the specified SPI
peripheral.
20.2.7.4 I2S_StructInit
void I2S_StructInit ( I2S_InitTypeDef * I2S_InitStruct)
Fills each I2S_InitStruct member with its default value.
ï‚· I2S_InitStruct : : pointer to a I2S_InitTypeDef structure
which will be initialized.
20.2.7.5 I2S_Init
void I2S_Init ( SPI_TypeDef * SPIx, I2S_InitTypeDef *
I2S_InitStruct)
Initializes the SPIx peripheral according to the specified
parameters in the I2S_InitStruct.
ï‚· SPIx:To : select the SPIx peripheral, where x can be: 2 or 3
in I2S mode.
ï‚· I2S_InitStruct : pointer to an I2S_InitTypeDef structure that
contains the configuration information for the specified SPI
peripheral configured in I2S mode.
ï‚· The function calculates the optimal prescaler needed to
obtain the most accurate audio frequency (depending on the
I2S clock source, the PLL values and the product