/* Checks whether the DMA channel is active or idle. */
int XDmaPs_IsActive(XDmaPs *InstPtr, unsigned int Channel)
/* Checks whether the DMA channel is active or idle. */
int XDmaPs_IsActive(XDmaPs *InstPtr, unsigned int Channel)
{
	Xil_AssertNonvoid(InstPtr != NULL);
	if (Channel >= XDMAPS_CHANNELS_PER_DEV)
		return XST_FAILURE;
	return InstPtr->Chans[Channel].DmaCmdToHw != NULL;
}