EasyManuals Logo

ST STM32F31xx User Manual

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
Page #418 background imageLoading...
Page #418 background image
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

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the ST STM32F31xx and is the answer not in the manual?

ST STM32F31xx Specifications

General IconGeneral
BrandST
ModelSTM32F31xx
CategoryMicrocontrollers
LanguageEnglish

Related product manuals