/* Sets the control parameters for a DMA channel. 
Choose the destination address increment from one of  */
void DMAChannelControlSet(unsigned long ulChannelID, unsigned long ulControl)
/* Sets the control parameters for a DMA channel. 
Choose the destination address increment from one of  */
void DMAChannelControlSet(unsigned long ulChannelID, unsigned long ulControl)
{
    xASSERT(xDMAChannelIDValid(ulChannelID));
    xHWREG(g_psDMAChannelAddress[ulChannelID] + DMA_DCR) &= 
    ~(DMA_DCR_SINC | DMA_DCR_SSIZE_M | DMA_DCR_DINC | DMA_DCR_DSIZE_M);
    xHWREG(g_psDMAChannelAddress[ulChannelID] + DMA_DCR) |= ulControl;
}