shwong2002 / winusbnet

Automatically exported from code.google.com/p/winusbnet
Other
0 stars 0 forks source link

ControlIn commands must return length of data received #12

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
ControlIn USB commands must return the number of bytes that were actually 
received. 

In typical USB applications its common to have bulk transfers where you don't 
know the length of the data that you're going to receive - so you set up a 
buffer with the maximum possible bytes and execute a ControlIn(..., buffer) 
command. After the command you check to see how many bytes were actually 
received.

Original issue reported on code.google.com by navneet....@gmail.com on 24 Feb 2015 at 12:19