I've been reading about libusb here:
https://www.cs.unm.edu/~hjelmn/libusb_hotplug_api/group__syncio.html

some things I just don't really understand, I'm hoping someone can explain:

The wValue, wIndex and wLength fields values should be given in host-endian 
byte order.    
What does host-endian byte order mean?? 

wLength
the length field for the setup packet. The data buffer should be at least this 
size.

What is this length supposed to be?  I've been using the length of the data I'm 
trying to send... so trying to send 8 bytes, I made it 8... but maybe it's 
wanting some other length?

It seems to me that there would be little point in asking for this value if it 
was always just the length of the data field because the function could just 
get len(data) on it's own, so why bother passing something so obvious as a 
parameter...  this leads me to wonder if this length needs to be something 
else?  

James
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Reply via email to