STM32F4xx HAL Documentation
Hardware Abstraction Layer for STM32F4 familiy
|
Initialization and de-initialization functions. More...
Functions | |
HAL_StatusTypeDef | HAL_DMA_Init (DMA_HandleTypeDef *hdma) |
Initialize the DMA according to the specified parameters in the DMA_InitTypeDef and create the associated handle. | |
HAL_StatusTypeDef | HAL_DMA_DeInit (DMA_HandleTypeDef *hdma) |
DeInitializes the DMA peripheral. | |
Initialization and de-initialization functions.
=============================================================================== ##### Initialization and de-initialization functions ##### =============================================================================== [..] This section provides functions allowing to initialize the DMA Stream source and destination addresses, incrementation and data sizes, transfer direction, circular/normal mode selection, memory-to-memory mode selection and Stream priority value. [..] The HAL_DMA_Init() function follows the DMA configuration procedures as described in reference manual.
HAL_StatusTypeDef HAL_DMA_Init | ( | DMA_HandleTypeDef * | hdma | ) |
#include <stm32f4xx_hal_dma.h>
Initialize the DMA according to the specified parameters in the DMA_InitTypeDef and create the associated handle.
hdma | Pointer to a DMA_HandleTypeDef structure that contains the configuration information for the specified DMA Stream. |
HAL | status |
Definition at line 170 of file stm32f4xx_hal_dma.c.
References __HAL_DMA_DISABLE, __HAL_UNLOCK, assert_param, DMA_InitTypeDef::Channel, DMA_InitTypeDef::Direction, DMA_CalcBaseAndBitshift(), DMA_CheckFifoParam(), DMA_FIFOMODE_DISABLE, DMA_FIFOMODE_ENABLE, DMA_MBURST_SINGLE, __DMA_HandleTypeDef::ErrorCode, DMA_InitTypeDef::FIFOMode, DMA_InitTypeDef::FIFOThreshold, HAL_DMA_ERROR_NONE, HAL_DMA_ERROR_PARAM, HAL_DMA_ERROR_TIMEOUT, HAL_DMA_STATE_BUSY, HAL_DMA_STATE_READY, HAL_DMA_STATE_TIMEOUT, HAL_ERROR, HAL_GetTick(), HAL_OK, HAL_TIMEOUT, HAL_TIMEOUT_DMA_ABORT, DMA_Base_Registers::IFCR, __DMA_HandleTypeDef::Init, __DMA_HandleTypeDef::Instance, IS_DMA_CHANNEL, IS_DMA_DIRECTION, IS_DMA_FIFO_MODE_STATE, IS_DMA_FIFO_THRESHOLD, IS_DMA_MEMORY_BURST, IS_DMA_MEMORY_DATA_SIZE, IS_DMA_MEMORY_INC_STATE, IS_DMA_MODE, IS_DMA_PERIPHERAL_BURST, IS_DMA_PERIPHERAL_DATA_SIZE, IS_DMA_PERIPHERAL_INC_STATE, IS_DMA_PRIORITY, DMA_InitTypeDef::MemBurst, DMA_InitTypeDef::MemDataAlignment, DMA_InitTypeDef::MemInc, DMA_InitTypeDef::Mode, DMA_InitTypeDef::PeriphBurst, DMA_InitTypeDef::PeriphDataAlignment, DMA_InitTypeDef::PeriphInc, DMA_InitTypeDef::Priority, __DMA_HandleTypeDef::State, and __DMA_HandleTypeDef::StreamIndex.
HAL_StatusTypeDef HAL_DMA_DeInit | ( | DMA_HandleTypeDef * | hdma | ) |
#include <stm32f4xx_hal_dma.h>
DeInitializes the DMA peripheral.
hdma | pointer to a DMA_HandleTypeDef structure that contains the configuration information for the specified DMA Stream. |
HAL | status |
Definition at line 309 of file stm32f4xx_hal_dma.c.
References __HAL_DMA_DISABLE, __HAL_UNLOCK, assert_param, DMA_CalcBaseAndBitshift(), __DMA_HandleTypeDef::ErrorCode, HAL_BUSY, HAL_DMA_ERROR_NONE, HAL_DMA_STATE_BUSY, HAL_DMA_STATE_RESET, HAL_ERROR, HAL_OK, DMA_Base_Registers::IFCR, __DMA_HandleTypeDef::Instance, __DMA_HandleTypeDef::State, __DMA_HandleTypeDef::StreamIndex, __DMA_HandleTypeDef::XferAbortCallback, __DMA_HandleTypeDef::XferCpltCallback, __DMA_HandleTypeDef::XferErrorCallback, __DMA_HandleTypeDef::XferHalfCpltCallback, __DMA_HandleTypeDef::XferM1CpltCallback, and __DMA_HandleTypeDef::XferM1HalfCpltCallback.