API0.1.1
    Preparing search index...

    Opens a USB device and finds the bulk endpoints of one interface (fel_lib.c feldev_get_endpoint).

    Implements

    Index
    device: USBDevice
    • Receives exactly length bytes.

      Parameters

      • length: number
      • OptionaltimeoutMs: number

      Returns Promise<Uint8Array<ArrayBufferLike>>

    • Receives one USB transfer of at most maxLength bytes (ends at a short packet).

      Parameters

      • maxLength: number
      • OptionaltimeoutMs: number

      Returns Promise<Uint8Array<ArrayBufferLike>>

    • Sends all of data (may be split into several USB transfers).

      Parameters

      • data: Uint8Array
      • OptionaltimeoutMs: number

      Returns Promise<void>

    • iface: an interface number, or the class/subclass/protocol to look for (fastboot: ff/42/03).

      Parameters

      • device: USBDevice
      • Optionaliface: number | InterfaceMatch
      • OptionalmaxOut: number

      Returns Promise<WebUsbBulk>