DIY Logging Volt/Ampmeter
DMA Exported Macros

Macros

#define __HAL_DMA_RESET_HANDLE_STATE(__HANDLE__)   ((__HANDLE__)->State = HAL_DMA_STATE_RESET)
 Reset DMA handle state. More...
 
#define __HAL_DMA_ENABLE(__HANDLE__)   (SET_BIT((__HANDLE__)->Instance->CCR, DMA_CCR_EN))
 Enable the specified DMA Channel. More...
 
#define __HAL_DMA_DISABLE(__HANDLE__)   (CLEAR_BIT((__HANDLE__)->Instance->CCR, DMA_CCR_EN))
 Disable the specified DMA Channel. More...
 
#define __HAL_DMA_ENABLE_IT(__HANDLE__, __INTERRUPT__)   (SET_BIT((__HANDLE__)->Instance->CCR, (__INTERRUPT__)))
 Enables the specified DMA Channel interrupts. More...
 
#define __HAL_DMA_DISABLE_IT(__HANDLE__, __INTERRUPT__)   (CLEAR_BIT((__HANDLE__)->Instance->CCR , (__INTERRUPT__)))
 Disable the specified DMA Channel interrupts. More...
 
#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. More...
 
#define __HAL_DMA_GET_COUNTER(__HANDLE__)   ((__HANDLE__)->Instance->CNDTR)
 Return the number of remaining data units in the current DMA Channel transfer. More...
 

Detailed Description

Macro Definition Documentation

◆ __HAL_DMA_DISABLE

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

Disable the specified DMA Channel.

Parameters
<strong>HANDLE</strong>DMA handle
Return values
None

Definition at line 303 of file stm32f1xx_hal_dma.h.

◆ __HAL_DMA_DISABLE_IT

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

Disable the specified DMA Channel interrupts.

Parameters
<strong>HANDLE</strong>DMA handle
<strong>INTERRUPT</strong>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.

◆ __HAL_DMA_ENABLE

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

Enable the specified DMA Channel.

Parameters
<strong>HANDLE</strong>DMA handle
Return values
None

Definition at line 296 of file stm32f1xx_hal_dma.h.

◆ __HAL_DMA_ENABLE_IT

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

Enables the specified DMA Channel interrupts.

Parameters
<strong>HANDLE</strong>DMA handle
<strong>INTERRUPT</strong>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.

◆ __HAL_DMA_GET_COUNTER

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

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

Parameters
<strong>HANDLE</strong>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.

◆ __HAL_DMA_GET_IT_SOURCE

#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
<strong>HANDLE</strong>DMA handle
<strong>INTERRUPT</strong>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.

◆ __HAL_DMA_RESET_HANDLE_STATE

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

Reset DMA handle state.

Parameters
<strong>HANDLE</strong>DMA handle
Return values
None

Definition at line 289 of file stm32f1xx_hal_dma.h.