STM32F769IDiscovery  1.00
uDANTE Audio Networking with STM32F7 DISCO board
Macros
DAC Exported Macros

Macros

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

Detailed Description

Macro Definition Documentation

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

Clear the DAC's flag.

Parameters
<strong>HANDLE</strong>specifies the DAC handle.
<strong>FLAG</strong>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 264 of file stm32f7xx_hal_dac.h.

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

Disable the DAC channel.

Parameters
<strong>HANDLE</strong>specifies the DAC handle
<strong>DAC_CHANNEL</strong>specifies the DAC channel.
Return values
None

Definition at line 218 of file stm32f7xx_hal_dac.h.

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

Disable the DAC interrupt.

Parameters
<strong>HANDLE</strong>specifies the DAC handle
<strong>INTERRUPT</strong>specifies the DAC interrupt.
Return values
None

Definition at line 234 of file stm32f7xx_hal_dac.h.

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

Enable the DAC channel.

Parameters
<strong>HANDLE</strong>specifies the DAC handle.
<strong>DAC_CHANNEL</strong>specifies the DAC channel
Return values
None

Definition at line 210 of file stm32f7xx_hal_dac.h.

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

Enable the DAC interrupt.

Parameters
<strong>HANDLE</strong>specifies the DAC handle
<strong>INTERRUPT</strong>specifies the DAC interrupt.
Return values
None

Definition at line 227 of file stm32f7xx_hal_dac.h.

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

Get the selected DAC's flag status.

Parameters
<strong>HANDLE</strong>specifies the DAC handle.
<strong>FLAG</strong>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 254 of file stm32f7xx_hal_dac.h.

#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
<strong>HANDLE</strong>DAC handle
<strong>INTERRUPT</strong>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 244 of file stm32f7xx_hal_dac.h.

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

Reset DAC handle state.

Parameters
<strong>HANDLE</strong>specifies the DAC handle.
Return values
None

Definition at line 203 of file stm32f7xx_hal_dac.h.