1.3.8.5 1.4.6.5 1.5.7.5 1.6.6.5 1.7.7.5 1.10.7.9 1.11.8.9 1.12.7.9 1.13.7.9 1.15.8.9 1.16.6.9 1.17.6.9 1.18.7.9 1.19.6.9 1.20.6.9 1.21.7.9 1.22.9.9 1.23.8.9 1.24.7.9 1.29.8.5 1.30.5.5 1.31.5.5 1.32.8.5 1.33.5.5 1.37.5.5 1.38.6.5 1.39.5.5 1.40.6.5 DMAC_ChannelTransferStatusGet Function
C
DMAC_TRANSFER_EVENT DMAC_ChannelTransferStatusGet(DMAC_CHANNEL channel)
Summary
Returns the DMA channel's transfer status
Description
Returns the DMA channel's transfer status
Precondition
DMAC should have been initialized by calling the DMAC_Initialize.
Parameters
Param | Description |
---|---|
DMAC_CHANNEL channel | the particular channel to be interrogated |
Returns
- DMAC_TRANSFER_EVENT - enum of type DMAC_TRANSFER_EVENT indicating the status of the DMA transfer
Example
bool isBusy;
isBusy = DMAC_ChannelIsBusy(DMAC_CHANNEL_0);
if (isBusy == false)
{
if (DMAC_ChannelTransferStatusGet() == DMAC_TRANSFER_EVENT_ERROR)
{
// DMA transfer error
}
else
{
// DMA transfer successful
}
}
Remarks
None.