7.6.4.18 Function dma_unregister_callback()

Unregister a callback function for a dedicated DMA resource.

void dma_unregister_callback( struct dma_resource * resource, enum dma_callback_type type)

There are three types of callback functions:
  • Callback for transfer complete

  • Callback for transfer error

  • Callback for channel suspend

The application can unregister any of the callback functions which are already registered and are no longer needed.

Table 7-26. Parameters
Data directionParameter nameDescription

[in]

resource

Pointer to the DMA resource

[in]

type

Callback function type