I am trying to debug a libusb-based driver that work just fine on Linux and Windows, but fail on Mac OS X. However I am unable to find a description of the return codes from libusb.
views:
22answers:
2
+1
A:
There's documentation and brief descriptions here - are these the codes you mean?
enum libusb_error {
LIBUSB_SUCCESS = 0,
LIBUSB_ERROR_IO = -1,
LIBUSB_ERROR_INVALID_PARAM = -2,
LIBUSB_ERROR_ACCESS = -3,
LIBUSB_ERROR_NO_DEVICE = -4,
LIBUSB_ERROR_NOT_FOUND = -5,
LIBUSB_ERROR_BUSY = -6,
LIBUSB_ERROR_TIMEOUT = -7,
LIBUSB_ERROR_OVERFLOW = -8,
LIBUSB_ERROR_PIPE = -9,
LIBUSB_ERROR_INTERRUPTED = -10,
LIBUSB_ERROR_NO_MEM = -11,
LIBUSB_ERROR_NOT_SUPPORTED = -12,
LIBUSB_ERROR_OTHER = -99
}
Rup
2010-09-30 08:21:41
+1
A:
You can find these codes here.
This might be of interest for you too.
Thariama
2010-09-30 08:25:11
Thanks for the last link! From errno.h I find that it -60 means that the operation times out. Now I just have to figure out why.
trondd
2010-09-30 12:42:10
let me know what you found out
Thariama
2010-10-04 11:52:12