G32R430 Device Driver Layer v1.0.4
G32R4xx Device Driver Layer API Reference

Functions

__STATIC_INLINE void DDL_SPI_EnableCRC (SPI_TypeDef *SPIx)
 Enable CRC.
__STATIC_INLINE void DDL_SPI_DisableCRC (SPI_TypeDef *SPIx)
 Disable CRC.
__STATIC_INLINE uint32_t DDL_SPI_IsEnabledCRC (SPI_TypeDef *SPIx)
 Check if CRC is enabled.
__STATIC_INLINE void DDL_SPI_SetCRCNext (SPI_TypeDef *SPIx)
 Set CRCNext to transfer CRC on the line.
__STATIC_INLINE void DDL_SPI_SetCRCPolynomial (SPI_TypeDef *SPIx, uint32_t CRCPoly)
 Set polynomial for CRC calculation.
__STATIC_INLINE uint32_t DDL_SPI_GetCRCPolynomial (SPI_TypeDef *SPIx)
 Get polynomial for CRC calculation.
__STATIC_INLINE uint32_t DDL_SPI_GetRxCRC (SPI_TypeDef *SPIx)
 Get Rx CRC.
__STATIC_INLINE uint32_t DDL_SPI_GetTxCRC (SPI_TypeDef *SPIx)
 Get Tx CRC.

Detailed Description

Function Documentation

◆ DDL_SPI_DisableCRC()

__STATIC_INLINE void DDL_SPI_DisableCRC ( SPI_TypeDef * SPIx)

Disable CRC.

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

Definition at line 747 of file g32r4xx_ddl_spi.h.

◆ DDL_SPI_EnableCRC()

__STATIC_INLINE void DDL_SPI_EnableCRC ( SPI_TypeDef * SPIx)

Enable CRC.

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

Definition at line 736 of file g32r4xx_ddl_spi.h.

◆ DDL_SPI_GetCRCPolynomial()

__STATIC_INLINE uint32_t DDL_SPI_GetCRCPolynomial ( SPI_TypeDef * SPIx)

Get polynomial for CRC calculation.

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

Definition at line 790 of file g32r4xx_ddl_spi.h.

◆ DDL_SPI_GetRxCRC()

__STATIC_INLINE uint32_t DDL_SPI_GetRxCRC ( SPI_TypeDef * SPIx)

Get Rx CRC.

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

Definition at line 800 of file g32r4xx_ddl_spi.h.

◆ DDL_SPI_GetTxCRC()

__STATIC_INLINE uint32_t DDL_SPI_GetTxCRC ( SPI_TypeDef * SPIx)

Get Tx CRC.

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

Definition at line 810 of file g32r4xx_ddl_spi.h.

◆ DDL_SPI_IsEnabledCRC()

__STATIC_INLINE uint32_t DDL_SPI_IsEnabledCRC ( SPI_TypeDef * SPIx)

Check if CRC is enabled.

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

Definition at line 758 of file g32r4xx_ddl_spi.h.

◆ DDL_SPI_SetCRCNext()

__STATIC_INLINE void DDL_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.
Parameters
SPIxSPI Instance
Return values
None

Definition at line 769 of file g32r4xx_ddl_spi.h.

◆ DDL_SPI_SetCRCPolynomial()

__STATIC_INLINE void DDL_SPI_SetCRCPolynomial ( SPI_TypeDef * SPIx,
uint32_t CRCPoly )

Set polynomial for CRC calculation.

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

Definition at line 780 of file g32r4xx_ddl_spi.h.