STM32F439xx HAL User Manual
Defines
DAC Exported Macros
DAC

Defines

#define __HAL_DAC_RESET_HANDLE_STATE(__HANDLE__)   ((__HANDLE__)->State = HAL_DAC_STATE_RESET)
 Reset DAC handle state.
#define __HAL_DAC_ENABLE(__HANDLE__, __DAC_Channel__)   ((__HANDLE__)->Instance->CR |= (DAC_CR_EN1 << (__DAC_Channel__)))
 Enable the DAC channel.
#define __HAL_DAC_DISABLE(__HANDLE__, __DAC_Channel__)   ((__HANDLE__)->Instance->CR &= ~(DAC_CR_EN1 << (__DAC_Channel__)))
 Disable the DAC channel.
#define __HAL_DAC_ENABLE_IT(__HANDLE__, __INTERRUPT__)   (((__HANDLE__)->Instance->CR) |= (__INTERRUPT__))
 Enable the DAC interrupt.
#define __HAL_DAC_DISABLE_IT(__HANDLE__, __INTERRUPT__)   (((__HANDLE__)->Instance->CR) &= ~(__INTERRUPT__))
 Disable the DAC interrupt.
#define __HAL_DAC_GET_IT_SOURCE(__HANDLE__, __INTERRUPT__)   (((__HANDLE__)->Instance->CR & (__INTERRUPT__)) == (__INTERRUPT__))
 Checks if the specified DAC interrupt source is enabled or disabled.
#define __HAL_DAC_GET_FLAG(__HANDLE__, __FLAG__)   ((((__HANDLE__)->Instance->SR) & (__FLAG__)) == (__FLAG__))
 Get the selected DAC's flag status.
#define __HAL_DAC_CLEAR_FLAG(__HANDLE__, __FLAG__)   (((__HANDLE__)->Instance->SR) = (__FLAG__))
 Clear the DAC's flag.

Define Documentation

#define __HAL_DAC_CLEAR_FLAG (   __HANDLE__,
  __FLAG__ 
)    (((__HANDLE__)->Instance->SR) = (__FLAG__))

Clear the DAC's flag.

Parameters:
__HANDLE__specifies the DAC handle.
__FLAG__specifies the flag to clear. This parameter can be any combination of the following values:
  • DAC_FLAG_DMAUDR1: DMA underrun 1 flag
  • DAC_FLAG_DMAUDR2: DMA underrun 2 flag
Return values:
None

Definition at line 263 of file stm32f4xx_hal_dac.h.

Referenced by HAL_DAC_IRQHandler().

#define __HAL_DAC_DISABLE (   __HANDLE__,
  __DAC_Channel__ 
)    ((__HANDLE__)->Instance->CR &= ~(DAC_CR_EN1 << (__DAC_Channel__)))

Disable the DAC channel.

Parameters:
__HANDLE__specifies the DAC handle
__DAC_Channel__specifies the DAC channel.
Return values:
None

Definition at line 219 of file stm32f4xx_hal_dac.h.

Referenced by HAL_DAC_Stop(), and HAL_DAC_Stop_DMA().

#define __HAL_DAC_DISABLE_IT (   __HANDLE__,
  __INTERRUPT__ 
)    (((__HANDLE__)->Instance->CR) &= ~(__INTERRUPT__))

Disable the DAC interrupt.

Parameters:
__HANDLE__specifies the DAC handle
__INTERRUPT__specifies the DAC interrupt.
Return values:
None

Definition at line 233 of file stm32f4xx_hal_dac.h.

#define __HAL_DAC_ENABLE (   __HANDLE__,
  __DAC_Channel__ 
)    ((__HANDLE__)->Instance->CR |= (DAC_CR_EN1 << (__DAC_Channel__)))

Enable the DAC channel.

Parameters:
__HANDLE__specifies the DAC handle.
__DAC_Channel__specifies the DAC channel
Return values:
None

Definition at line 212 of file stm32f4xx_hal_dac.h.

Referenced by HAL_DAC_Start(), and HAL_DAC_Start_DMA().

#define __HAL_DAC_ENABLE_IT (   __HANDLE__,
  __INTERRUPT__ 
)    (((__HANDLE__)->Instance->CR) |= (__INTERRUPT__))

Enable the DAC interrupt.

Parameters:
__HANDLE__specifies the DAC handle
__INTERRUPT__specifies the DAC interrupt.
Return values:
None

Definition at line 226 of file stm32f4xx_hal_dac.h.

Referenced by HAL_DAC_Start_DMA().

#define __HAL_DAC_GET_FLAG (   __HANDLE__,
  __FLAG__ 
)    ((((__HANDLE__)->Instance->SR) & (__FLAG__)) == (__FLAG__))

Get the selected DAC's flag status.

Parameters:
__HANDLE__specifies the DAC handle.
__FLAG__specifies the flag to clear. This parameter can be any combination of the following values:
  • DAC_FLAG_DMAUDR1: DMA underrun 1 flag
  • DAC_FLAG_DMAUDR2: DMA underrun 2 flag
Return values:
None

Definition at line 253 of file stm32f4xx_hal_dac.h.

Referenced by HAL_DAC_IRQHandler().

#define __HAL_DAC_GET_IT_SOURCE (   __HANDLE__,
  __INTERRUPT__ 
)    (((__HANDLE__)->Instance->CR & (__INTERRUPT__)) == (__INTERRUPT__))

Checks if the specified DAC interrupt source is enabled or disabled.

Parameters:
__HANDLE__DAC handle
__INTERRUPT__DAC interrupt source to check This parameter can be any combination of the following values:
  • DAC_IT_DMAUDR1: DAC channel 1 DMA underrun interrupt
  • DAC_IT_DMAUDR2: DAC channel 2 DMA underrun interrupt
Return values:
Stateof interruption (SET or RESET)

Definition at line 243 of file stm32f4xx_hal_dac.h.

#define __HAL_DAC_RESET_HANDLE_STATE (   __HANDLE__)    ((__HANDLE__)->State = HAL_DAC_STATE_RESET)

Reset DAC handle state.

Parameters:
__HANDLE__specifies the DAC handle.
Return values:
None

Definition at line 205 of file stm32f4xx_hal_dac.h.