7.6.4.1 Function dma_abort_job()

Abort a DMA transfer.

void dma_abort_job( struct dma_resource * resource)

This function will abort a DMA transfer. The DMA channel used for the DMA resource will be disabled. The block transfer count will be also calculated and written to the DMA resource structure.

Note: The DMA resource will not be freed after calling this function. The function dma_free() can be used to free an allocated resource.
Table 7-5. Parameters
Data directionParameter nameDescription

[in, out]

resource

Pointer to the DMA resource