Does anybody know the data format in Buffer of BeginDataXfer(Buffer, nunitsize, &outOvLap)? Or where can I find the data format introduction?
Why I ask this question, because I am busy in a development based on cyabi.lib. When I tried BurstWrite and BurstRead, I found the data(arbitrary number) in Buffer I write in, which can't be read successfully. So I think there may be some format requirement of the data I want to write in and read out.
There is no format requirement for the buffer you pass in. Whatever you put in that buffer wil be sent as-is over the endpoint. You can take a simple trace (with http://www.usblyzer.com/) and confirm this.
If you can't read data back, then it could be something in the firmware preventing this. Make sure that your firmware has data to send back and that its ready.
Thank you Scutifer.
You are right there is no format requirement. The failed of reading is caused by:
1. The size to be read is not 4 byte alignment.
2. I alread post in another topic: "Why memory read failed while I set size to 0x4004, 0x4008 until 0x4018", which I still didn't find reason.