STM32H735xx HAL User Manual
|
Defines | |
#define | __HAL_DAC_RESET_HANDLE_STATE(__HANDLE__) |
Reset DAC handle state. | |
#define | __HAL_DAC_ENABLE(__HANDLE__, __DAC_Channel__) ((__HANDLE__)->Instance->CR |= (DAC_CR_EN1 << ((__DAC_Channel__) & 0x10UL))) |
Enable the DAC channel. | |
#define | __HAL_DAC_DISABLE(__HANDLE__, __DAC_Channel__) ((__HANDLE__)->Instance->CR &= ~(DAC_CR_EN1 << ((__DAC_Channel__) & 0x10UL))) |
Disable the DAC channel. | |
#define | DAC_DHR12R1_ALIGNMENT(__ALIGNMENT__) (0x00000008UL + (__ALIGNMENT__)) |
Set DHR12R1 alignment. | |
#define | DAC_DHR12R2_ALIGNMENT(__ALIGNMENT__) (0x00000014UL + (__ALIGNMENT__)) |
Set DHR12R2 alignment. | |
#define | DAC_DHR12RD_ALIGNMENT(__ALIGNMENT__) (0x00000020UL + (__ALIGNMENT__)) |
Set DHR12RD alignment. | |
#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__) |
Check whether the specified DAC interrupt source is enabled or not. | |
#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 __HAL_DAC_CLEAR_FLAG | ( | __HANDLE__, | |
__FLAG__ | |||
) | (((__HANDLE__)->Instance->SR) = (__FLAG__)) |
Clear the DAC's flag.
__HANDLE__ | specifies the DAC handle. |
__FLAG__ | specifies the DAC flag to clear. This parameter can be any combination of the following values:
|
None |
Definition at line 424 of file stm32h7xx_hal_dac.h.
Referenced by HAL_DAC_IRQHandler().
#define __HAL_DAC_DISABLE | ( | __HANDLE__, | |
__DAC_Channel__ | |||
) | ((__HANDLE__)->Instance->CR &= ~(DAC_CR_EN1 << ((__DAC_Channel__) & 0x10UL))) |
Disable the DAC channel.
__HANDLE__ | specifies the DAC handle |
__DAC_Channel__ | specifies the DAC channel. |
None |
Definition at line 352 of file stm32h7xx_hal_dac.h.
Referenced by HAL_DAC_Stop(), HAL_DAC_Stop_DMA(), HAL_DACEx_DualStop(), and HAL_DACEx_DualStop_DMA().
#define __HAL_DAC_DISABLE_IT | ( | __HANDLE__, | |
__INTERRUPT__ | |||
) | (((__HANDLE__)->Instance->CR) &= ~(__INTERRUPT__)) |
Disable the DAC interrupt.
__HANDLE__ | specifies the DAC handle |
__INTERRUPT__ | specifies the DAC interrupt. This parameter can be any combination of the following values:
|
None |
Definition at line 393 of file stm32h7xx_hal_dac.h.
Referenced by HAL_DAC_Stop_DMA(), and HAL_DACEx_DualStop_DMA().
#define __HAL_DAC_ENABLE | ( | __HANDLE__, | |
__DAC_Channel__ | |||
) | ((__HANDLE__)->Instance->CR |= (DAC_CR_EN1 << ((__DAC_Channel__) & 0x10UL))) |
Enable the DAC channel.
__HANDLE__ | specifies the DAC handle. |
__DAC_Channel__ | specifies the DAC channel |
None |
Definition at line 344 of file stm32h7xx_hal_dac.h.
Referenced by HAL_DAC_Start(), HAL_DAC_Start_DMA(), HAL_DACEx_DualStart(), and HAL_DACEx_DualStart_DMA().
#define __HAL_DAC_ENABLE_IT | ( | __HANDLE__, | |
__INTERRUPT__ | |||
) | (((__HANDLE__)->Instance->CR) |= (__INTERRUPT__)) |
Enable the DAC interrupt.
__HANDLE__ | specifies the DAC handle |
__INTERRUPT__ | specifies the DAC interrupt. This parameter can be any combination of the following values:
|
None |
Definition at line 383 of file stm32h7xx_hal_dac.h.
Referenced by HAL_DAC_Start_DMA(), and HAL_DACEx_DualStart_DMA().
#define __HAL_DAC_GET_FLAG | ( | __HANDLE__, | |
__FLAG__ | |||
) | ((((__HANDLE__)->Instance->SR) & (__FLAG__)) == (__FLAG__)) |
Get the selected DAC's flag status.
__HANDLE__ | specifies the DAC handle. |
__FLAG__ | specifies the DAC flag to get. This parameter can be any combination of the following values:
|
None |
Definition at line 414 of file stm32h7xx_hal_dac.h.
Referenced by HAL_DAC_IRQHandler().
#define __HAL_DAC_GET_IT_SOURCE | ( | __HANDLE__, | |
__INTERRUPT__ | |||
) |
(((__HANDLE__)->Instance->CR\ & (__INTERRUPT__)) == (__INTERRUPT__))
Check whether the specified DAC interrupt source is enabled or not.
__HANDLE__ | DAC handle |
__INTERRUPT__ | DAC interrupt source to check This parameter can be any combination of the following values:
|
State | of interruption (SET or RESET) |
Definition at line 403 of file stm32h7xx_hal_dac.h.
Referenced by HAL_DAC_IRQHandler().
#define __HAL_DAC_RESET_HANDLE_STATE | ( | __HANDLE__ | ) |
do { \ (__HANDLE__)->State = HAL_DAC_STATE_RESET; \ (__HANDLE__)->MspInitCallback = NULL; \ (__HANDLE__)->MspDeInitCallback = NULL; \ } while(0)
Reset DAC handle state.
__HANDLE__ | specifies the DAC handle. |
None |
Definition at line 330 of file stm32h7xx_hal_dac.h.
#define DAC_DHR12R1_ALIGNMENT | ( | __ALIGNMENT__ | ) | (0x00000008UL + (__ALIGNMENT__)) |
Set DHR12R1 alignment.
__ALIGNMENT__ | specifies the DAC alignment |
None |
Definition at line 359 of file stm32h7xx_hal_dac.h.
Referenced by HAL_DAC_SetValue(), and HAL_DACEx_SelfCalibrate().
#define DAC_DHR12R2_ALIGNMENT | ( | __ALIGNMENT__ | ) | (0x00000014UL + (__ALIGNMENT__)) |
Set DHR12R2 alignment.
__ALIGNMENT__ | specifies the DAC alignment |
None |
Definition at line 366 of file stm32h7xx_hal_dac.h.
Referenced by HAL_DAC_SetValue(), and HAL_DACEx_SelfCalibrate().
#define DAC_DHR12RD_ALIGNMENT | ( | __ALIGNMENT__ | ) | (0x00000020UL + (__ALIGNMENT__)) |
Set DHR12RD alignment.
__ALIGNMENT__ | specifies the DAC alignment |
None |
Definition at line 373 of file stm32h7xx_hal_dac.h.
Referenced by HAL_DACEx_DualSetValue().