Hal Drivers for L4

Dependents:   BSP OneHopeOnePrayer FINAL_AUDIO_RECORD AudioDemo

Fork of STM32L4xx_HAL_Driver by Senior Design: Sound Monitor

Embed: (wiki syntax)

« Back to documentation index

DMA_Management

Functions

__STATIC_INLINE void LL_SPI_EnableDMAReq_RX (SPI_TypeDef *SPIx)
 Enable DMA Rx CR2 RXDMAEN LL_SPI_EnableDMAReq_RX.
__STATIC_INLINE void LL_SPI_DisableDMAReq_RX (SPI_TypeDef *SPIx)
 Disable DMA Rx CR2 RXDMAEN LL_SPI_DisableDMAReq_RX.
__STATIC_INLINE uint32_t LL_SPI_IsEnabledDMAReq_RX (SPI_TypeDef *SPIx)
 Check if DMA Rx is enabled CR2 RXDMAEN LL_SPI_IsEnabledDMAReq_RX.
__STATIC_INLINE void LL_SPI_EnableDMAReq_TX (SPI_TypeDef *SPIx)
 Enable DMA Tx CR2 TXDMAEN LL_SPI_EnableDMAReq_TX.
__STATIC_INLINE void LL_SPI_DisableDMAReq_TX (SPI_TypeDef *SPIx)
 Disable DMA Tx CR2 TXDMAEN LL_SPI_DisableDMAReq_TX.
__STATIC_INLINE uint32_t LL_SPI_IsEnabledDMAReq_TX (SPI_TypeDef *SPIx)
 Check if DMA Tx is enabled CR2 TXDMAEN LL_SPI_IsEnabledDMAReq_TX.
__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.
__STATIC_INLINE uint32_t LL_SPI_GetDMAParity_RX (SPI_TypeDef *SPIx)
 Get parity configuration for Last DMA reception CR2 LDMARX LL_SPI_GetDMAParity_RX.
__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.
__STATIC_INLINE uint32_t LL_SPI_GetDMAParity_TX (SPI_TypeDef *SPIx)
 Get parity configuration for Last DMA transmission CR2 LDMATX LL_SPI_GetDMAParity_TX.
__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.

Function Documentation

__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 1199 of file stm32l4xx_ll_spi.h.

__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 1232 of file stm32l4xx_ll_spi.h.

__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 1308 of file stm32l4xx_ll_spi.h.

__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 1188 of file stm32l4xx_ll_spi.h.

__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 1221 of file stm32l4xx_ll_spi.h.

__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 1270 of file stm32l4xx_ll_spi.h.

__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 1297 of file stm32l4xx_ll_spi.h.

__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 1210 of file stm32l4xx_ll_spi.h.

__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 1243 of file stm32l4xx_ll_spi.h.

__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 1257 of file stm32l4xx_ll_spi.h.

__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 1284 of file stm32l4xx_ll_spi.h.