/* Set the destination address of the specified dma channel.  */
en_result_t Dma_SetDestinationAddress(en_dma_channel_t enCh, uint32_t u32Address)
/* Set the destination address of the specified dma channel.  */
en_result_t Dma_SetDestinationAddress(en_dma_channel_t enCh, uint32_t u32Address)
{
  ASSERT(IS_VALID_CH(enCh));
  if(!IS_VALID_CH(enCh))
  {
    return ErrorInvalidParameter;
  }
  if(enCh == DmaCh0)
  {
    M0P_DMAC->DSTADR0_f.DSTADR = u32Address;
  }
  else
  {
    M0P_DMAC->DSTADR1_f.DSTADR = u32Address;     }
  return Ok;
}