EasyManua.ls Logo

ST STM32F31xx

ST STM32F31xx
584 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Serial peripheral interface (SPI)
UM1581
412/584
DocID023800 Rev 1
SPI_InitStruct)
Function Description
Initializes the SPIx peripheral according to the specified
parameters in the SPI_InitStruct.
Parameters
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.
Return values
None.
Notes
None.
20.2.7.4 I2S_StructInit
Function Name
void I2S_StructInit ( I2S_InitTypeDef * I2S_InitStruct)
Function Description
Fills each I2S_InitStruct member with its default value.
Parameters
I2S_InitStruct : : pointer to a I2S_InitTypeDef structure
which will be initialized.
Return values
None.
Notes
None.
20.2.7.5 I2S_Init
Function Name
void I2S_Init ( SPI_TypeDef * SPIx, I2S_InitTypeDef *
I2S_InitStruct)
Function Description
Initializes the SPIx peripheral according to the specified
parameters in the I2S_InitStruct.
Parameters
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.
Return values
None.
Notes
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

Table of Contents

Related product manuals