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
414/584
DocID023800 Rev 1
20.2.7.8 I2S_Cmd
Function Name
void I2S_Cmd ( SPI_TypeDef * SPIx, FunctionalState
NewState)
Function Description
Enables or disables the specified SPI peripheral (in I2S mode).
Parameters
SPIx:To : select the SPIx peripheral, where x can be: 2 or 3
in I2S mode or I2Sxext for I2S full duplex mode.
NewState : new state of the SPIx peripheral. This parameter
can be: ENABLE or DISABLE.
Return values
None.
Notes
None.
20.2.7.9 SPI_DataSizeConfig
Function Name
void SPI_DataSizeConfig ( SPI_TypeDef * SPIx, uint16_t
SPI_DataSize)
Function Description
Configures the data size for the selected SPI.
Parameters
SPIx : where x can be 1, 2 or 3 to select the SPI peripheral.
SPI_DataSize : specifies the SPI data size. For the SPIx
peripheral this parameter can be one of the following values:
SPI_DataSize_4b : Set data size to 4 bits
SPI_DataSize_5b : Set data size to 5 bits
SPI_DataSize_6b : Set data size to 6 bits
SPI_DataSize_7b : Set data size to 7 bits
SPI_DataSize_8b : Set data size to 8 bits
SPI_DataSize_9b : Set data size to 9 bits
SPI_DataSize_10b : Set data size to 10 bits
SPI_DataSize_11b : Set data size to 11 bits
SPI_DataSize_12b : Set data size to 12 bits
SPI_DataSize_13b : Set data size to 13 bits
SPI_DataSize_14b : Set data size to 14 bits
SPI_DataSize_15b : Set data size to 15 bits
SPI_DataSize_16b : Set data size to 16 bits
Return values
None.
Notes
None.

Table of Contents

Related product manuals