Function dma_register_callback()

Register a callback function for a dedicated DMA resource.

void dma_register_callback(
		struct dma_resource * resource,
		dma_callback_t callback,
		enum dma_callback_type type)

There are three types of callback functions, which can be registered:
Table 1. Parameters
Data direction Parameter name Description

[in]

resource

Pointer to the DMA resource

[in]

callback

Pointer to the callback function

[in]

type

Callback function type