1.34.29.6 XDMACn_ChannelTransferStatusGet Function

C

// n is instance of the peripheral and it is applicable only for devices having multiple instances of the peripheral.
XDMAC_TRANSFER_EVENT XDMACn_ChannelTransferStatusGet(XDMAC_CHANNEL channel)

Summary

Returns the XDMAC channel's transfer status

Description

Returns the XDMAC channel's transfer status

Precondition

XDMAC should have been initialized by calling the XDMACn_Initialize.

Parameters

Param Description
XDMAC_CHANNEL channel the particular channel to be interrogated

Returns

- XDMAC_TRANSFER_EVENT - enum of type XDMAC_TRANSFER_EVENT indicating the status of the XDMAC transfer

Example

bool isBusy;

isBusy = XDMAC_ChannelIsBusy(DMAC_CHANNEL_0);

if (isBusy == false)
{
    if (XDMAC_ChannelTransferStatusGet() == XDMAC_TRANSFER_ERROR)
    {
        // XDMAC transfer error
    }
    else
    {
        // XDMAC transfer successful
    }
}

Remarks

None.