Firefox Tomorrow

web api instance method

USBDevice: transferOut() method

View on MDN ↗

Limited availabilitySecure contextAvailable in workers

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

SpecificationsStandards references are available on the canonical MDN page.

Browser compatibility

Browser compatibilityCompatibility data is available on the canonical MDN page.