Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

Index

Constructors

constructor

Properties

events

events: EventEmitter2

Protected interface

interface: Interface = "StandardWebUSB"

queue

queue: PQueue

usbDevice

usbDevice: USBDevice

Accessors

isInitialized

isInitialized:

Methods

cancelPending

  • cancelPending(): Promise<void>

disconnect

  • disconnect(): Promise<void>

exchange

  • exchange(msgTypeEnum: number, msg: Message): Promise<[number, Message]>
  • Parameters

    • msgTypeEnum: number
    • msg: Message

    Returns Promise<[number, Message]>

Protected fromMessageBuffer

  • fromMessageBuffer(buff: ByteBuffer): [number, Message]

getEntropy

  • getEntropy(length?: number): Uint8Array

initialize

  • initialize(): Promise<void>

Protected read

  • read(): Promise<ByteBuffer>

Private readChunk

  • readChunk(): Promise<DataView>

sendRaw

  • sendRaw(buffer: ByteBuffer): Promise<ByteBuffer>

Protected toMessageBuffer

  • toMessageBuffer(msgTypeEnum: number, msg: Message): ByteBuffer

Protected write

  • write(buff: ByteBuffer): Promise<void>

Private writeChunk

  • writeChunk(buffer: ByteBuffer): Promise<USBOutTransferResult>
  • Parameters

    • buffer: ByteBuffer

    Returns Promise<USBOutTransferResult>

Static Protected failureMessageFactory

  • failureMessageFactory(e?: Error | string): ByteBuffer

Static requestPair

  • requestPair(): Promise<USBDevice>

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method

Generated using TypeDoc