STM32L4xx_HAL_Driver  1.14.0
Peripheral State and Errors functions

Peripheral State and Errors functions. More...

Functions

HAL_DAC_StateTypeDef HAL_DAC_GetState (DAC_HandleTypeDef *hdac)
 return the DAC handle state More...
 
uint32_t HAL_DAC_GetError (DAC_HandleTypeDef *hdac)
 Return the DAC error code. More...
 

Detailed Description

Peripheral State and Errors functions.

  ==============================================================================
            ##### Peripheral State and Errors functions #####
  ==============================================================================
    [..]
    This subsection provides functions allowing to
      (+) Check the DAC state.
      (+) Check the DAC Errors.

Function Documentation

◆ HAL_DAC_GetError()

uint32_t HAL_DAC_GetError ( DAC_HandleTypeDef hdac)

Return the DAC error code.

Parameters
hdacpointer to a DAC_HandleTypeDef structure that contains the configuration information for the specified DAC.
Return values
DACError Code

Definition at line 1415 of file stm32l4xx_hal_dac.c.

1416 {
1417  return hdac->ErrorCode;
1418 }

◆ HAL_DAC_GetState()

HAL_DAC_StateTypeDef HAL_DAC_GetState ( DAC_HandleTypeDef hdac)

return the DAC handle state

Parameters
hdacpointer to a DAC_HandleTypeDef structure that contains the configuration information for the specified DAC.
Return values
HALstate

Definition at line 1402 of file stm32l4xx_hal_dac.c.

1403 {
1404  /* Return DAC handle state */
1405  return hdac->State;
1406 }