thegecko / webusb

Node.js implementation of the WebUSB Specification
https://thegecko.github.io/webusb/
MIT License
183 stars 27 forks source link

Parameters of USBControlTransferParameters come from? #56

Closed GanZhiXiong closed 4 years ago

GanZhiXiong commented 4 years ago

image

Where do the values in the red box of the screenshot come from? requestType, recipient, request, value, index, I'm just writing these arbitrary parameters, so I don't know how to write these parameters?

thegecko commented 4 years ago

It's from the usb specification.

http://www.jungo.com/st/support/documentation/windriver/802/wdusb_man_mhtml/node55.html