STM32H735xx HAL User Manual
Functions
Peripheral Control functions
DACEx Exported Functions

Extended Peripheral Control functions. More...

Functions

uint32_t HAL_DACEx_DualGetValue (DAC_HandleTypeDef *hdac)
 Return the last data output value of the selected DAC channel.
HAL_StatusTypeDef HAL_DACEx_SelfCalibrate (DAC_HandleTypeDef *hdac, DAC_ChannelConfTypeDef *sConfig, uint32_t Channel)
 Run the self calibration of one DAC channel.
HAL_StatusTypeDef HAL_DACEx_SetUserTrimming (DAC_HandleTypeDef *hdac, DAC_ChannelConfTypeDef *sConfig, uint32_t Channel, uint32_t NewTrimmingValue)
 Set the trimming mode and trimming value (user trimming mode applied).
uint32_t HAL_DACEx_GetTrimOffset (DAC_HandleTypeDef *hdac, uint32_t Channel)
 Return the DAC trimming value.

Detailed Description

Extended Peripheral Control functions.

  ==============================================================================
             ##### Peripheral Control functions #####
  ==============================================================================
    [..]  This section provides functions allowing to:
      (+) Set the specified data holding register value for DAC channel.


Function Documentation

Return the last data output value of the selected DAC channel.

Parameters:
hdacpointer to a DAC_HandleTypeDef structure that contains the configuration information for the specified DAC.
Return values:
Theselected DAC channel data output value.

Definition at line 779 of file stm32h7xx_hal_dac_ex.c.

References __DAC_HandleTypeDef::Instance.

uint32_t HAL_DACEx_GetTrimOffset ( DAC_HandleTypeDef hdac,
uint32_t  Channel 
)

Return the DAC trimming value.

Parameters:
hdacDAC handle
ChannelThe selected DAC channel. This parameter can be one of the following values:
  • DAC_CHANNEL_1: DAC Channel1 selected
  • DAC_CHANNEL_2: DAC Channel2 selected
Return values:
Trimmingvalue : range: 0->31

Definition at line 745 of file stm32h7xx_hal_dac_ex.c.

References assert_param, __DAC_HandleTypeDef::Instance, and IS_DAC_CHANNEL.

HAL_StatusTypeDef HAL_DACEx_SelfCalibrate ( DAC_HandleTypeDef hdac,
DAC_ChannelConfTypeDef sConfig,
uint32_t  Channel 
)

Run the self calibration of one DAC channel.

Parameters:
hdacpointer to a DAC_HandleTypeDef structure that contains the configuration information for the specified DAC.
sConfigDAC channel configuration structure.
ChannelThe selected DAC channel. This parameter can be one of the following values:
  • DAC_CHANNEL_1: DAC Channel1 selected
  • DAC_CHANNEL_2: DAC Channel2 selected
Return values:
UpdatesDAC_TrimmingValue. , DAC_UserTrimming set to DAC_UserTrimming
HALstatus
Note:
Calibration runs about 7 ms.

Definition at line 575 of file stm32h7xx_hal_dac_ex.c.

References assert_param, DAC_ALIGN_12B_R, DAC_CHANNEL_1, DAC_DHR12R1_ALIGNMENT, DAC_DHR12R2_ALIGNMENT, DAC_TRIMMING_USER, DAC_ChannelConfTypeDef::DAC_TrimmingValue, DAC_ChannelConfTypeDef::DAC_UserTrimming, HAL_DAC_STATE_BUSY, HAL_Delay(), __DAC_HandleTypeDef::Instance, IS_DAC_CHANNEL, and __DAC_HandleTypeDef::State.

HAL_StatusTypeDef HAL_DACEx_SetUserTrimming ( DAC_HandleTypeDef hdac,
DAC_ChannelConfTypeDef sConfig,
uint32_t  Channel,
uint32_t  NewTrimmingValue 
)

Set the trimming mode and trimming value (user trimming mode applied).

Parameters:
hdacpointer to a DAC_HandleTypeDef structure that contains the configuration information for the specified DAC.
sConfigDAC configuration structure updated with new DAC trimming value.
ChannelThe selected DAC channel. This parameter can be one of the following values:
  • DAC_CHANNEL_1: DAC Channel1 selected
  • DAC_CHANNEL_2: DAC Channel2 selected
NewTrimmingValueDAC new trimming value
Return values:
HALstatus

Definition at line 703 of file stm32h7xx_hal_dac_ex.c.

References assert_param, DAC_TRIMMING_USER, DAC_ChannelConfTypeDef::DAC_TrimmingValue, DAC_ChannelConfTypeDef::DAC_UserTrimming, __DAC_HandleTypeDef::Instance, IS_DAC_CHANNEL, and IS_DAC_NEWTRIMMINGVALUE.