controlTransferIn() method of the
USBDevice interface returns a
promise that resolves with a
USBInTransferResult when the result of a command or status request has
been received from the USB device.
var promise = USBDevice.controlTransferIn(setup, length)
An object that sets options for . The available options are:
requestType: Must be one of three values specifying whether the tranfer is
"standard"(common to all USB devices)
"class"(common to an industry-standard class of devices) or
recipient: Specifices the target of the transfer on the device, one of
request: A vendor-specific command.
value: Vender-specific request parameters.
index: The interface number of the recipient.
The maximum number of bytes to read from the device. The actual data is in the
USBInTransferResultin the resolved Promise.
|WebUSB API |
BCD tables only load in the browser