IRQ Handler and Callbacks

IRQ Handler and Callbacks functions. More...

Functions

void hal_dma_irq_handler (dma_handle_t *p_dma)
 Handle DMA interrupt request. More...
 
hal_status_t hal_dma_register_callback (dma_handle_t *p_dma, hal_dma_callback_id_t id, void(*callback)(dma_handle_t *p_dma))
 Register callbacks. More...
 
hal_status_t hal_dma_unregister_callback (dma_handle_t *p_dma, hal_dma_callback_id_t id)
 UnRegister callbacks. More...
 

Detailed Description

IRQ Handler and Callbacks functions.

Function Documentation

◆ hal_dma_irq_handler()

void hal_dma_irq_handler ( dma_handle_t p_dma)

Handle DMA interrupt request.

Parameters
[in]p_dmaPointer to a DMA handle which contains the configuration information for the specified DMA Channel.

◆ hal_dma_register_callback()

hal_status_t hal_dma_register_callback ( dma_handle_t p_dma,
hal_dma_callback_id_t  id,
void(*)(dma_handle_t *p_dma)  callback 
)

Register callbacks.

Parameters
[in]p_dmaPointer to a DMA handle which contains the configuration information for the specified DMA Channel.
[in]idUser Callback identifer. This parameter can be one of the following values:
[in]callbackPointer to private callbacsk function which has pointer to a dma_handle_t structure as parameter.
Return values
HAL_OKOperation is OK.
HAL_ERRORParameter error or operation not supported.
HAL_BUSYDriver is busy.
HAL_TIMEOUTTimeout occurred.

◆ hal_dma_unregister_callback()

hal_status_t hal_dma_unregister_callback ( dma_handle_t p_dma,
hal_dma_callback_id_t  id 
)

UnRegister callbacks.

Parameters
[in]p_dmaPointer to a DMA handle which contains the configuration information for the specified DMA Channel.
[in]idUser Callback identifer. This parameter can be a combiantion of the following values:
Return values
HAL_OKOperation is OK.
HAL_ERRORParameter error or operation not supported.
HAL_BUSYDriver is busy.
HAL_TIMEOUTTimeout occurred.