STM32F439xx HAL User Manual
Functions
DMA Private Functions
DMA

DMA private functions. More...

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

static uint32_t DMA_CalcBaseAndBitshift ( DMA_HandleTypeDef hdma) [static]

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 1193 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().

static HAL_StatusTypeDef DMA_CheckFifoParam ( DMA_HandleTypeDef hdma) [static]

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 1221 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, __DMA_HandleTypeDef::Init, DMA_InitTypeDef::MemBurst, and DMA_InitTypeDef::MemDataAlignment.

Referenced by HAL_DMA_Init().

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

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 1159 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().