Azure Sphere MT3620 M4 API Reference Manual
|
This section introduces the typedef used by DMA OS-HAL Layer. More...
This section introduces the typedef used by DMA OS-HAL Layer.
Typedefs | |
typedef void(* | dma_interrupt_callback )(void *user_data) |
This defines the function prototype of DMA interrupt service routines callback. More... | |
typedef void(* dma_interrupt_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_interrupt_callback will be called in the DMA interrupt service routines and it can notify users that corresponding HW event occurs. This typedef describes the callback indicating what users want to do.
[in] | user_data | : is a user defined parameter provided by mtk_os_hal_dma_register_isr(). |