STM32L486xx 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.
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:
      (+) Configure channels.
      (+) Set the specified data holding register value for DAC channel.


Function Documentation

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

Parameters:
hdac,:pointer 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 553 of file stm32l4xx_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:
hdac: DAC handle
Channel,:The 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 503 of file stm32l4xx_hal_dac_ex.c.

References assert_param, HAL_DAC_STATE_RESET, __DAC_HandleTypeDef::Instance, IS_DAC_CHANNEL, and __DAC_HandleTypeDef::State.