This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Hi,
How does the API for USB bulk transfer used on the PC side work?
Is the data once received pooled in a buffer somewhere until I call ReadUSBPacket?
And if you have a buffer to pool, what is its size?
What if I don't call ReadUSBPacket for a while?
Thanks in advance.
Hi,
If the ReadUSBPacket is not called for a while, it is likely that the data will get lost. Refer the following post
API on the PC side uses "WinUsb_ReadPipe" function to read out the data. This is a Windows provided API , details can be found here
https://docs.microsoft.com/en-us/windows/win32/api/winusb/nf-winusb-winusb_readpipe
Best Regards
Siddharth