Hal Drivers for L4

Dependents:   BSP OneHopeOnePrayer FINAL_AUDIO_RECORD AudioDemo

Fork of STM32L4xx_HAL_Driver by Senior Design: Sound Monitor

Embed: (wiki syntax)

« Back to documentation index

Input and Output operation functions

Input and Output operation functions
[DMA Exported Functions]

Input and Output operation functions. More...

Functions

HAL_StatusTypeDef HAL_DMA_Start (DMA_HandleTypeDef *hdma, uint32_t SrcAddress, uint32_t DstAddress, uint32_t DataLength)
 Start the DMA Transfer.
HAL_StatusTypeDef HAL_DMA_Start_IT (DMA_HandleTypeDef *hdma, uint32_t SrcAddress, uint32_t DstAddress, uint32_t DataLength)
 Start the DMA Transfer with interrupt enabled.
HAL_StatusTypeDef HAL_DMA_Abort (DMA_HandleTypeDef *hdma)
 Abort the DMA Transfer.
HAL_StatusTypeDef HAL_DMA_PollForTransfer (DMA_HandleTypeDef *hdma, uint32_t CompleteLevel, uint32_t Timeout)
 Polling for transfer complete.
void HAL_DMA_IRQHandler (DMA_HandleTypeDef *hdma)
 Handle DMA interrupt request.

Detailed Description

Input and Output operation functions.

 ===============================================================================
                      #####  IO operation functions  #####
 ===============================================================================
    [..]  This section provides functions allowing to:
      (+) Configure the source, destination address and data length and Start DMA transfer
      (+) Configure the source, destination address and data length and
          Start DMA transfer with interrupt
      (+) Abort DMA transfer
      (+) Poll for transfer complete
      (+) Handle DMA interrupt request


Function Documentation

HAL_StatusTypeDef HAL_DMA_Abort ( DMA_HandleTypeDef *  hdma )

Abort the DMA Transfer.

Parameters:
hdma,:pointer to a DMA_HandleTypeDef structure that contains the configuration information for the specified DMA Channel.
Note:
After disabling a DMA Channel, a check for wait until the DMA Channel is effectively disabled is added. If a Channel is disabled while a data transfer is ongoing, the current data will be transferred and the Channel will be effectively disabled only after the transfer of this single data is finished.
Return values:
HALstatus

Definition at line 579 of file stm32l4xx_hal_dma.c.

void HAL_DMA_IRQHandler ( DMA_HandleTypeDef *  hdma )

Handle DMA interrupt request.

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

Definition at line 711 of file stm32l4xx_hal_dma.c.

HAL_StatusTypeDef HAL_DMA_PollForTransfer ( DMA_HandleTypeDef *  hdma,
uint32_t  CompleteLevel,
uint32_t  Timeout 
)

Polling for transfer complete.

Parameters:
hdma,:pointer to a DMA_HandleTypeDef structure that contains the configuration information for the specified DMA Channel.
CompleteLevel,:Specifies the DMA level complete.
Timeout,:Timeout duration.
Return values:
HALstatus

Definition at line 624 of file stm32l4xx_hal_dma.c.

HAL_StatusTypeDef HAL_DMA_Start ( DMA_HandleTypeDef *  hdma,
uint32_t  SrcAddress,
uint32_t  DstAddress,
uint32_t  DataLength 
)

Start the DMA Transfer.

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

Definition at line 507 of file stm32l4xx_hal_dma.c.

HAL_StatusTypeDef HAL_DMA_Start_IT ( DMA_HandleTypeDef *  hdma,
uint32_t  SrcAddress,
uint32_t  DstAddress,
uint32_t  DataLength 
)

Start the DMA Transfer with interrupt enabled.

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

Definition at line 539 of file stm32l4xx_hal_dma.c.