Header menu logo fable-electron-docs-api

USBDevice Type

Constructors

Constructor Description

USBDevice(configurations, deviceClass, deviceId, deviceProtocol, deviceSubclass, deviceVersionMajor, deviceVersionMinor, deviceVersionSubminor, productId, usbVersionMajor, usbVersionMinor, usbVersionSubminor, vendorId, ?configuration, ?manufacturerName, ?productName, ?serialNumber)

Full Usage: USBDevice(configurations, deviceClass, deviceId, deviceProtocol, deviceSubclass, deviceVersionMajor, deviceVersionMinor, deviceVersionSubminor, productId, usbVersionMajor, usbVersionMinor, usbVersionSubminor, vendorId, ?configuration, ?manufacturerName, ?productName, ?serialNumber)

Parameters:
    configurations : obj[] - An array of USBConfiguration interfaces for controlling a paired USB device.
    deviceClass : int - The device class for the communication interface supported by the device.
    deviceId : string - Unique identifier for the device.
    deviceProtocol : int - The device protocol for the communication interface supported by the device.
    deviceSubclass : int - The device subclass for the communication interface supported by the device.
    deviceVersionMajor : int - The major version number of the device as defined by the device manufacturer.
    deviceVersionMinor : int - The minor version number of the device as defined by the device manufacturer.
    deviceVersionSubminor : int - The subminor version number of the device as defined by the device manufacturer.
    productId : int - The USB product ID.
    usbVersionMajor : int - The USB protocol major version supported by the device.
    usbVersionMinor : int - The USB protocol minor version supported by the device.
    usbVersionSubminor : int - The USB protocol subminor version supported by the device.
    vendorId : int - The USB vendor ID.
    ?configuration : Configuration - A USBConfiguration object containing information about the currently selected configuration of a USB device.
    ?manufacturerName : string - The manufacturer name of the device.
    ?productName : string - Name of the device.
    ?serialNumber : string - The USB device serial number.

Returns: USBDevice
configurations : obj[]

An array of USBConfiguration interfaces for controlling a paired USB device.

deviceClass : int

The device class for the communication interface supported by the device.

deviceId : string

Unique identifier for the device.

deviceProtocol : int

The device protocol for the communication interface supported by the device.

deviceSubclass : int

The device subclass for the communication interface supported by the device.

deviceVersionMajor : int

The major version number of the device as defined by the device manufacturer.

deviceVersionMinor : int

The minor version number of the device as defined by the device manufacturer.

deviceVersionSubminor : int

The subminor version number of the device as defined by the device manufacturer.

productId : int

The USB product ID.

usbVersionMajor : int

The USB protocol major version supported by the device.

usbVersionMinor : int

The USB protocol minor version supported by the device.

usbVersionSubminor : int

The USB protocol subminor version supported by the device.

vendorId : int

The USB vendor ID.

?configuration : Configuration

A USBConfiguration object containing information about the currently selected configuration of a USB device.

?manufacturerName : string

The manufacturer name of the device.

?productName : string

Name of the device.

?serialNumber : string

The USB device serial number.

Returns: USBDevice

Instance members

Instance member Description

this.configuration

Full Usage: this.configuration

A USBConfiguration object containing information about the currently selected configuration of a USB device.

this.configurations

Full Usage: this.configurations

An array of USBConfiguration interfaces for controlling a paired USB device.

this.deviceClass

Full Usage: this.deviceClass

The device class for the communication interface supported by the device.

this.deviceId

Full Usage: this.deviceId

Unique identifier for the device.

this.deviceProtocol

Full Usage: this.deviceProtocol

The device protocol for the communication interface supported by the device.

this.deviceSubclass

Full Usage: this.deviceSubclass

The device subclass for the communication interface supported by the device.

this.deviceVersionMajor

Full Usage: this.deviceVersionMajor

The major version number of the device as defined by the device manufacturer.

this.deviceVersionMinor

Full Usage: this.deviceVersionMinor

The minor version number of the device as defined by the device manufacturer.

this.deviceVersionSubminor

Full Usage: this.deviceVersionSubminor

The subminor version number of the device as defined by the device manufacturer.

this.manufacturerName

Full Usage: this.manufacturerName

The manufacturer name of the device.

this.productId

Full Usage: this.productId

The USB product ID.

this.productName

Full Usage: this.productName

Name of the device.

this.serialNumber

Full Usage: this.serialNumber

The USB device serial number.

this.usbVersionMajor

Full Usage: this.usbVersionMajor

The USB protocol major version supported by the device.

this.usbVersionMinor

Full Usage: this.usbVersionMinor

The USB protocol minor version supported by the device.

this.usbVersionSubminor

Full Usage: this.usbVersionSubminor

The USB protocol subminor version supported by the device.

this.vendorId

Full Usage: this.vendorId

The USB vendor ID.

Type something to start searching.