Serial peripheral interface (SPI)
20.2.8.4 SPI_I2S_ReceiveData16
uint16_t SPI_I2S_ReceiveData16 ( SPI_TypeDef * SPIx)
Returns the most recent received data by the SPIx 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.
ï‚· The value of the received data.
20.2.9 Hardware CRC Calculation functions
20.2.9.1 SPI_CRCLengthConfig
void SPI_CRCLengthConfig ( SPI_TypeDef * SPIx, uint16_t
SPI_CRCLength)
Configures the CRC calculation length for the selected SPI.
ï‚· SPIx : where x can be 1, 2 or 3 to select the SPI peripheral.
ï‚· SPI_CRCLength : specifies the SPI CRC calculation length.
This parameter can be one of the following values:
ï€ SPI_CRCLength_8b : Set CRC Calculation to 8 bits
ï€ SPI_CRCLength_16b : Set CRC Calculation to 16 bits