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

Functions

__STATIC_INLINE uint32_t DDL_SPI_IsActiveFlag_RXNE (SPI_TypeDef *SPIx)
 Check if Rx buffer is not empty.
__STATIC_INLINE uint32_t DDL_SPI_IsActiveFlag_TXE (SPI_TypeDef *SPIx)
 Check if Tx buffer is empty.
__STATIC_INLINE uint32_t DDL_SPI_IsActiveFlag_CRCERR (SPI_TypeDef *SPIx)
 Get CRC error flag.
__STATIC_INLINE void DDL_SPI_ClearFlag_CRCERR (SPI_TypeDef *SPIx)
 Clear CRC error flag.
__STATIC_INLINE uint32_t DDL_SPI_IsActiveFlag_MODF (SPI_TypeDef *SPIx)
 Get mode fault error flag.
__STATIC_INLINE void DDL_SPI_ClearFlag_MODF (SPI_TypeDef *SPIx)
 Clear mode fault error flag.
__STATIC_INLINE uint32_t DDL_SPI_IsActiveFlag_OVR (SPI_TypeDef *SPIx)
 Get overrun error flag.
__STATIC_INLINE void DDL_SPI_ClearFlag_OVR (SPI_TypeDef *SPIx)
 Clear overrun error flag.
__STATIC_INLINE uint32_t DDL_SPI_IsActiveFlag_BSY (SPI_TypeDef *SPIx)
 Get busy flag.
__STATIC_INLINE uint32_t DDL_SPI_IsActiveFlag_FRE (SPI_TypeDef *SPIx)
 Get frame format error flag.
__STATIC_INLINE void DDL_SPI_ClearFlag_FRE (SPI_TypeDef *SPIx)
 Clear frame format error flag.
__STATIC_INLINE uint32_t DDL_SPI_IsActiveFlag_CDM_NE (SPI_TypeDef *SPIx)
 Check if CDM is not empty.
__STATIC_INLINE uint32_t DDL_SPI_IsActiveFlag_BSBUSY (SPI_TypeDef *SPIx)
 Get Biss busy flag.

Detailed Description

Function Documentation

◆ DDL_SPI_ClearFlag_CRCERR()

__STATIC_INLINE void DDL_SPI_ClearFlag_CRCERR ( SPI_TypeDef * SPIx)

Clear CRC error flag.

Parameters
SPIxSPI Instance
Return values
None

Definition at line 897 of file g32r4xx_ddl_spi.h.

◆ DDL_SPI_ClearFlag_FRE()

__STATIC_INLINE void DDL_SPI_ClearFlag_FRE ( SPI_TypeDef * SPIx)

Clear frame format error flag.

Note
Clearing this flag is done by reading SPIx_STS register
Parameters
SPIxSPI Instance
Return values
None

Definition at line 986 of file g32r4xx_ddl_spi.h.

◆ DDL_SPI_ClearFlag_MODF()

__STATIC_INLINE void DDL_SPI_ClearFlag_MODF ( SPI_TypeDef * SPIx)

Clear mode fault error flag.

Note
Clearing this flag is done by a read access to the SPIx_STS register followed by a write access to the SPIx_CTRL1 register
Parameters
SPIxSPI Instance
Return values
None

Definition at line 919 of file g32r4xx_ddl_spi.h.

◆ DDL_SPI_ClearFlag_OVR()

__STATIC_INLINE void DDL_SPI_ClearFlag_OVR ( SPI_TypeDef * SPIx)

Clear overrun error flag.

Note
Clearing this flag is done by a read access to the SPIx_DATA register followed by a read access to the SPIx_SR register
Parameters
SPIxSPI Instance
Return values
None

Definition at line 944 of file g32r4xx_ddl_spi.h.

◆ DDL_SPI_IsActiveFlag_BSBUSY()

__STATIC_INLINE uint32_t DDL_SPI_IsActiveFlag_BSBUSY ( SPI_TypeDef * SPIx)

Get Biss busy flag.

Parameters
SPIxSPI Instance
Return values
Stateof bit (1 or 0).

Definition at line 1008 of file g32r4xx_ddl_spi.h.

◆ DDL_SPI_IsActiveFlag_BSY()

__STATIC_INLINE uint32_t DDL_SPI_IsActiveFlag_BSY ( SPI_TypeDef * SPIx)

Get busy flag.

Note
The BSY flag is cleared under any one of the following conditions: -When the SPI is correctly disabled -When a fault is detected in Master mode (MODF bit set to 1) -In Master mode, when it finishes a data transmission and no new data is ready to be sent -In Slave mode, when the BSY flag is set to '0' for at least one SPI clock cycle between each data transfer.
Parameters
SPIxSPI Instance
Return values
Stateof bit (1 or 0).

Definition at line 965 of file g32r4xx_ddl_spi.h.

◆ DDL_SPI_IsActiveFlag_CDM_NE()

__STATIC_INLINE uint32_t DDL_SPI_IsActiveFlag_CDM_NE ( SPI_TypeDef * SPIx)

Check if CDM is not empty.

Parameters
SPIxSPI Instance
Return values
Stateof bit (1 or 0).

Definition at line 998 of file g32r4xx_ddl_spi.h.

◆ DDL_SPI_IsActiveFlag_CRCERR()

__STATIC_INLINE uint32_t DDL_SPI_IsActiveFlag_CRCERR ( SPI_TypeDef * SPIx)

Get CRC error flag.

Parameters
SPIxSPI Instance
Return values
Stateof bit (1 or 0).

Definition at line 887 of file g32r4xx_ddl_spi.h.

◆ DDL_SPI_IsActiveFlag_FRE()

__STATIC_INLINE uint32_t DDL_SPI_IsActiveFlag_FRE ( SPI_TypeDef * SPIx)

Get frame format error flag.

Parameters
SPIxSPI Instance
Return values
Stateof bit (1 or 0).

Definition at line 975 of file g32r4xx_ddl_spi.h.

◆ DDL_SPI_IsActiveFlag_MODF()

__STATIC_INLINE uint32_t DDL_SPI_IsActiveFlag_MODF ( SPI_TypeDef * SPIx)

Get mode fault error flag.

Parameters
SPIxSPI Instance
Return values
Stateof bit (1 or 0).

Definition at line 907 of file g32r4xx_ddl_spi.h.

◆ DDL_SPI_IsActiveFlag_OVR()

__STATIC_INLINE uint32_t DDL_SPI_IsActiveFlag_OVR ( SPI_TypeDef * SPIx)

Get overrun error flag.

Parameters
SPIxSPI Instance
Return values
Stateof bit (1 or 0).

Definition at line 932 of file g32r4xx_ddl_spi.h.

◆ DDL_SPI_IsActiveFlag_RXNE()

__STATIC_INLINE uint32_t DDL_SPI_IsActiveFlag_RXNE ( SPI_TypeDef * SPIx)

Check if Rx buffer is not empty.

Parameters
SPIxSPI Instance
Return values
Stateof bit (1 or 0).

Definition at line 867 of file g32r4xx_ddl_spi.h.

◆ DDL_SPI_IsActiveFlag_TXE()

__STATIC_INLINE uint32_t DDL_SPI_IsActiveFlag_TXE ( SPI_TypeDef * SPIx)

Check if Tx buffer is empty.

Parameters
SPIxSPI Instance
Return values
Stateof bit (1 or 0).

Definition at line 877 of file g32r4xx_ddl_spi.h.