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
420/584
DocID023800 Rev 1
20.2.9.2 SPI_CalculateCRC
Function Name
void SPI_CalculateCRC ( SPI_TypeDef * SPIx, FunctionalState
NewState)
Function Description
Enables or disables the CRC value calculation of the transferred
bytes.
Parameters
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.
Return values
None.
Notes
None.
20.2.9.3 SPI_TransmitCRC
Function Name
void SPI_TransmitCRC ( SPI_TypeDef * SPIx)
Function Description
Transmits the SPIx CRC value.
Parameters
SPIx : where x can be 1, 2 or 3 to select the SPI peripheral.
Return values
None.
Notes
None.
20.2.9.4 SPI_GetCRC
Function Name
uint16_t SPI_GetCRC ( SPI_TypeDef * SPIx, uint8_t SPI_CRC)
Function Description
Returns the transmit or the receive CRC register value for the
specified SPI.
Parameters
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
Return values
The selected CRC register value..

Table of Contents

Related product manuals