STM32L486xx 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__))) |
Enable the DAC channel. | |
#define | __HAL_DAC_DISABLE(__HANDLE__, __DAC_Channel__) ((__HANDLE__)->Instance->CR &= ~(DAC_CR_EN1 << (__DAC_Channel__))) |
Disable the DAC channel. | |
#define | DAC_DHR12R1_ALIGNMENT(__ALIGNMENT__) (((uint32_t)0x00000008) + (__ALIGNMENT__)) |
Set DHR12R1 alignment. | |
#define | DAC_DHR12R2_ALIGNMENT(__ALIGNMENT__) (((uint32_t)0x00000014) + (__ALIGNMENT__)) |
Set DHR12R2 alignment. | |
#define | DAC_DHR12RD_ALIGNMENT(__ALIGNMENT__) (((uint32_t)0x00000020) + (__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__) (((__HANDLE__)->Instance->CR & (__INTERRUPT__)) == (__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 478 of file stm32l4xx_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.
__HANDLE__,: | specifies the DAC handle |
__DAC_Channel__,: | specifies the DAC channel. |
None |
Definition at line 409 of file stm32l4xx_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.
__HANDLE__,: | specifies the DAC handle |
__INTERRUPT__,: | specifies the DAC interrupt. This parameter can be any combination of the following values:
|
None |
Definition at line 448 of file stm32l4xx_hal_dac.h.
Referenced by HAL_DAC_Stop_DMA().
#define __HAL_DAC_ENABLE | ( | __HANDLE__, | |
__DAC_Channel__ | |||
) | ((__HANDLE__)->Instance->CR |= (DAC_CR_EN1 << (__DAC_Channel__))) |
Enable the DAC channel.
__HANDLE__,: | specifies the DAC handle. |
__DAC_Channel__,: | specifies the DAC channel |
None |
Definition at line 401 of file stm32l4xx_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.
__HANDLE__,: | specifies the DAC handle |
__INTERRUPT__,: | specifies the DAC interrupt. This parameter can be any combination of the following values:
|
None |
Definition at line 438 of file stm32l4xx_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.
__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 468 of file stm32l4xx_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 458 of file stm32l4xx_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 387 of file stm32l4xx_hal_dac.h.
#define DAC_DHR12R1_ALIGNMENT | ( | __ALIGNMENT__ | ) | (((uint32_t)0x00000008) + (__ALIGNMENT__)) |
Set DHR12R1 alignment.
__ALIGNMENT__,: | specifies the DAC alignment |
None |
Definition at line 416 of file stm32l4xx_hal_dac.h.
Referenced by HAL_DAC_SetValue(), and HAL_DACEx_SelfCalibrate().
#define DAC_DHR12R2_ALIGNMENT | ( | __ALIGNMENT__ | ) | (((uint32_t)0x00000014) + (__ALIGNMENT__)) |
Set DHR12R2 alignment.
__ALIGNMENT__,: | specifies the DAC alignment |
None |
Definition at line 422 of file stm32l4xx_hal_dac.h.
Referenced by HAL_DAC_SetValue(), and HAL_DACEx_SelfCalibrate().
#define DAC_DHR12RD_ALIGNMENT | ( | __ALIGNMENT__ | ) | (((uint32_t)0x00000020) + (__ALIGNMENT__)) |
Set DHR12RD alignment.
__ALIGNMENT__,: | specifies the DAC alignment |
None |
Definition at line 428 of file stm32l4xx_hal_dac.h.
Referenced by HAL_DACEx_DualSetValue().