Value | Meaning |
---|---|
LIBUSB_SUCCESS0 | Success (no error) |
LIBUSB_ERROR_IO-1 | Input/output error |
LIBUSB_ERROR_INVALID_PARAM-2 | Invalid parameter |
LIBUSB_ERROR_ACCESS-3 | Access denied (insufficient permissions) |
LIBUSB_ERROR_NO_DEVICE-4 | No such device (it may have been disconnected) |
LIBUSB_ERROR_NOT_FOUND-5 | Entity not found |
LIBUSB_ERROR_BUSY-6 | Resource busy |
LIBUSB_ERROR_TIMEOUT-7 | Operation timed out |
LIBUSB_ERROR_OVERFLOW-8 | Overflow |
LIBUSB_ERROR_PIPE-9 | Pipe error |
LIBUSB_ERROR_INTERRUPTED-10 | System call interrupted |
LIBUSB_ERROR_NO_MEM-11 | Insufficient memory |
LIBUSB_ERROR_NOT_SUPPORTED-12 | Operation not supported or unimplemented on this platform |
LIBUSB_ERROR_OTHER-99 |
Error codes. Most libusbx functions return 0 on success or one of these codes on failure.
You can call libusb_error_name() to retrieve a string representation of an error code or libusb_strerror() to get an end-user suitable description of an error code.