- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Dear sir,
When I was learning and using the CYAPI library, I found a problem.
About BeginDataXfer and FinishDataXfer. In these 2 functions, they all need a buffer paramemter.
So I checked the source code. In BeginDataXfer function, the buffer will be memcpy into pXmitBuf.
And in FinishDataXfer, the buffer will be memcpy out from pXmitBuf.
So why do we need such a weird repetitive operation?
Thanks
Chad
Solved! Go to Solution.
- Labels:
-
USB Superspeed Peripherals
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Chad
Buffer is not copied to pXmitBuf, but after pXmitBuf. Please refer to CyUSB.sys Programmers Reference Pg No. 21 under "IOCTL_ADAPT_SEND_NON_EP0_TRANSFER".
Best Regards,
AliAsgar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Chad
Buffer is not copied to pXmitBuf, but after pXmitBuf. Please refer to CyUSB.sys Programmers Reference Pg No. 21 under "IOCTL_ADAPT_SEND_NON_EP0_TRANSFER".
Best Regards,
AliAsgar