In FX3APIGuide.pdf, the explanation of CyU3PDmaChannelSetXfer is: Set a transfer on the DMA channel.The function starts a transaction the selected DMA channel. It should be invoked only when the channel is in CY_U3P_DMA_CONFIGURED state.
From the explanation CyU3PDmaChannelSetXfer starts data transaction,when use the function more then one time ,how do they work,For exzample:
You cannot call the CyU3PDmaChannelSetXfer() twice unless the channel has been reset in between.
I think what is happening in this code is that the channel is first getting reset (check the CyU3PDmaChannelReset() call).
And then it is being started again using the SetXfer() call.
Where did you get this piece of code from? Can you share the whole project?