/* Set the source address mode of the specified dma channel.  */
en_result_t Dma_SetSourceIncMode(en_dma_channel_t enCh, en_address_mode_t enMode)
/* Set the source address mode of the specified dma channel.  */
en_result_t Dma_SetSourceIncMode(en_dma_channel_t enCh, en_address_mode_t enMode)
{
  ASSERT(IS_VALID_CH(enCh));
  ASSERT(IS_VALID_ADDR_MODE(enMode));
  if((!IS_VALID_CH(enCh)) || (!IS_VALID_ADDR_MODE(enMode)))
  {
    return ErrorInvalidParameter;
  }
  if(enCh == DmaCh0)
  {
    M0P_DMAC->CONFB0_f.FS = enMode;
  }
  else{
    M0P_DMAC->CONFB1_f.FS = enMode;     }
  return Ok;
}