MDN self-hosted library · e01.org

USBDevice: transferOut() method

WebUSB API

no runnable cells web-api-instance-method upstream source

WebUSB API

The transferOut() method of the USBDevice interface returns a Promise that resolves with a USBOutTransferResult when bulk or interrupt data is sent to the USB device.

Syntax

transferOut(endpointNumber, data)

Parameters

  • endpointNumber
  • : The number of a device-specific endpoint (buffer).
  • data
  • : A TypedArray containing the data to send to the device.

Return value

A Promise that resolves with a USBOutTransferResult.

Specifications

Browser compatibility