search for: usb_communication_subdriver_

Displaying 2 results from an estimated 2 matches for "usb_communication_subdriver_".

2010 Mar 25
1
new TSSHARA SOHO II ups
...errupts I/O as this UPS doesn't recognizes Control IO, so libusb_get_report() and libusb_set_report() will not work. Looking at libusb.c I realized there's a libusb_get_interrupt() which can be used to read from the endpoint, however there's no counterpart libusb_set_interrupt() API and usb_communication_subdriver_t structure doesn't contain a *set_interrupt element as well: libusb.h .... typedef struct usb_communication_subdriver_s { char *name; /* name of this subdriver */ char *version; /* version of this subdriver...
2020 Apr 03
0
Powercool PCRACK-1200VA patch update
...                  string, sizeof(string));                  if (ret > 0) {                      curDevice->Serial = strdup(string); diff --git a/drivers/libusb.h b/drivers/libusb.h index 66d26335..46414da1 100644 --- a/drivers/libusb.h +++ b/drivers/libusb.h @@ -60,6 +60,8 @@ typedef struct usb_communication_subdriver_s {      unsigned char *buf, int bufsize, int timeout);  } usb_communication_subdriver_t; +int nut_usb_get_string(usb_dev_handle *dev, int index, char *buf, size_t buflen); +  extern usb_communication_subdriver_t    usb_subdriver;  #endif /* LIBUSB_H */ diff --git a/drivers/main.c b/drivers/m...