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 OS-HAL Layer. More...

Overview

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 Documentation

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.

Parameters
[in]user_data: is a user defined parameter provided by mtk_os_hal_dma_register_isr().
See Also
mtk_os_hal_dma_register_isr()