3.3.5.2 DMAC_ChannelIsBusy

Reads the busy status of a channel.

The function returns true if the specified channel is busy with a transfer. This function can be used to poll for the completion of transfer that was started by calling the DMAC_ChannelTransfer() function. This function can be used as a polling alternative to the setting a callback function and receiving an asynchronous notification for transfer notification.

bool 
DMAC_ChannelBusy 
(
     DMAC_CHANNEL channel
);

Precondition

  • DMAC should have been initialized by calling the DMAC_Initialize.

Parameters

  • channel - the particular channel to be interrogated

Returns

  • returns true if the channel is busy with an on-going transfer, otherwise, false if not busy and is available for a transfer.