Browse Source

Add a usb_read_ii_timeout_cancellable wrapper

nfactor-troky
Con Kolivas 11 years ago
parent
commit
2b998936fe
  1. 3
      usbutils.h

3
usbutils.h

@ -440,6 +440,9 @@ void *usb_resource_thread(void *userdata); @@ -440,6 +440,9 @@ void *usb_resource_thread(void *userdata);
#define usb_read_ii_timeout(cgpu, intinfo, buf, bufsiz, read, timeout, cmd) \
_usb_read(cgpu, intinfo, DEFAULT_EP_IN, buf, bufsiz, read, timeout, NULL, cmd, false, false)
#define usb_read_ii_timeout_cancellable(cgpu, intinfo, buf, bufsiz, read, timeout, cmd) \
_usb_read(cgpu, intinfo, DEFAULT_EP_IN, buf, bufsiz, read, timeout, NULL, cmd, false, true)
#define usb_read_ep_timeout(cgpu, ep, buf, bufsiz, read, timeout, cmd) \
_usb_read(cgpu, DEFAULT_INTINFO, ep, buf, bufsiz, read, timeout, NULL, cmd, false, false)

Loading…
Cancel
Save