/* Activate DMA auto-request cycle (used for memory-memory transfers). 
Prior to activating the DMA cycle, the channel and descriptor to be used must have been properly configured. */
void DMA_ActivateAuto(unsigned int channel, bool primary, void *dst, void *src, unsigned int nMinus1)
/* Activate DMA auto-request cycle (used for memory-memory transfers). 
Prior to activating the DMA cycle, the channel and descriptor to be used must have been properly configured. */
void DMA_ActivateAuto(unsigned int channel, bool primary, void *dst, void *src, unsigned int nMinus1)
{
  uint32_t chBit;
  EFM_ASSERT(channel < DMA_CHAN_COUNT);
  EFM_ASSERT(nMinus1 <= (_DMA_CTRL_N_MINUS_1_MASK >> _DMA_CTRL_N_MINUS_1_SHIFT));
  DMA_Prepare(channel,
              dmaCycleCtrlAuto,
              primary,
              false,
              dst,
              src,
              nMinus1);
  chBit        = 1 << channel;
  DMA->CHENS   = chBit;
  DMA->CHSWREQ = chBit;
}