Object with fields from the interface descriptor -- see libusb documentation or USB spec.
Protected
deviceList of endpoints on this interface: InEndpoint and OutEndpoint objects.
Protected
idInteger interface number.
Protected
refreshReleases the interface and resets the alternate setting. Calls callback when complete.
It is an error to release an interface with pending transfers.
The device must be open to use this method.
Optional
callback: ((error?: LibUSBException) => void)Optional
error: LibUSBExceptionReleases the interface and resets the alternate setting. Calls callback when complete.
It is an error to release an interface with pending transfers. If the optional closeEndpoints
parameter is true, any active endpoint streams are stopped (see Endpoint.stopStream
),
and the interface is released after the stream transfers are cancelled. Transfers submitted
individually with Endpoint.transfer
are not affected by this parameter.
The device must be open to use this method.
Optional
closeEndpoints: booleanOptional
callback: ((error?: LibUSBException) => void)Optional
error: LibUSBExceptionSets the alternate setting. It updates the interface.endpoints
array to reflect the endpoints found in the alternate setting.
The device must be open to use this method.
Optional
callback: ((error: undefined | LibUSBException) => void)
Integer alternate setting number.