/* Check the existance of pending descriptor. 
dmac_isr () { ... if (dmacHw_descriptorPending (handle)) { dmacHw_initiateTransfer (handle); } }  */
uint32_t dmacHw_descriptorPending(dmacHw_HANDLE_t handle, void *pDescriptor)
/* Check the existance of pending descriptor. 
dmac_isr () { ... if (dmacHw_descriptorPending (handle)) { dmacHw_initiateTransfer (handle); } }  */
uint32_t dmacHw_descriptorPending(dmacHw_HANDLE_t handle, void *pDescriptor)
{
	dmacHw_CBLK_t *pCblk = dmacHw_HANDLE_TO_CBLK(handle);
	dmacHw_DESC_RING_t *pRing = dmacHw_GET_DESC_RING(pDescriptor);
	if (!CHANNEL_BUSY(pCblk->module, pCblk->channel)) {
		if (pRing->pEnd) {
			return 1;
		}
	}
	return 0;
}