/* Set transfer data width of the specified dma channel.  */
en_result_t Dma_SetTransferWidth(en_dma_channel_t enCh, en_dma_transfer_width_t enWidth)
/* Set transfer data width of the specified dma channel.  */
en_result_t Dma_SetTransferWidth(en_dma_channel_t enCh, en_dma_transfer_width_t enWidth)
{
  ASSERT(IS_VALID_CH(enCh));
  ASSERT(IS_VALID_TRN_WIDTH(enWidth));
  if((!IS_VALID_CH(enCh)) || (!IS_VALID_TRN_WIDTH(enWidth)))
  {
    return ErrorInvalidParameter;
  }
  if(enCh == DmaCh0)
  {
    M0P_DMAC->CONFB0_f.WIDTH = enWidth;
  }
  else{
    M0P_DMAC->CONFB1_f.WIDTH = enWidth;    }
  return Ok;
}