STM32F4xx_HAL_Driver  1.8.3
+ Collaboration diagram for FLAG Management:

Functions

__STATIC_INLINE uint32_t LL_SPI_IsActiveFlag_RXNE (const SPI_TypeDef *SPIx)
 Check if Rx buffer is not empty @rmtoll SR RXNE LL_SPI_IsActiveFlag_RXNE. More...
 
__STATIC_INLINE uint32_t LL_SPI_IsActiveFlag_TXE (const SPI_TypeDef *SPIx)
 Check if Tx buffer is empty @rmtoll SR TXE LL_SPI_IsActiveFlag_TXE. More...
 
__STATIC_INLINE uint32_t LL_SPI_IsActiveFlag_CRCERR (const SPI_TypeDef *SPIx)
 Get CRC error flag @rmtoll SR CRCERR LL_SPI_IsActiveFlag_CRCERR. More...
 
__STATIC_INLINE uint32_t LL_SPI_IsActiveFlag_MODF (const SPI_TypeDef *SPIx)
 Get mode fault error flag @rmtoll SR MODF LL_SPI_IsActiveFlag_MODF. More...
 
__STATIC_INLINE uint32_t LL_SPI_IsActiveFlag_OVR (const SPI_TypeDef *SPIx)
 Get overrun error flag @rmtoll SR OVR LL_SPI_IsActiveFlag_OVR. More...
 
__STATIC_INLINE uint32_t LL_SPI_IsActiveFlag_BSY (const SPI_TypeDef *SPIx)
 Get busy flag. More...
 
__STATIC_INLINE uint32_t LL_SPI_IsActiveFlag_FRE (const SPI_TypeDef *SPIx)
 Get frame format error flag @rmtoll SR FRE LL_SPI_IsActiveFlag_FRE. More...
 
__STATIC_INLINE void LL_SPI_ClearFlag_CRCERR (SPI_TypeDef *SPIx)
 Clear CRC error flag @rmtoll SR CRCERR LL_SPI_ClearFlag_CRCERR. More...
 
__STATIC_INLINE void LL_SPI_ClearFlag_MODF (SPI_TypeDef *SPIx)
 Clear mode fault error flag. More...
 
__STATIC_INLINE void LL_SPI_ClearFlag_OVR (SPI_TypeDef *SPIx)
 Clear overrun error flag. More...
 
__STATIC_INLINE void LL_SPI_ClearFlag_FRE (SPI_TypeDef *SPIx)
 Clear frame format error flag. More...
 

Detailed Description

Function Documentation

◆ LL_SPI_ClearFlag_CRCERR()

__STATIC_INLINE void LL_SPI_ClearFlag_CRCERR ( SPI_TypeDef *  SPIx)

Clear CRC error flag @rmtoll SR CRCERR LL_SPI_ClearFlag_CRCERR.

Parameters
SPIxSPI Instance
Return values
None

Definition at line 815 of file stm32f4xx_ll_spi.h.

◆ LL_SPI_ClearFlag_FRE()

__STATIC_INLINE void LL_SPI_ClearFlag_FRE ( SPI_TypeDef *  SPIx)

Clear frame format error flag.

Note
Clearing this flag is done by reading SPIx_SR register @rmtoll SR FRE LL_SPI_ClearFlag_FRE
Parameters
SPIxSPI Instance
Return values
None

Definition at line 860 of file stm32f4xx_ll_spi.h.

◆ LL_SPI_ClearFlag_MODF()

__STATIC_INLINE void LL_SPI_ClearFlag_MODF ( SPI_TypeDef *  SPIx)

Clear mode fault error flag.

Note
Clearing this flag is done by a read access to the SPIx_SR register followed by a write access to the SPIx_CR1 register @rmtoll SR MODF LL_SPI_ClearFlag_MODF
Parameters
SPIxSPI Instance
Return values
None

Definition at line 828 of file stm32f4xx_ll_spi.h.

◆ LL_SPI_ClearFlag_OVR()

__STATIC_INLINE void LL_SPI_ClearFlag_OVR ( SPI_TypeDef *  SPIx)

Clear overrun error flag.

Note
Clearing this flag is done by a read access to the SPIx_DR register followed by a read access to the SPIx_SR register @rmtoll SR OVR LL_SPI_ClearFlag_OVR
Parameters
SPIxSPI Instance
Return values
None

Definition at line 844 of file stm32f4xx_ll_spi.h.

◆ LL_SPI_IsActiveFlag_BSY()

__STATIC_INLINE uint32_t LL_SPI_IsActiveFlag_BSY ( const 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. @rmtoll SR BSY LL_SPI_IsActiveFlag_BSY
Parameters
SPIxSPI Instance
Return values
Stateof bit (1 or 0).

Definition at line 793 of file stm32f4xx_ll_spi.h.

◆ LL_SPI_IsActiveFlag_CRCERR()

__STATIC_INLINE uint32_t LL_SPI_IsActiveFlag_CRCERR ( const SPI_TypeDef *  SPIx)

Get CRC error flag @rmtoll SR CRCERR LL_SPI_IsActiveFlag_CRCERR.

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

Definition at line 753 of file stm32f4xx_ll_spi.h.

◆ LL_SPI_IsActiveFlag_FRE()

__STATIC_INLINE uint32_t LL_SPI_IsActiveFlag_FRE ( const SPI_TypeDef *  SPIx)

Get frame format error flag @rmtoll SR FRE LL_SPI_IsActiveFlag_FRE.

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

Definition at line 804 of file stm32f4xx_ll_spi.h.

◆ LL_SPI_IsActiveFlag_MODF()

__STATIC_INLINE uint32_t LL_SPI_IsActiveFlag_MODF ( const SPI_TypeDef *  SPIx)

Get mode fault error flag @rmtoll SR MODF LL_SPI_IsActiveFlag_MODF.

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

Definition at line 764 of file stm32f4xx_ll_spi.h.

◆ LL_SPI_IsActiveFlag_OVR()

__STATIC_INLINE uint32_t LL_SPI_IsActiveFlag_OVR ( const SPI_TypeDef *  SPIx)

Get overrun error flag @rmtoll SR OVR LL_SPI_IsActiveFlag_OVR.

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

Definition at line 775 of file stm32f4xx_ll_spi.h.

◆ LL_SPI_IsActiveFlag_RXNE()

__STATIC_INLINE uint32_t LL_SPI_IsActiveFlag_RXNE ( const SPI_TypeDef *  SPIx)

Check if Rx buffer is not empty @rmtoll SR RXNE LL_SPI_IsActiveFlag_RXNE.

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

Definition at line 731 of file stm32f4xx_ll_spi.h.

◆ LL_SPI_IsActiveFlag_TXE()

__STATIC_INLINE uint32_t LL_SPI_IsActiveFlag_TXE ( const SPI_TypeDef *  SPIx)

Check if Tx buffer is empty @rmtoll SR TXE LL_SPI_IsActiveFlag_TXE.

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

Definition at line 742 of file stm32f4xx_ll_spi.h.