/* Sets the control parameters for a DMA channel. 
Choose the destination address increment from one of  */
void xDMAChannelControlSet(unsigned long ulChannelID, unsigned long ulControl)
/* Sets the control parameters for a DMA channel. 
Choose the destination address increment from one of  */
void xDMAChannelControlSet(unsigned long ulChannelID, unsigned long ulControl)
{
    xASSERT(xDMAChannelIDValid(ulChannelID));
    xHWREG(g_psDMAChannelAddress[ulChannelID] + DMA_CTRL) &=
    ~(DMA_CTRL_SAR_INC_M | DMA_CTRL_DAR_INC_M | DMA_CTRL_TWS_M);
    xHWREG(g_psDMAChannelAddress[ulChannelID] + DMA_CTRL) |= ulControl;
}