examples: add an option to force a device request for WCID descriptors
authorPete Batard <pete@akeo.ie>
Sun, 29 Sep 2013 20:39:26 +0000 (21:39 +0100)
committerPete Batard <pete@akeo.ie>
Sun, 29 Sep 2013 20:39:26 +0000 (21:39 +0100)
commit16692c825e6f55548b28738dcf2f9b6157b9daf1
tree636677ad026c5e3ff0c6968de92c7000e2e1758f
parent28d5514e61ca7f7459c200b187b8cc3ebeda9274
examples: add an option to force a device request for WCID descriptors

* Add option 'w' to force the use of a Device Request rather than an
  Interface Request when querying the WCID OS Extended Properties descriptor.
* This is due to a WinUSB limitation where all Interface Requests have the
  wIndex set to the interface number.
* This assumes that the WCID firmware answers both Device and Interface requests
  equally.
examples/xusb.c
libusb/version_nano.h