/* Check if the data transfer occurring on the specified DMA Channel is complete.  */
uint32_t dmac_channel_is_transfer_done(Dmac *p_dmac, uint32_t ul_num)
/* Check if the data transfer occurring on the specified DMA Channel is complete.  */
uint32_t dmac_channel_is_transfer_done(Dmac *p_dmac, uint32_t ul_num)
{
	uint32_t status;
	Assert(p_dmac);
	Assert(ul_num<=3);
	status = dmac_channel_get_status(p_dmac);
	if (status & (DMAC_CHSR_ENA0 << ul_num)) {
		return 0;
	} else {
		return 1;
	}
}