search for: usb_set_short_xf

Displaying 1 result from an estimated 1 matches for "usb_set_short_xf".

Did you mean: usb_set_short_xfer
2003 Jun 11
1
Palm m50x & the USB stack
...he pilot-link code first opens /dev/ugenX and then switches to /dev/ugenX.2, which is the HotSync endpoint for HotSyncs (endpoint 1 is listed as "Generic" in the endpoint descriptions). Relevant code is then: i = 0; /* 0 or USBD_SHORT_XFER_OK */ if (ioctl(endpoint_fd, USB_SET_SHORT_XFER, &i) < 0) { i = 50; if (ioctl(endpoint_fd, USB_SET_TIMEOUT, &i) < 0) { later, writes to the endpoint go fine, but a read() on the endpoint_fd returns immediately with ETIMEDOUT if the USB_TIMEOUT is non-0. I've started following this through the ugen code, bu...