STM32F4xx_HAL_Driver  1.8.3
Peripheral Control functions

Peripheral Control functions. More...

+ Collaboration diagram for Peripheral Control functions:

Functions

uint32_t HAL_DAC_GetValue (const DAC_HandleTypeDef *hdac, uint32_t Channel)
 Returns the last data output value of the selected DAC channel. More...
 
HAL_StatusTypeDef HAL_DAC_ConfigChannel (DAC_HandleTypeDef *hdac, const DAC_ChannelConfTypeDef *sConfig, uint32_t Channel)
 Configures the selected DAC channel. More...
 

Detailed Description

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

◆ HAL_DAC_ConfigChannel()

HAL_StatusTypeDef HAL_DAC_ConfigChannel ( DAC_HandleTypeDef hdac,
const DAC_ChannelConfTypeDef sConfig,
uint32_t  Channel 
)

Configures the selected DAC channel.

Parameters
hdacpointer to a DAC_HandleTypeDef structure that contains the configuration information for the specified DAC.
sConfigDAC 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
HALstatus

Definition at line 958 of file stm32f4xx_hal_dac.c.

◆ HAL_DAC_GetValue()

uint32_t HAL_DAC_GetValue ( const DAC_HandleTypeDef hdac,
uint32_t  Channel 
)

Returns 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.
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
Theselected DAC channel data output value.

Definition at line 923 of file stm32f4xx_hal_dac.c.