STM32F4xx HAL Documentation
Hardware Abstraction Layer for STM32F4 familiy
Loading...
Searching...
No Matches
DMA Private Functions

DMA private functions. More...

Collaboration diagram for DMA Private Functions:

Functions

static void DMA_SetConfig (DMA_HandleTypeDef *hdma, uint32_t SrcAddress, uint32_t DstAddress, uint32_t DataLength)
 Sets the DMA Transfer parameter.
 
static uint32_t DMA_CalcBaseAndBitshift (DMA_HandleTypeDef *hdma)
 Returns the DMA Stream base address depending on stream number.
 
static HAL_StatusTypeDef DMA_CheckFifoParam (DMA_HandleTypeDef *hdma)
 Check compatibility between FIFO threshold level and size of the memory burst.
 

Detailed Description

DMA private functions.

Function Documentation

◆ DMA_SetConfig()

static void DMA_SetConfig ( DMA_HandleTypeDef * hdma,
uint32_t SrcAddress,
uint32_t DstAddress,
uint32_t DataLength )
static

#include <stm32f4xx_hal_dma.c>

Sets the DMA Transfer parameter.

Parameters
hdmapointer to a DMA_HandleTypeDef structure that contains the configuration information for the specified DMA Stream.
SrcAddressThe source memory Buffer address
DstAddressThe destination memory Buffer address
DataLengthThe length of data to be transferred from source to destination
Return values
HALstatus

Definition at line 1151 of file stm32f4xx_hal_dma.c.

References DMA_InitTypeDef::Direction, DMA_MEMORY_TO_PERIPH, __DMA_HandleTypeDef::Init, and __DMA_HandleTypeDef::Instance.

Referenced by HAL_DMA_Start(), and HAL_DMA_Start_IT().

◆ DMA_CalcBaseAndBitshift()

static uint32_t DMA_CalcBaseAndBitshift ( DMA_HandleTypeDef * hdma)
static

#include <stm32f4xx_hal_dma.c>

Returns the DMA Stream base address depending on stream number.

Parameters
hdmapointer to a DMA_HandleTypeDef structure that contains the configuration information for the specified DMA Stream.
Return values
Streambase address

Definition at line 1185 of file stm32f4xx_hal_dma.c.

References __DMA_HandleTypeDef::Instance, __DMA_HandleTypeDef::StreamBaseAddress, and __DMA_HandleTypeDef::StreamIndex.

Referenced by HAL_DMA_DeInit(), and HAL_DMA_Init().

◆ DMA_CheckFifoParam()

static HAL_StatusTypeDef DMA_CheckFifoParam ( DMA_HandleTypeDef * hdma)
static

#include <stm32f4xx_hal_dma.c>

Check compatibility between FIFO threshold level and size of the memory burst.

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

Definition at line 1213 of file stm32f4xx_hal_dma.c.

References DMA_FIFO_THRESHOLD_1QUARTERFULL, DMA_FIFO_THRESHOLD_3QUARTERSFULL, DMA_FIFO_THRESHOLD_FULL, DMA_FIFO_THRESHOLD_HALFFULL, DMA_MBURST_INC16, DMA_MDATAALIGN_BYTE, DMA_MDATAALIGN_HALFWORD, DMA_InitTypeDef::FIFOThreshold, HAL_ERROR, HAL_OK, __DMA_HandleTypeDef::Init, DMA_InitTypeDef::MemBurst, and DMA_InitTypeDef::MemDataAlignment.

Referenced by HAL_DMA_Init().