files/en-us/web/api/usbdevice/controltransferin/index.md
{{APIRef("WebUSB API")}}{{SeeCompatTable}}{{SecureContext_Header}}{{AvailableInWorkers}}
The controlTransferIn() method of the {{domxref("USBDevice")}} interface returns a {{jsxref("Promise")}} that resolves with a {{domxref("USBInTransferResult")}} when a command or status request has been transmitted to (received by) the USB device.
controlTransferIn(setup, length)
setup
requestType
"standard" (common to all USB devices) "class" (common to an industry-standard class of devices) or "vendor".recipient
"device", "interface", "endpoint", or "other".request
value
index
length
{{jsxref("promise")}} that resolves with a {{domxref("USBInTransferResult")}}.
{{Specifications}}
{{Compat}}