FinishDataXfer buffer data structure | Cypress Semiconductor
August 17, 2017: We apologize for any difficulties or delays in posting new discussions to the Community on cypress.com. We are in the process of merging our support forums onto a single platform in an effort to create a much-improved community experience for you.
FinishDataXfer buffer data structure
I have a general question about the data structure used in the BeginDataXfer(), WaitForXfer() and FinishDataXfer() methods. I am following the C# examples provided. My doubt is related how to extract the data received after the next piece of code:
EndPoint.FinishDataXfer(ref cBufs[k], ref xBufs[k], ref len, ref oLaps[k])
If the transactions was sucesfull I have a filled xBufs buffer, but my question is related how to extract the "clean" data, it means only the data received. In this example I have 16 packets per Xfer and 8 Xfers to queue. This way xBufs is an array of 8 by 8192 bytes of size.