思澈科技软件开发工具包  2.20
Input and Output operation functions

Input and Output operation functions. More...

Functions

HAL_StatusTypeDef HAL_DMA_Start (DMA_HandleTypeDef *hdma, uint32_t SrcAddress, uint32_t DstAddress, uint32_t Counts)
 Start the DMA Transfer. More...
 
HAL_StatusTypeDef HAL_DMA_Start_IT (DMA_HandleTypeDef *hdma, uint32_t SrcAddress, uint32_t DstAddress, uint32_t Counts)
 Start the DMA Transfer with interrupt enabled. More...
 
HAL_StatusTypeDef HAL_DMA_Abort (DMA_HandleTypeDef *hdma)
 Abort the DMA Transfer. More...
 
HAL_StatusTypeDef HAL_DMA_Abort_IT (DMA_HandleTypeDef *hdma)
 Aborts the DMA Transfer in Interrupt mode. More...
 
HAL_StatusTypeDef HAL_DMA_PollForTransfer (DMA_HandleTypeDef *hdma, HAL_DMA_LevelCompleteTypeDef CompleteLevel, uint32_t Timeout)
 Polling for transfer complete. More...
 
void HAL_DMA_IRQHandler (DMA_HandleTypeDef *hdma)
 Handle DMA interrupt request. More...
 
HAL_StatusTypeDef HAL_DMA_RegisterCallback (DMA_HandleTypeDef *hdma, HAL_DMA_CallbackIDTypeDef CallbackID, void(*pCallback)(DMA_HandleTypeDef *_hdma))
 Register callbacks. More...
 
HAL_StatusTypeDef HAL_DMA_UnRegisterCallback (DMA_HandleTypeDef *hdma, HAL_DMA_CallbackIDTypeDef CallbackID)
 UnRegister callbacks. More...
 
void HAL_DMA_Select_Source (DMA_Channel_TypeDef *dma_chl, uint8_t request)
 

Detailed Description

Input and Output operation functions.

DMA_Exported_Functions_Group1

 ===============================================================================
                      #####  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_DMA_Abort()

HAL_StatusTypeDef HAL_DMA_Abort ( DMA_HandleTypeDef hdma)

Abort the DMA Transfer.

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

◆ HAL_DMA_Abort_IT()

HAL_StatusTypeDef HAL_DMA_Abort_IT ( DMA_HandleTypeDef hdma)

Aborts the DMA Transfer in Interrupt mode.

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

◆ HAL_DMA_IRQHandler()

void HAL_DMA_IRQHandler ( DMA_HandleTypeDef hdma)

Handle DMA interrupt request.

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

◆ HAL_DMA_PollForTransfer()

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

Polling for transfer complete.

Parameters
hdmapointer to a DMA_HandleTypeDef structure that contains the configuration information for the specified DMA Channel.
CompleteLevelSpecifies the DMA level complete.
TimeoutTimeout duration.
Return values
HALstatus

◆ HAL_DMA_RegisterCallback()

HAL_StatusTypeDef HAL_DMA_RegisterCallback ( DMA_HandleTypeDef hdma,
HAL_DMA_CallbackIDTypeDef  CallbackID,
void(*)(DMA_HandleTypeDef *_hdma)  pCallback 
)

Register callbacks.

Parameters
hdmapointer to a DMA_HandleTypeDef structure that contains the configuration information for the specified DMA Channel.
CallbackIDUser Callback identifer a HAL_DMA_CallbackIDTypeDef ENUM as parameter.
pCallbackpointer to private callbacsk function which has pointer to a DMA_HandleTypeDef structure as parameter.
Return values
HALstatus

◆ HAL_DMA_Start()

HAL_StatusTypeDef HAL_DMA_Start ( DMA_HandleTypeDef hdma,
uint32_t  SrcAddress,
uint32_t  DstAddress,
uint32_t  Counts 
)

Start the DMA Transfer.

Parameters
hdmapointer to a DMA_HandleTypeDef structure that contains the configuration information for the specified DMA Channel.
SrcAddressThe source memory Buffer address
DstAddressThe destination memory Buffer address
CountsThe counts of data transfer action
Return values
HALstatus

◆ HAL_DMA_Start_IT()

HAL_StatusTypeDef HAL_DMA_Start_IT ( DMA_HandleTypeDef hdma,
uint32_t  SrcAddress,
uint32_t  DstAddress,
uint32_t  Counts 
)

Start the DMA Transfer with interrupt enabled.

Parameters
hdmapointer to a DMA_HandleTypeDef structure that contains the configuration information for the specified DMA Channel.
SrcAddressThe source memory Buffer address
DstAddressThe destination memory Buffer address
CountsThe counts of data transfer action
Return values
HALstatus

◆ HAL_DMA_UnRegisterCallback()

HAL_StatusTypeDef HAL_DMA_UnRegisterCallback ( DMA_HandleTypeDef hdma,
HAL_DMA_CallbackIDTypeDef  CallbackID 
)

UnRegister callbacks.

Parameters
hdmapointer to a DMA_HandleTypeDef structure that contains the configuration information for the specified DMA Channel.
CallbackIDUser Callback identifer a HAL_DMA_CallbackIDTypeDef ENUM as parameter.
Return values
HALstatus