1.10.7.8 DMAC_ChannelIsBusy Function
C
bool DMAC_ChannelIsBusy(DMAC_CHANNEL channel)
Summary
Reads the busy status of a channel.
Description
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.
Precondition
DMAC should have been initialized by calling the DMAC_Initialize.
Parameters
Param | Description |
---|---|
DMAC_CHANNEL channel | the particular channel to be interrogated |
Returns
- True - The channel is busy with an on-going transfer.
- False - The channel is not busy and is available for a transfer.
Example
bool returnVal;
returnVal = DMAC_ChannelIsBusy(DMAC_CHANNEL_0);
while( returnVal );
Remarks
None.