STM32L4xx_HAL_Driver  1.14.0
stm32l4xx_hal_dma.h File Reference

Header file of DMA HAL module. More...

Go to the source code of this file.

Data Structures

struct  __DMA_HandleTypeDef
 DMA handle Structure definition. More...
 

Typedefs

typedef struct __DMA_HandleTypeDef DMA_HandleTypeDef
 DMA handle Structure definition. More...
 

Enumerations

enum  HAL_DMA_StateTypeDef { HAL_DMA_STATE_RESET = 0x00U, HAL_DMA_STATE_READY = 0x01U, HAL_DMA_STATE_BUSY = 0x02U, HAL_DMA_STATE_TIMEOUT = 0x03U }
 HAL DMA State structures definition. More...
 
enum  HAL_DMA_LevelCompleteTypeDef { HAL_DMA_FULL_TRANSFER = 0x00U, HAL_DMA_HALF_TRANSFER = 0x01U }
 HAL DMA Error Code structure definition. More...
 
enum  HAL_DMA_CallbackIDTypeDef {
  HAL_DMA_XFER_CPLT_CB_ID = 0x00U, HAL_DMA_XFER_HALFCPLT_CB_ID = 0x01U, HAL_DMA_XFER_ERROR_CB_ID = 0x02U, HAL_DMA_XFER_ABORT_CB_ID = 0x03U,
  HAL_DMA_XFER_ALL_CB_ID = 0x04U
}
 HAL DMA Callback ID structure definition. More...
 

Functions

HAL_StatusTypeDef HAL_DMA_Init (DMA_HandleTypeDef *hdma)
 Initialize the DMA according to the specified parameters in the DMA_InitTypeDef and initialize the associated handle. More...
 
HAL_StatusTypeDef HAL_DMA_DeInit (DMA_HandleTypeDef *hdma)
 DeInitialize the DMA peripheral. More...
 
HAL_StatusTypeDef HAL_DMA_Start (DMA_HandleTypeDef *hdma, uint32_t SrcAddress, uint32_t DstAddress, uint32_t DataLength)
 Start the DMA Transfer. More...
 
HAL_StatusTypeDef HAL_DMA_Start_IT (DMA_HandleTypeDef *hdma, uint32_t SrcAddress, uint32_t DstAddress, uint32_t DataLength)
 Start the DMA Transfer with interrupt enabled. More...
 
HAL_StatusTypeDef HAL_DMA_Abort (DMA_HandleTypeDef *hdma)
 Abort the DMA Transfer. More...
 
HAL_StatusTypeDef HAL_DMA_Abort_IT (DMA_HandleTypeDef *hdma)
 Aborts the DMA Transfer in Interrupt mode. More...
 
HAL_StatusTypeDef HAL_DMA_PollForTransfer (DMA_HandleTypeDef *hdma, HAL_DMA_LevelCompleteTypeDef CompleteLevel, uint32_t Timeout)
 Polling for transfer complete. More...
 
void HAL_DMA_IRQHandler (DMA_HandleTypeDef *hdma)
 Handle DMA interrupt request. More...
 
HAL_StatusTypeDef HAL_DMA_RegisterCallback (DMA_HandleTypeDef *hdma, HAL_DMA_CallbackIDTypeDef CallbackID, void(*pCallback)(DMA_HandleTypeDef *_hdma))
 Register callbacks. More...
 
HAL_StatusTypeDef HAL_DMA_UnRegisterCallback (DMA_HandleTypeDef *hdma, HAL_DMA_CallbackIDTypeDef CallbackID)
 UnRegister callbacks. More...
 
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...
 

Variables

 C
 

Detailed Description

Header file of DMA HAL module.

Author
MCD Application Team
Attention

© Copyright (c) 2017 STMicroelectronics. All rights reserved.

This software component is licensed by ST under BSD 3-Clause license, the "License"; You may not use this file except in compliance with the License. You may obtain a copy of the License at: opensource.org/licenses/BSD-3-Clause

Definition in file stm32l4xx_hal_dma.h.

Typedef Documentation

◆ DMA_HandleTypeDef

DMA handle Structure definition.

Enumeration Type Documentation

◆ HAL_DMA_CallbackIDTypeDef

HAL DMA Callback ID structure definition.

Enumerator
HAL_DMA_XFER_CPLT_CB_ID 

Full transfer

HAL_DMA_XFER_HALFCPLT_CB_ID 

Half transfer

HAL_DMA_XFER_ERROR_CB_ID 

Error

HAL_DMA_XFER_ABORT_CB_ID 

Abort

HAL_DMA_XFER_ALL_CB_ID 

All

Definition at line 101 of file stm32l4xx_hal_dma.h.

◆ HAL_DMA_LevelCompleteTypeDef

HAL DMA Error Code structure definition.

Enumerator
HAL_DMA_FULL_TRANSFER 

Full transfer

HAL_DMA_HALF_TRANSFER 

Half Transfer

Definition at line 91 of file stm32l4xx_hal_dma.h.

92 {
93  HAL_DMA_FULL_TRANSFER = 0x00U,
94  HAL_DMA_HALF_TRANSFER = 0x01U
HAL_DMA_LevelCompleteTypeDef
HAL DMA Error Code structure definition.

◆ HAL_DMA_StateTypeDef

HAL DMA State structures definition.

Enumerator
HAL_DMA_STATE_RESET 

DMA not yet initialized or disabled

HAL_DMA_STATE_READY 

DMA initialized and ready for use

HAL_DMA_STATE_BUSY 

DMA process is ongoing

HAL_DMA_STATE_TIMEOUT 

DMA timeout state

Definition at line 80 of file stm32l4xx_hal_dma.h.

Variable Documentation

◆ C

C