STM32F4xx_HAL_Driver  1.8.3
+ Collaboration diagram for CRC Management:

Functions

__STATIC_INLINE void LL_SPI_EnableCRC (SPI_TypeDef *SPIx)
 Enable CRC. More...
 
__STATIC_INLINE void LL_SPI_DisableCRC (SPI_TypeDef *SPIx)
 Disable CRC. More...
 
__STATIC_INLINE uint32_t LL_SPI_IsEnabledCRC (const SPI_TypeDef *SPIx)
 Check if CRC is enabled. More...
 
__STATIC_INLINE void LL_SPI_SetCRCNext (SPI_TypeDef *SPIx)
 Set CRCNext to transfer CRC on the line. More...
 
__STATIC_INLINE void LL_SPI_SetCRCPolynomial (SPI_TypeDef *SPIx, uint32_t CRCPoly)
 Set polynomial for CRC calculation @rmtoll CRCPR CRCPOLY LL_SPI_SetCRCPolynomial. More...
 
__STATIC_INLINE uint32_t LL_SPI_GetCRCPolynomial (const SPI_TypeDef *SPIx)
 Get polynomial for CRC calculation @rmtoll CRCPR CRCPOLY LL_SPI_GetCRCPolynomial. More...
 
__STATIC_INLINE uint32_t LL_SPI_GetRxCRC (const SPI_TypeDef *SPIx)
 Get Rx CRC @rmtoll RXCRCR RXCRC LL_SPI_GetRxCRC. More...
 
__STATIC_INLINE uint32_t LL_SPI_GetTxCRC (const SPI_TypeDef *SPIx)
 Get Tx CRC @rmtoll TXCRCR TXCRC LL_SPI_GetTxCRC. More...
 

Detailed Description

Function Documentation

◆ LL_SPI_DisableCRC()

__STATIC_INLINE void LL_SPI_DisableCRC ( SPI_TypeDef *  SPIx)

Disable CRC.

Note
This bit should be written only when SPI is disabled (SPE = 0) for correct operation. @rmtoll CR1 CRCEN LL_SPI_DisableCRC
Parameters
SPIxSPI Instance
Return values
None

Definition at line 600 of file stm32f4xx_ll_spi.h.

◆ LL_SPI_EnableCRC()

__STATIC_INLINE void LL_SPI_EnableCRC ( SPI_TypeDef *  SPIx)

Enable CRC.

Note
This bit should be written only when SPI is disabled (SPE = 0) for correct operation. @rmtoll CR1 CRCEN LL_SPI_EnableCRC
Parameters
SPIxSPI Instance
Return values
None

Definition at line 588 of file stm32f4xx_ll_spi.h.

◆ LL_SPI_GetCRCPolynomial()

__STATIC_INLINE uint32_t LL_SPI_GetCRCPolynomial ( const SPI_TypeDef *  SPIx)

Get polynomial for CRC calculation @rmtoll CRCPR CRCPOLY LL_SPI_GetCRCPolynomial.

Parameters
SPIxSPI Instance
Return values
Returnedvalue is a number between Min_Data = 0x00 and Max_Data = 0xFFFF

Definition at line 647 of file stm32f4xx_ll_spi.h.

◆ LL_SPI_GetRxCRC()

__STATIC_INLINE uint32_t LL_SPI_GetRxCRC ( const SPI_TypeDef *  SPIx)

Get Rx CRC @rmtoll RXCRCR RXCRC LL_SPI_GetRxCRC.

Parameters
SPIxSPI Instance
Return values
Returnedvalue is a number between Min_Data = 0x00 and Max_Data = 0xFFFF

Definition at line 658 of file stm32f4xx_ll_spi.h.

◆ LL_SPI_GetTxCRC()

__STATIC_INLINE uint32_t LL_SPI_GetTxCRC ( const SPI_TypeDef *  SPIx)

Get Tx CRC @rmtoll TXCRCR TXCRC LL_SPI_GetTxCRC.

Parameters
SPIxSPI Instance
Return values
Returnedvalue is a number between Min_Data = 0x00 and Max_Data = 0xFFFF

Definition at line 669 of file stm32f4xx_ll_spi.h.

◆ LL_SPI_IsEnabledCRC()

__STATIC_INLINE uint32_t LL_SPI_IsEnabledCRC ( const SPI_TypeDef *  SPIx)

Check if CRC is enabled.

Note
This bit should be written only when SPI is disabled (SPE = 0) for correct operation. @rmtoll CR1 CRCEN LL_SPI_IsEnabledCRC
Parameters
SPIxSPI Instance
Return values
Stateof bit (1 or 0).

Definition at line 612 of file stm32f4xx_ll_spi.h.

◆ LL_SPI_SetCRCNext()

__STATIC_INLINE void LL_SPI_SetCRCNext ( SPI_TypeDef *  SPIx)

Set CRCNext to transfer CRC on the line.

Note
This bit has to be written as soon as the last data is written in the SPIx_DR register. @rmtoll CR1 CRCNEXT LL_SPI_SetCRCNext
Parameters
SPIxSPI Instance
Return values
None

Definition at line 624 of file stm32f4xx_ll_spi.h.

◆ LL_SPI_SetCRCPolynomial()

__STATIC_INLINE void LL_SPI_SetCRCPolynomial ( SPI_TypeDef *  SPIx,
uint32_t  CRCPoly 
)

Set polynomial for CRC calculation @rmtoll CRCPR CRCPOLY LL_SPI_SetCRCPolynomial.

Parameters
SPIxSPI Instance
CRCPolyThis parameter must be a number between Min_Data = 0x00 and Max_Data = 0xFFFF
Return values
None

Definition at line 636 of file stm32f4xx_ll_spi.h.