Optional_bosInteger USB device number
Integer USB device address
Object with properties for the fields of the device descriptor.
List of Interface objects for the interfaces of the default configuration of the device.
Array containing the USB device port numbers, or undefined if not supported on this platform.
Contains all config descriptors of the device (same structure as .configDescriptor above)
Object with properties for the fields of the active configuration descriptor.
Timeout in milliseconds to use for control transfers.
Optionalerror: LibUSBExceptionOptionalerror: LibUSBExceptionOptionalerror: LibUSBExceptionOptionalerror: LibUSBExceptionClose the device.
The device must be open to use this method.
Perform a control transfer with libusb_control_transfer.
Parameter data_or_length can be an integer length for an IN transfer, or a Buffer for an OUT transfer. The type must match the direction specified in the MSB of bmRequestType.
The data parameter of the callback is actual transferred for OUT transfers, or will be passed a Buffer for IN transfers.
The device must be open to use this method.
Optionalcallback: ((error: undefined | LibUSBException, buffer: undefined | number | Buffer) => void)Perform a control transfer to retrieve an object with properties for the fields of the Binary Object Store descriptor.
The device must be open to use this method.
Optionalerror: LibUSBExceptionOptionaldescriptor: BosDescriptorRetrieve a list of Capability objects for the Binary Object Store capabilities of the device.
The device must be open to use this method.
Optionalcapabilities: Capability[]Perform a control transfer to retrieve a string descriptor
The device must be open to use this method.
Optionalerror: LibUSBExceptionOptionalvalue: stringOpen the device.
Performs a reset of the device. Callback is called when complete.
The device must be open to use this method.
Optionalerror: LibUSBExceptionSet the device configuration to something other than the default (0). To use this, first call .open(false) (which tells it not to auto configure),
then before claiming an interface, call this method.
The device must be open to use this method.
Optionalcallback: ((error: undefined | LibUSBException) => void)
Represents a USB device.