STM32L4xx_HAL_Driver  1.14.0
Peripheral State and Errors functions

Peripheral State and Errors functions. More...

Functions

HAL_DMA_StateTypeDef HAL_DMA_GetState (DMA_HandleTypeDef *hdma)
 Return the DMA handle state. More...
 
uint32_t HAL_DMA_GetError (DMA_HandleTypeDef *hdma)
 Return the DMA error code. More...
 

Detailed Description

Peripheral State and Errors functions.

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

Function Documentation

◆ HAL_DMA_GetError()

uint32_t HAL_DMA_GetError ( DMA_HandleTypeDef hdma)

Return the DMA error code.

Parameters
hdma: pointer to a DMA_HandleTypeDef structure that contains the configuration information for the specified DMA Channel.
Return values
DMAError Code

Definition at line 1042 of file stm32l4xx_hal_dma.c.

1043 {
1044  return hdma->ErrorCode;
1045 }

◆ HAL_DMA_GetState()

HAL_DMA_StateTypeDef HAL_DMA_GetState ( DMA_HandleTypeDef hdma)

Return the DMA handle state.

Parameters
hdmapointer to a DMA_HandleTypeDef structure that contains the configuration information for the specified DMA Channel.
Return values
HALstate

Definition at line 1030 of file stm32l4xx_hal_dma.c.

1031 {
1032  /* Return DMA handle state */
1033  return hdma->State;
1034 }
__IO HAL_DMA_StateTypeDef State