Function dma_start_transfer_job()

Start a DMA transfer.

enum status_code dma_start_transfer_job(
		struct dma_resource * resource)

This function will start a DMA transfer through an allocated DMA resource.

Table 1. Parameters
Data direction Parameter name Description

[in, out]

resource

Pointer to the DMA resource

Returns

Status of the transfer start procedure.

Table 2. Return Values
Return value Description

STATUS_OK

The transfer was started successfully

STATUS_BUSY

The DMA resource was busy and the transfer was not started

STATUS_ERR_INVALID_ARG

Transfer size is 0 and transfer was not started