Hi,
The device I am working right now demanding sending and receiving data in
unsigned int, and every bit has to be in exact position, in windows it is
easy as the DeviceIoContorl takes a void pointer, but in libusb, both
libusb_bulk_transfer and libusb_fill_bulk_transfer only takes unsigned
char*.
when writing, I am combine all the unsigned int into string<unsigned char>,
(no sure if this will work or not) but when reading, there could be so many
different combinations, e.g. if libusb returns the following:
125
126
210
how do I know how to pack the data into unsigned int and how many unsigned
int?
any advice?
Thanks.
John
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
libusbx-devel mailing list
libusbx-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libusbx-devel