Serial peripheral interface (SPI)
20.2.9.2 SPI_CalculateCRC
void SPI_CalculateCRC ( SPI_TypeDef * SPIx, FunctionalState
NewState)
Enables or disables the CRC value calculation of the transferred
bytes.
ï‚· SPIx : where x can be 1, 2 or 3 to select the SPI peripheral.
ï‚· NewState : new state of the SPIx CRC value calculation.
This parameter can be: ENABLE or DISABLE.
20.2.9.3 SPI_TransmitCRC
void SPI_TransmitCRC ( SPI_TypeDef * SPIx)
Transmits the SPIx CRC value.
ï‚· SPIx : where x can be 1, 2 or 3 to select the SPI peripheral.
20.2.9.4 SPI_GetCRC
uint16_t SPI_GetCRC ( SPI_TypeDef * SPIx, uint8_t SPI_CRC)
Returns the transmit or the receive CRC register value for the
specified SPI.
ï‚· SPIx : where x can be 1, 2 or 3 to select the SPI peripheral.
ï‚· SPI_CRC : specifies the CRC register to be read. This
parameter can be one of the following values:
ï€ SPI_CRC_Tx : Selects Tx CRC register
ï€ SPI_CRC_Rx : Selects Rx CRC register
ï‚· The selected CRC register value..