STM32F103xB HAL User Manual
Defines
DMA Exported Macros
DMA

Defines

#define __HAL_DMA_RESET_HANDLE_STATE(__HANDLE__)   ((__HANDLE__)->State = HAL_DMA_STATE_RESET)
 Reset DMA handle state.
#define __HAL_DMA_ENABLE(__HANDLE__)   (SET_BIT((__HANDLE__)->Instance->CCR, DMA_CCR_EN))
 Enable the specified DMA Channel.
#define __HAL_DMA_DISABLE(__HANDLE__)   (CLEAR_BIT((__HANDLE__)->Instance->CCR, DMA_CCR_EN))
 Disable the specified DMA Channel.
#define __HAL_DMA_ENABLE_IT(__HANDLE__, __INTERRUPT__)   (SET_BIT((__HANDLE__)->Instance->CCR, (__INTERRUPT__)))
 Enables the specified DMA Channel interrupts.
#define __HAL_DMA_DISABLE_IT(__HANDLE__, __INTERRUPT__)   (CLEAR_BIT((__HANDLE__)->Instance->CCR , (__INTERRUPT__)))
 Disable the specified DMA Channel interrupts.
#define __HAL_DMA_GET_IT_SOURCE(__HANDLE__, __INTERRUPT__)   ((((__HANDLE__)->Instance->CCR & (__INTERRUPT__)) == (__INTERRUPT__)) ? SET : RESET)
 Check whether the specified DMA Channel interrupt is enabled or not.
#define __HAL_DMA_GET_COUNTER(__HANDLE__)   ((__HANDLE__)->Instance->CNDTR)
 Return the number of remaining data units in the current DMA Channel transfer.

Define Documentation

#define __HAL_DMA_DISABLE (   __HANDLE__)    (CLEAR_BIT((__HANDLE__)->Instance->CCR, DMA_CCR_EN))

Disable the specified DMA Channel.

Parameters:
__HANDLE__,:DMA handle
Return values:
None

Definition at line 303 of file stm32f1xx_hal_dma.h.

Referenced by HAL_DMA_Abort(), HAL_DMA_Abort_IT(), HAL_DMA_DeInit(), HAL_DMA_Start(), and HAL_DMA_Start_IT().

#define __HAL_DMA_DISABLE_IT (   __HANDLE__,
  __INTERRUPT__ 
)    (CLEAR_BIT((__HANDLE__)->Instance->CCR , (__INTERRUPT__)))

Disable the specified DMA Channel interrupts.

Parameters:
__HANDLE__,:DMA handle
__INTERRUPT__,:specifies the DMA interrupt sources to be enabled or disabled. This parameter can be any combination of the following values:
  • DMA_IT_TC: Transfer complete interrupt mask
  • DMA_IT_HT: Half transfer complete interrupt mask
  • DMA_IT_TE: Transfer error interrupt mask
Return values:
None

Definition at line 330 of file stm32f1xx_hal_dma.h.

Referenced by HAL_DMA_Abort(), HAL_DMA_Abort_IT(), HAL_DMA_IRQHandler(), and HAL_DMA_Start_IT().

#define __HAL_DMA_ENABLE (   __HANDLE__)    (SET_BIT((__HANDLE__)->Instance->CCR, DMA_CCR_EN))

Enable the specified DMA Channel.

Parameters:
__HANDLE__,:DMA handle
Return values:
None

Definition at line 296 of file stm32f1xx_hal_dma.h.

Referenced by HAL_DMA_Start(), and HAL_DMA_Start_IT().

#define __HAL_DMA_ENABLE_IT (   __HANDLE__,
  __INTERRUPT__ 
)    (SET_BIT((__HANDLE__)->Instance->CCR, (__INTERRUPT__)))

Enables the specified DMA Channel interrupts.

Parameters:
__HANDLE__,:DMA handle
__INTERRUPT__,:specifies the DMA interrupt sources to be enabled or disabled. This parameter can be any combination of the following values:
  • DMA_IT_TC: Transfer complete interrupt mask
  • DMA_IT_HT: Half transfer complete interrupt mask
  • DMA_IT_TE: Transfer error interrupt mask
Return values:
None

Definition at line 318 of file stm32f1xx_hal_dma.h.

Referenced by HAL_DMA_Start_IT().

#define __HAL_DMA_GET_COUNTER (   __HANDLE__)    ((__HANDLE__)->Instance->CNDTR)

Return the number of remaining data units in the current DMA Channel transfer.

Parameters:
__HANDLE__,:DMA handle
Return values:
Thenumber of remaining data units in the current DMA Channel transfer.

Definition at line 349 of file stm32f1xx_hal_dma.h.

Referenced by HAL_UART_IRQHandler(), and I2C_Slave_STOPF().

#define __HAL_DMA_GET_IT_SOURCE (   __HANDLE__,
  __INTERRUPT__ 
)    ((((__HANDLE__)->Instance->CCR & (__INTERRUPT__)) == (__INTERRUPT__)) ? SET : RESET)

Check whether the specified DMA Channel interrupt is enabled or not.

Parameters:
__HANDLE__,:DMA handle
__INTERRUPT__,:specifies the DMA interrupt source to check. This parameter can be one of the following values:
  • DMA_IT_TC: Transfer complete interrupt mask
  • DMA_IT_HT: Half transfer complete interrupt mask
  • DMA_IT_TE: Transfer error interrupt mask
Return values:
Thestate of DMA_IT (SET or RESET).

Definition at line 342 of file stm32f1xx_hal_dma.h.

#define __HAL_DMA_RESET_HANDLE_STATE (   __HANDLE__)    ((__HANDLE__)->State = HAL_DMA_STATE_RESET)

Reset DMA handle state.

Parameters:
__HANDLE__,:DMA handle
Return values:
None

Definition at line 289 of file stm32f1xx_hal_dma.h.