cancel
Showing results for 
Search instead for 
Did you mean: 

USB Superspeed Peripherals

Ascs_4819156
New Contributor

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

0 Likes
1 Solution
AliAsgar
Moderator
Moderator

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

View solution in original post

0 Likes
1 Reply
AliAsgar
Moderator
Moderator

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

View solution in original post

0 Likes