Serial peripheral interface (SPI)
20.2.8 Data transfer functions
20.2.8.1 SPI_SendData8
void SPI_SendData8 ( SPI_TypeDef * SPIx, uint8_t Data)
Transmits a Data through the SPIx peripheral.
ï‚· SPIx : where x can be 1, 2 or 3 to select the SPI peripheral.
ï‚· Data : Data to be transmitted.
20.2.8.2 SPI_I2S_SendData16
void SPI_I2S_SendData16 ( SPI_TypeDef * SPIx, uint16_t
Data)
Transmits a Data through the SPIx/I2Sx peripheral.
ï‚· 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.
20.2.8.3 SPI_ReceiveData8
uint8_t SPI_ReceiveData8 ( SPI_TypeDef * SPIx)
Returns the most recent received data by the SPIx peripheral.
ï‚· SPIx : where x can be 1, 2 or 3 to select the SPI peripheral.
ï‚· The value of the received data.