/* DMA Channel Read Interrupt Flag. 
The interrupt flag for the channel is returned. */
bool dma_get_interrupt_flag(uint32_t dma, uint8_t channel, uint32_t interrupt)
/* DMA Channel Read Interrupt Flag. 
The interrupt flag for the channel is returned. */
bool dma_get_interrupt_flag(uint32_t dma, uint8_t channel, uint32_t interrupt)
{
	uint32_t flag = (interrupt << DMA_FLAG_OFFSET(channel));
	return ((DMA_ISR(dma) & flag) > 0);
}