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.
Re-attaches the kernel driver for the interface.
The device must be open to use this method.
Claims the interface. This method must be called before using any endpoints of this interface.
The device must be open to use this method.
Detaches the kernel driver from the interface.
The device must be open to use this method.
Return the InEndpoint or OutEndpoint with the specified address.
The device must be open to use this method.
Returns false
if a kernel driver is not active; true
if active.
The device must be open to use this method.
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) => voidReleases 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) => voidSets 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.