MDN self-hosted library · e01.org

USBConfiguration: USBConfiguration() constructor

WebUSB API

no runnable cells web-api-constructor upstream source

WebUSB API

The USBConfiguration() constructor creates a new USBConfiguration object which contains information about the configuration on the provided USBDevice with the given configuration value.

Syntax

new USBConfiguration(device, configurationValue)

Parameters

  • device
  • : Specifies the USBDevice you want to configure.
  • configurationValue
  • : Specifies the configuration descriptor you want to read. This is an unsigned integer in the range 0 to 255.

Specifications

Browser compatibility