|
STM32F103xB HAL User Manual
|
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 initialize the associated handle. | |
| HAL_StatusTypeDef | HAL_DMA_DeInit (DMA_HandleTypeDef *hdma) |
| DeInitialize the DMA peripheral. | |
Initialization and de-initialization functions.
===============================================================================
##### Initialization and de-initialization functions #####
===============================================================================
[..]
This section provides functions allowing to initialize the DMA Channel source
and destination addresses, incrementation and data sizes, transfer direction,
circular/normal mode selection, memory-to-memory mode selection and Channel priority value.
[..]
The HAL_DMA_Init() function follows the DMA configuration procedures as described in
reference manual.
| HAL_StatusTypeDef HAL_DMA_DeInit | ( | DMA_HandleTypeDef * | hdma | ) |
DeInitialize the DMA peripheral.
| hdma,: | pointer to a DMA_HandleTypeDef structure that contains the configuration information for the specified DMA Channel. |
| HAL | status |
Definition at line 220 of file stm32f1xx_hal_dma.c.
References __HAL_DMA_DISABLE, assert_param, __DMA_HandleTypeDef::ChannelIndex, __DMA_HandleTypeDef::DmaBaseAddress, __DMA_HandleTypeDef::ErrorCode, HAL_DMA_ERROR_NONE, HAL_DMA_STATE_RESET, __DMA_HandleTypeDef::Instance, __DMA_HandleTypeDef::State, __DMA_HandleTypeDef::XferAbortCallback, __DMA_HandleTypeDef::XferCpltCallback, __DMA_HandleTypeDef::XferErrorCallback, and __DMA_HandleTypeDef::XferHalfCpltCallback.
| 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.
| hdma,: | Pointer to a DMA_HandleTypeDef structure that contains the configuration information for the specified DMA Channel. |
| HAL | status |
Definition at line 143 of file stm32f1xx_hal_dma.c.
References assert_param, __DMA_HandleTypeDef::ChannelIndex, DMA_InitTypeDef::Direction, __DMA_HandleTypeDef::DmaBaseAddress, __DMA_HandleTypeDef::ErrorCode, HAL_DMA_ERROR_NONE, HAL_DMA_STATE_BUSY, HAL_DMA_STATE_READY, __DMA_HandleTypeDef::Init, __DMA_HandleTypeDef::Instance, IS_DMA_DIRECTION, IS_DMA_MEMORY_DATA_SIZE, IS_DMA_MEMORY_INC_STATE, IS_DMA_MODE, IS_DMA_PERIPHERAL_DATA_SIZE, IS_DMA_PERIPHERAL_INC_STATE, IS_DMA_PRIORITY, __DMA_HandleTypeDef::Lock, DMA_InitTypeDef::MemDataAlignment, DMA_InitTypeDef::MemInc, DMA_InitTypeDef::Mode, DMA_InitTypeDef::PeriphDataAlignment, DMA_InitTypeDef::PeriphInc, DMA_InitTypeDef::Priority, and __DMA_HandleTypeDef::State.
1.7.6.1