[Nut-upsdev] Powerware PW5115 USB driver

Charles Lepple clepple at gmail.com
Wed Nov 7 18:40:36 UTC 2007


On 11/7/07, Max E. Kuznecov <mek at mek.uz.ua> wrote:
> Well, not exactly, according to usb.h from libusb (and, well, usb
> standard) USB_ENDPOINT_OUT is declared as 0x00 and here is 0x42 used
> and similarly
> USB_REQ_SET_DESCRIPTOR is 0x07 and not 0x0d, that is the point.
> I've found neither of 0x42 nor 0x0d in libusb srcs

Lots of code misuses the USB_ENDPOINT_* defines.

Also, the control requests can have different destinations (e.g.
setting a string descriptor vs. a report descriptor), which are
logically OR'd with the request number.

-- 
- Charles Lepple



More information about the Nut-upsdev mailing list