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