1.3.8.4 1.4.6.4 1.5.7.4 1.6.6.4 1.7.7.4 1.10.7.8 1.11.8.8 1.12.7.8 1.13.7.8 1.15.8.8 1.16.6.8 1.17.6.8 1.18.7.8 1.19.6.8 1.20.6.8 1.21.7.8 1.22.9.8 1.23.8.8 1.24.7.8 1.29.8.4 1.30.5.4 1.31.5.4 1.32.8.4 1.33.5.4 1.37.5.4 1.38.6.4 1.39.5.4 1.40.6.4 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.