STM32H735xx 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.
static void DMA_CalcDMAMUXChannelBaseAndMask (DMA_HandleTypeDef *hdma)
 Updates the DMA handle with the DMAMUX channel and status mask depending on stream number.
static void DMA_CalcDMAMUXRequestGenBaseAndMask (DMA_HandleTypeDef *hdma)
 Updates the DMA handle with the DMAMUX request generator params.

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:
hdma,:pointer to a DMA_HandleTypeDef structure that contains the configuration information for the specified DMA Stream.
Return values:
Streambase address

Definition at line 1854 of file stm32h7xx_hal_dma.c.

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

Referenced by HAL_DMA_DeInit(), and HAL_DMA_Init().

static void DMA_CalcDMAMUXChannelBaseAndMask ( DMA_HandleTypeDef hdma) [static]

Updates the DMA handle with the DMAMUX channel and status mask depending on stream number.

Parameters:
hdma,:pointer to a DMA_HandleTypeDef structure that contains the configuration information for the specified DMA Stream.
Return values:
HALstatus

Definition at line 1984 of file stm32h7xx_hal_dma.c.

References __DMA_HandleTypeDef::DMAmuxChannel, __DMA_HandleTypeDef::DMAmuxChannelStatus, __DMA_HandleTypeDef::DMAmuxChannelStatusMask, and __DMA_HandleTypeDef::Instance.

Referenced by HAL_DMA_DeInit(), and HAL_DMA_Init().

static void DMA_CalcDMAMUXRequestGenBaseAndMask ( DMA_HandleTypeDef hdma) [static]

Updates the DMA handle with the DMAMUX request generator params.

Parameters:
hdma,:pointer to a DMA_HandleTypeDef structure that contains the configuration information for the specified DMA Stream.
Return values:
HALstatus

Definition at line 2019 of file stm32h7xx_hal_dma.c.

References DMA_REQUEST_GENERATOR0, DMA_REQUEST_GENERATOR7, __DMA_HandleTypeDef::DMAmuxRequestGen, __DMA_HandleTypeDef::DMAmuxRequestGenStatus, __DMA_HandleTypeDef::DMAmuxRequestGenStatusMask, __DMA_HandleTypeDef::Init, __DMA_HandleTypeDef::Instance, and DMA_InitTypeDef::Request.

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:
hdma,:pointer to a DMA_HandleTypeDef structure that contains the configuration information for the specified DMA Stream.
Return values:
HALstatus

Definition at line 1890 of file stm32h7xx_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:
hdma,:pointer to a DMA_HandleTypeDef structure that contains the configuration information for the specified DMA Stream.
SrcAddress,:The source memory Buffer address
DstAddress,:The destination memory Buffer address
DataLength,:The length of data to be transferred from source to destination
Return values:
None

Definition at line 1767 of file stm32h7xx_hal_dma.c.

References DMA_InitTypeDef::Direction, DMA_MEMORY_TO_PERIPH, __DMA_HandleTypeDef::DMAmuxChannelStatus, __DMA_HandleTypeDef::DMAmuxChannelStatusMask, __DMA_HandleTypeDef::DMAmuxRequestGen, __DMA_HandleTypeDef::DMAmuxRequestGenStatus, __DMA_HandleTypeDef::DMAmuxRequestGenStatusMask, DMA_Base_Registers::IFCR, __DMA_HandleTypeDef::Init, __DMA_HandleTypeDef::Instance, __DMA_HandleTypeDef::StreamBaseAddress, and __DMA_HandleTypeDef::StreamIndex.

Referenced by HAL_DMA_Start(), and HAL_DMA_Start_IT().