/* Check if DMA channel is enabled. 
The DMA channel is disabled when the DMA controller has finished a DMA cycle. */
bool DMA_ChannelEnabled(unsigned int channel)
/* Check if DMA channel is enabled. 
The DMA channel is disabled when the DMA controller has finished a DMA cycle. */
bool DMA_ChannelEnabled(unsigned int channel)
{
  EFM_ASSERT(channel < DMA_CHAN_COUNT);
  return (bool)((DMA->CHENS >> channel) & 1);
}