TUKS MCU Introductory course / TUKS-COURSE-THERMOMETER

Fork of TUKS-COURSE-TIMER by TUKS MCU Introductory course

Embed: (wiki syntax)

« Back to documentation index

FLAG Management

FLAG Management
[SPI Exported Functions]

Functions

__STATIC_INLINE uint32_t LL_SPI_IsActiveFlag_RXNE (SPI_TypeDef *SPIx)
 Check if Rx buffer is not empty SR RXNE LL_SPI_IsActiveFlag_RXNE.
__STATIC_INLINE uint32_t LL_SPI_IsActiveFlag_TXE (SPI_TypeDef *SPIx)
 Check if Tx buffer is empty SR TXE LL_SPI_IsActiveFlag_TXE.
__STATIC_INLINE uint32_t LL_SPI_IsActiveFlag_CRCERR (SPI_TypeDef *SPIx)
 Get CRC error flag SR CRCERR LL_SPI_IsActiveFlag_CRCERR.
__STATIC_INLINE uint32_t LL_SPI_IsActiveFlag_MODF (SPI_TypeDef *SPIx)
 Get mode fault error flag SR MODF LL_SPI_IsActiveFlag_MODF.
__STATIC_INLINE uint32_t LL_SPI_IsActiveFlag_OVR (SPI_TypeDef *SPIx)
 Get overrun error flag SR OVR LL_SPI_IsActiveFlag_OVR.
__STATIC_INLINE uint32_t LL_SPI_IsActiveFlag_BSY (SPI_TypeDef *SPIx)
 Get busy flag.
__STATIC_INLINE uint32_t LL_SPI_IsActiveFlag_FRE (SPI_TypeDef *SPIx)
 Get frame format error flag SR FRE LL_SPI_IsActiveFlag_FRE.
__STATIC_INLINE uint32_t LL_SPI_GetRxFIFOLevel (SPI_TypeDef *SPIx)
 Get FIFO reception Level SR FRLVL LL_SPI_GetRxFIFOLevel.
__STATIC_INLINE uint32_t LL_SPI_GetTxFIFOLevel (SPI_TypeDef *SPIx)
 Get FIFO Transmission Level SR FTLVL LL_SPI_GetTxFIFOLevel.
__STATIC_INLINE void LL_SPI_ClearFlag_CRCERR (SPI_TypeDef *SPIx)
 Clear CRC error flag SR CRCERR LL_SPI_ClearFlag_CRCERR.
__STATIC_INLINE void LL_SPI_ClearFlag_MODF (SPI_TypeDef *SPIx)
 Clear mode fault error flag.
__STATIC_INLINE void LL_SPI_ClearFlag_OVR (SPI_TypeDef *SPIx)
 Clear overrun error flag.
__STATIC_INLINE void LL_SPI_ClearFlag_FRE (SPI_TypeDef *SPIx)
 Clear frame format error flag.

Function Documentation

__STATIC_INLINE void LL_SPI_ClearFlag_CRCERR ( SPI_TypeDef *  SPIx )

Clear CRC error flag SR CRCERR LL_SPI_ClearFlag_CRCERR.

Parameters:
SPIxSPI Instance
Return values:
None

Definition at line 1039 of file stm32l4xx_ll_spi.h.

__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 SR FRE LL_SPI_ClearFlag_FRE
Parameters:
SPIxSPI Instance
Return values:
None

Definition at line 1085 of file stm32l4xx_ll_spi.h.

__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 SR MODF LL_SPI_ClearFlag_MODF
Parameters:
SPIxSPI Instance
Return values:
None

Definition at line 1052 of file stm32l4xx_ll_spi.h.

__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 SR OVR LL_SPI_ClearFlag_OVR
Parameters:
SPIxSPI Instance
Return values:
None

Definition at line 1069 of file stm32l4xx_ll_spi.h.

__STATIC_INLINE uint32_t LL_SPI_GetRxFIFOLevel ( SPI_TypeDef *  SPIx )

Get FIFO reception Level SR FRLVL LL_SPI_GetRxFIFOLevel.

Parameters:
SPIxSPI Instance
Return values:
Returnedvalue can be one of the following values:

  • LL_SPI_RX_FIFO_EMPTY
  • LL_SPI_RX_FIFO_QUARTER_FULL
  • LL_SPI_RX_FIFO_HALF_FULL
  • LL_SPI_RX_FIFO_FULL

Definition at line 1013 of file stm32l4xx_ll_spi.h.

__STATIC_INLINE uint32_t LL_SPI_GetTxFIFOLevel ( SPI_TypeDef *  SPIx )

Get FIFO Transmission Level SR FTLVL LL_SPI_GetTxFIFOLevel.

Parameters:
SPIxSPI Instance
Return values:
Returnedvalue can be one of the following values:

  • LL_SPI_TX_FIFO_EMPTY
  • LL_SPI_TX_FIFO_QUARTER_FULL
  • LL_SPI_TX_FIFO_HALF_FULL
  • LL_SPI_TX_FIFO_FULL

Definition at line 1028 of file stm32l4xx_ll_spi.h.

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

Definition at line 987 of file stm32l4xx_ll_spi.h.

__STATIC_INLINE uint32_t LL_SPI_IsActiveFlag_CRCERR ( SPI_TypeDef *  SPIx )

Get CRC error flag SR CRCERR LL_SPI_IsActiveFlag_CRCERR.

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

Definition at line 947 of file stm32l4xx_ll_spi.h.

__STATIC_INLINE uint32_t LL_SPI_IsActiveFlag_FRE ( SPI_TypeDef *  SPIx )

Get frame format error flag SR FRE LL_SPI_IsActiveFlag_FRE.

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

Definition at line 998 of file stm32l4xx_ll_spi.h.

__STATIC_INLINE uint32_t LL_SPI_IsActiveFlag_MODF ( SPI_TypeDef *  SPIx )

Get mode fault error flag SR MODF LL_SPI_IsActiveFlag_MODF.

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

Definition at line 958 of file stm32l4xx_ll_spi.h.

__STATIC_INLINE uint32_t LL_SPI_IsActiveFlag_OVR ( SPI_TypeDef *  SPIx )

Get overrun error flag SR OVR LL_SPI_IsActiveFlag_OVR.

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

Definition at line 969 of file stm32l4xx_ll_spi.h.

__STATIC_INLINE uint32_t LL_SPI_IsActiveFlag_RXNE ( SPI_TypeDef *  SPIx )

Check if Rx buffer is not empty SR RXNE LL_SPI_IsActiveFlag_RXNE.

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

Definition at line 925 of file stm32l4xx_ll_spi.h.

__STATIC_INLINE uint32_t LL_SPI_IsActiveFlag_TXE ( SPI_TypeDef *  SPIx )

Check if Tx buffer is empty SR TXE LL_SPI_IsActiveFlag_TXE.

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

Definition at line 936 of file stm32l4xx_ll_spi.h.