STM32L4xx_HAL_Driver  1.14.0

Functions

__STATIC_INLINE void LL_SPI_EnableDMAReq_RX (SPI_TypeDef *SPIx)
 Enable DMA Rx CR2 RXDMAEN LL_SPI_EnableDMAReq_RX. More...
 
__STATIC_INLINE void LL_SPI_DisableDMAReq_RX (SPI_TypeDef *SPIx)
 Disable DMA Rx CR2 RXDMAEN LL_SPI_DisableDMAReq_RX. More...
 
__STATIC_INLINE uint32_t LL_SPI_IsEnabledDMAReq_RX (SPI_TypeDef *SPIx)
 Check if DMA Rx is enabled CR2 RXDMAEN LL_SPI_IsEnabledDMAReq_RX. More...
 
__STATIC_INLINE void LL_SPI_EnableDMAReq_TX (SPI_TypeDef *SPIx)
 Enable DMA Tx CR2 TXDMAEN LL_SPI_EnableDMAReq_TX. More...
 
__STATIC_INLINE void LL_SPI_DisableDMAReq_TX (SPI_TypeDef *SPIx)
 Disable DMA Tx CR2 TXDMAEN LL_SPI_DisableDMAReq_TX. More...
 
__STATIC_INLINE uint32_t LL_SPI_IsEnabledDMAReq_TX (SPI_TypeDef *SPIx)
 Check if DMA Tx is enabled CR2 TXDMAEN LL_SPI_IsEnabledDMAReq_TX. More...
 
__STATIC_INLINE void LL_SPI_SetDMAParity_RX (SPI_TypeDef *SPIx, uint32_t Parity)
 Set parity of Last DMA reception CR2 LDMARX LL_SPI_SetDMAParity_RX. More...
 
__STATIC_INLINE uint32_t LL_SPI_GetDMAParity_RX (SPI_TypeDef *SPIx)
 Get parity configuration for Last DMA reception CR2 LDMARX LL_SPI_GetDMAParity_RX. More...
 
__STATIC_INLINE void LL_SPI_SetDMAParity_TX (SPI_TypeDef *SPIx, uint32_t Parity)
 Set parity of Last DMA transmission CR2 LDMATX LL_SPI_SetDMAParity_TX. More...
 
__STATIC_INLINE uint32_t LL_SPI_GetDMAParity_TX (SPI_TypeDef *SPIx)
 Get parity configuration for Last DMA transmission CR2 LDMATX LL_SPI_GetDMAParity_TX. More...
 
__STATIC_INLINE uint32_t LL_SPI_DMA_GetRegAddr (SPI_TypeDef *SPIx)
 Get the data register address used for DMA transfer DR DR LL_SPI_DMA_GetRegAddr. More...
 

Detailed Description

Function Documentation

◆ LL_SPI_DisableDMAReq_RX()

__STATIC_INLINE void LL_SPI_DisableDMAReq_RX ( SPI_TypeDef *  SPIx)

Disable DMA Rx CR2 RXDMAEN LL_SPI_DisableDMAReq_RX.

Parameters
SPIxSPI Instance
Return values
None

Definition at line 1206 of file stm32l4xx_ll_spi.h.

1207 {
1208  CLEAR_BIT(SPIx->CR2, SPI_CR2_RXDMAEN);
1209 }
CLEAR_BIT(hrtc->Instance->CR, RTC_CR_WUTE)

◆ LL_SPI_DisableDMAReq_TX()

__STATIC_INLINE void LL_SPI_DisableDMAReq_TX ( SPI_TypeDef *  SPIx)

Disable DMA Tx CR2 TXDMAEN LL_SPI_DisableDMAReq_TX.

Parameters
SPIxSPI Instance
Return values
None

Definition at line 1239 of file stm32l4xx_ll_spi.h.

1240 {
1241  CLEAR_BIT(SPIx->CR2, SPI_CR2_TXDMAEN);
1242 }
CLEAR_BIT(hrtc->Instance->CR, RTC_CR_WUTE)

◆ LL_SPI_DMA_GetRegAddr()

__STATIC_INLINE uint32_t LL_SPI_DMA_GetRegAddr ( SPI_TypeDef *  SPIx)

Get the data register address used for DMA transfer DR DR LL_SPI_DMA_GetRegAddr.

Parameters
SPIxSPI Instance
Return values
Addressof data register

Definition at line 1315 of file stm32l4xx_ll_spi.h.

1316 {
1317  return (uint32_t) & (SPIx->DR);
1318 }

◆ LL_SPI_EnableDMAReq_RX()

__STATIC_INLINE void LL_SPI_EnableDMAReq_RX ( SPI_TypeDef *  SPIx)

Enable DMA Rx CR2 RXDMAEN LL_SPI_EnableDMAReq_RX.

Parameters
SPIxSPI Instance
Return values
None

