STM32L4xx_HAL_Driver  1.14.0

Functions

__STATIC_INLINE void LL_SPI_EnableIT_ERR (SPI_TypeDef *SPIx)
 Enable error interrupt. More...
 
__STATIC_INLINE void LL_SPI_EnableIT_RXNE (SPI_TypeDef *SPIx)
 Enable Rx buffer not empty interrupt CR2 RXNEIE LL_SPI_EnableIT_RXNE. More...
 
__STATIC_INLINE void LL_SPI_EnableIT_TXE (SPI_TypeDef *SPIx)
 Enable Tx buffer empty interrupt CR2 TXEIE LL_SPI_EnableIT_TXE. More...
 
__STATIC_INLINE void LL_SPI_DisableIT_ERR (SPI_TypeDef *SPIx)
 Disable error interrupt. More...
 
__STATIC_INLINE void LL_SPI_DisableIT_RXNE (SPI_TypeDef *SPIx)
 Disable Rx buffer not empty interrupt CR2 RXNEIE LL_SPI_DisableIT_RXNE. More...
 
__STATIC_INLINE void LL_SPI_DisableIT_TXE (SPI_TypeDef *SPIx)
 Disable Tx buffer empty interrupt CR2 TXEIE LL_SPI_DisableIT_TXE. More...
 
__STATIC_INLINE uint32_t LL_SPI_IsEnabledIT_ERR (SPI_TypeDef *SPIx)
 Check if error interrupt is enabled CR2 ERRIE LL_SPI_IsEnabledIT_ERR. More...
 
__STATIC_INLINE uint32_t LL_SPI_IsEnabledIT_RXNE (SPI_TypeDef *SPIx)
 Check if Rx buffer not empty interrupt is enabled CR2 RXNEIE LL_SPI_IsEnabledIT_RXNE. More...
 
__STATIC_INLINE uint32_t LL_SPI_IsEnabledIT_TXE (SPI_TypeDef *SPIx)
 Check if Tx buffer empty interrupt CR2 TXEIE LL_SPI_IsEnabledIT_TXE. More...
 

Detailed Description

Function Documentation

◆ LL_SPI_DisableIT_ERR()

__STATIC_INLINE void LL_SPI_DisableIT_ERR ( SPI_TypeDef *  SPIx)

Disable error interrupt.

Note
This bit controls the generation of an interrupt when an error condition occurs (CRCERR, OVR, MODF in SPI mode, FRE at TI mode). CR2 ERRIE LL_SPI_DisableIT_ERR
Parameters
SPIxSPI Instance
Return values
None

Definition at line 1121 of file stm32l4xx_ll_spi.h.

1122 {
1123  CLEAR_BIT(SPIx->CR2, SPI_CR2_ERRIE);
1124 }
CLEAR_BIT(hrtc->Instance->CR, RTC_CR_WUTE)

◆ LL_SPI_DisableIT_RXNE()

__STATIC_INLINE void LL_SPI_DisableIT_RXNE ( SPI_TypeDef *  SPIx)

Disable Rx buffer not empty interrupt CR2 RXNEIE LL_SPI_DisableIT_RXNE.

Parameters
SPIxSPI Instance
Return values
None

Definition at line 1132 of file stm32l4xx_ll_spi.h.

1133 {
1134  CLEAR_BIT(SPIx->CR2, SPI_CR2_RXNEIE);
1135 }
CLEAR_BIT(hrtc->Instance->CR, RTC_CR_WUTE)

◆ LL_SPI_DisableIT_TXE()

__STATIC_INLINE void LL_SPI_DisableIT_TXE ( SPI_TypeDef *  SPIx)

Disable Tx buffer empty interrupt CR2 TXEIE LL_SPI_DisableIT_TXE.

Parameters
SPIxSPI Instance
Return values
None

Definition at line 1143 of file stm32l4xx_ll_spi.h.

1144 {
1145  CLEAR_BIT(SPIx->CR2, SPI_CR2_TXEIE);
1146 }
CLEAR_BIT(hrtc->Instance->CR, RTC_CR_WUTE)

◆ LL_SPI_EnableIT_ERR()

__STATIC_INLINE void LL_SPI_EnableIT_ERR ( SPI_TypeDef *  SPIx)

Enable error interrupt.

Note
This bit controls the generation of an interrupt when an error condition occurs (CRCERR, OVR, MODF in SPI mode, FRE at TI mode). CR2 ERRIE LL_SPI_EnableIT_ERR
Parameters
SPIxSPI Instance
Return values
None

Definition at line 1087 of file stm32l4xx_ll_spi.h.

1088 {
1089  SET_BIT(SPIx->CR2, SPI_CR2_ERRIE);
1090 }

◆ LL_SPI_EnableIT_RXNE()

__STATIC_INLINE void LL_SPI_EnableIT_RXNE ( SPI_TypeDef *  SPIx)

Enable Rx buffer not empty interrupt CR2 RXNEIE LL_SPI_EnableIT_RXNE.

Parameters
SPIxSPI Instance
Return values
None

Definition at line 1098 of file stm32l4xx_ll_spi.h.

1099 {
1100  SET_BIT(SPIx->CR2, SPI_CR2_RXNEIE);
1101 }

◆ LL_SPI_EnableIT_TXE()

__STATIC_INLINE void LL_SPI_EnableIT_TXE ( SPI_TypeDef *  SPIx)

Enable Tx buffer empty interrupt CR2 TXEIE LL_SPI_EnableIT_TXE.

Parameters
SPIxSPI Instance
Return values
None

Definition at line 1109 of file stm32l4xx_ll_spi.h.

1110 {
1111  SET_BIT(SPIx->CR2, SPI_CR2_TXEIE);
1112 }

◆ LL_SPI_IsEnabledIT_ERR()

__STATIC_INLINE uint32_t LL_SPI_IsEnabledIT_ERR ( SPI_TypeDef *  SPIx)

Check if error interrupt is enabled CR2 ERRIE LL_SPI_IsEnabledIT_ERR.

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

Definition at line 1154 of file stm32l4xx_ll_spi.h.

1155 {
1156  return ((READ_BIT(SPIx->CR2, SPI_CR2_ERRIE) == (SPI_CR2_ERRIE)) ? 1UL : 0UL);
1157 }

◆ LL_SPI_IsEnabledIT_RXNE()

__STATIC_INLINE uint32_t LL_SPI_IsEnabledIT_RXNE ( SPI_TypeDef *  SPIx)

Check if Rx buffer not empty interrupt is enabled CR2 RXNEIE LL_SPI_IsEnabledIT_RXNE.

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

Definition at line 1165 of file stm32l4xx_ll_spi.h.

1166 {
1167  return ((READ_BIT(SPIx->CR2, SPI_CR2_RXNEIE) == (SPI_CR2_RXNEIE)) ? 1UL : 0UL);
1168 }

◆ LL_SPI_IsEnabledIT_TXE()

__STATIC_INLINE uint32_t LL_SPI_IsEnabledIT_TXE ( SPI_TypeDef *  SPIx)

Check if Tx buffer empty interrupt CR2 TXEIE LL_SPI_IsEnabledIT_TXE.

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

Definition at line 1176 of file stm32l4xx_ll_spi.h.

1177 {
1178  return ((READ_BIT(SPIx->CR2, SPI_CR2_TXEIE) == (SPI_CR2_TXEIE)) ? 1UL : 0UL);
1179 }