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
418/584
DocID023800 Rev 1
20.2.8 Data transfer functions
20.2.8.1 SPI_SendData8
Function Name
void SPI_SendData8 ( SPI_TypeDef * SPIx, uint8_t Data)
Function Description
Transmits a Data through the SPIx peripheral.
Parameters
SPIx : where x can be 1, 2 or 3 to select the SPI peripheral.
Data : Data to be transmitted.
Return values
None.
Notes
None.
20.2.8.2 SPI_I2S_SendData16
Function Name
void SPI_I2S_SendData16 ( SPI_TypeDef * SPIx, uint16_t
Data)
Function Description
Transmits a Data through the SPIx/I2Sx peripheral.
Parameters
SPIx : To select the SPIx/I2Sx peripheral, where x can be: 1,
2 or 3 in SPI mode or 2 or 3 in I2S mode or I2Sxext for I2S full
duplex mode.
Data : Data to be transmitted.
Return values
None.
Notes
None.
20.2.8.3 SPI_ReceiveData8
Function Name
uint8_t SPI_ReceiveData8 ( SPI_TypeDef * SPIx)
Function Description
Returns the most recent received data by the SPIx peripheral.
Parameters
SPIx : where x can be 1, 2 or 3 to select the SPI peripheral.
Return values
The value of the received data.
Notes
None.

Table of Contents

Related product manuals