Azure Sphere MT3620 M4 API Reference Manual
 All Data Structures Functions Variables Typedefs Enumerations Enumerator Groups Pages
Typedef

This section introduces the typedef used by DMA M-HAL. More...

Overview

This section introduces the typedef used by DMA M-HAL.

Typedefs

typedef void(* dma_isr_callback )(void *user_data)
 This defines the function prototype of DMA interrupt service routines callback. More...
 

Typedef Documentation

typedef void(* dma_isr_callback)(void *user_data)

This defines the function prototype of DMA interrupt service routines callback.

Different DMA channels have different interrupts. FULL-SIZE DMA has data transfer completion interrupt;
HALF-SIZE DMA has data transfer completion interrupt and half-completion interrupt;
VFF DMA has FIFO data overflow/ underflow interrupt and FIFO timeout interrupt.
dma_isr_callback will be called in the DMA interrupt service routine and it can notify users that corresponding HW event occurs.
This typedef is to describe the callback indicating what users want to do.

Parameters
[in]user_datais a OS-HAL defined parameter provided by mtk_mhal_dma_config().
See Also
mtk_mhal_dma_config()