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

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