Definition at line 1195 of file stm32l4xx_ll_spi.h.

1196 {
1197  SET_BIT(SPIx->CR2, SPI_CR2_RXDMAEN);
1198 }

◆ LL_SPI_EnableDMAReq_TX()

__STATIC_INLINE void LL_SPI_EnableDMAReq_TX ( SPI_TypeDef *  SPIx)

Enable DMA Tx CR2 TXDMAEN LL_SPI_EnableDMAReq_TX.

Parameters
SPIxSPI Instance
Return values
None

Definition at line 1228 of file stm32l4xx_ll_spi.h.

1229 {
1230  SET_BIT(SPIx->CR2, SPI_CR2_TXDMAEN);
1231 }

◆ LL_SPI_GetDMAParity_RX()

__STATIC_INLINE uint32_t LL_SPI_GetDMAParity_RX ( SPI_TypeDef *  SPIx)

Get parity configuration for Last DMA reception CR2 LDMARX LL_SPI_GetDMAParity_RX.

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

Definition at line 1277 of file stm32l4xx_ll_spi.h.

1278 {
1279  return (uint32_t)(READ_BIT(SPIx->CR2, SPI_CR2_LDMARX) >> SPI_CR2_LDMARX_Pos);
1280 }

◆ LL_SPI_GetDMAParity_TX()

__STATIC_INLINE uint32_t LL_SPI_GetDMAParity_TX ( SPI_TypeDef *  SPIx)

Get parity configuration for Last DMA transmission CR2 LDMATX LL_SPI_GetDMAParity_TX.

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

Definition at line 1304 of file stm32l4xx_ll_spi.h.

1305 {
1306  return (uint32_t)(READ_BIT(SPIx->CR2, SPI_CR2_LDMATX) >> SPI_CR2_LDMATX_Pos);
1307 }

◆ LL_SPI_IsEnabledDMAReq_RX()

__STATIC_INLINE uint32_t LL_SPI_IsEnabledDMAReq_RX ( SPI_TypeDef *  SPIx)

Check if DMA Rx is enabled CR2 RXDMAEN LL_SPI_IsEnabledDMAReq_RX.

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

Definition at line 1217 of file stm32l4xx_ll_spi.h.

1218 {
1219  return ((READ_BIT(SPIx->CR2, SPI_CR2_RXDMAEN) == (SPI_CR2_RXDMAEN)) ? 1UL : 0UL);
1220 }

◆ LL_SPI_IsEnabledDMAReq_TX()

__STATIC_INLINE uint32_t LL_SPI_IsEnabledDMAReq_TX ( SPI_TypeDef *  SPIx)

Check if DMA Tx is enabled CR2 TXDMAEN LL_SPI_IsEnabledDMAReq_TX.

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

Definition at line 1250 of file stm32l4xx_ll_spi.h.

1251 {
1252  return ((READ_BIT(SPIx->CR2, SPI_CR2_TXDMAEN) == (SPI_CR2_TXDMAEN)) ? 1UL : 0UL);
1253 }

◆ LL_SPI_SetDMAParity_RX()

__STATIC_INLINE void LL_SPI_SetDMAParity_RX ( SPI_TypeDef *  SPIx,
uint32_t  Parity 
)

Set parity of Last DMA reception CR2 LDMARX LL_SPI_SetDMAParity_RX.

Parameters
SPIxSPI Instance
ParityThis parameter can be one of the following values:
  • LL_SPI_DMA_PARITY_ODD
  • LL_SPI_DMA_PARITY_EVEN
Return values
None

Definition at line 1264 of file stm32l4xx_ll_spi.h.

1265 {
1266  MODIFY_REG(SPIx->CR2, SPI_CR2_LDMARX, (Parity << SPI_CR2_LDMARX_Pos));
1267 }
MODIFY_REG(hrtc->Instance->CR, RTC_CR_WUCKSEL,(uint32_t) WakeUpClock)

◆ LL_SPI_SetDMAParity_TX()

__STATIC_INLINE void LL_SPI_SetDMAParity_TX ( SPI_TypeDef *  SPIx,
uint32_t  Parity 
)

Set parity of Last DMA transmission CR2 LDMATX LL_SPI_SetDMAParity_TX.

Parameters
SPIxSPI Instance
ParityThis parameter can be one of the following values:
  • LL_SPI_DMA_PARITY_ODD
  • LL_SPI_DMA_PARITY_EVEN
Return values
None

Definition at line 1291 of file stm32l4xx_ll_spi.h.

1292 {
1293  MODIFY_REG(SPIx->CR2, SPI_CR2_LDMATX, (Parity << SPI_CR2_LDMATX_Pos));
1294 }
MODIFY_REG(hrtc->Instance->CR, RTC_CR_WUCKSEL,(uint32_t) WakeUpClock)