usbInterface.id, ^// index
bytes, ^// buffer
bytes.size, ^// length
TimeUnit.SECONDS.toMillis(1).toInt() ^// timeout
)
The Java implementation:
byte[] bytes = {2, 9, 1};
connection.controlTransfer(
0x21, ^// requestType (write)
0x09, ^// request (set report)
0x0200, ^// value
usbInterface.getId(), ^// index
bytes, ^// buffer
bytes.length, ^// length
(int) TimeUnit.SECONDS.toMillis(1) ^// timeout
);
29
Revision 7
Vuzix Corporation