Méthode | Description | |
---|---|---|
ClaimInterface ( int interfaceID ) : bool |
Claims the specified interface of the device.
|
|
Close ( ) : bool |
Closes the UsbDevice and disposes any UsbDevice.ActiveEndpoints.
|
|
Open ( ) : bool |
Opens the USB device handle.
|
|
Open ( string deviceFilename, |
Opens the USB device for communucation.
|
|
ReleaseAllInterfaces ( ) : int |
Releases all interface claimed by ClaimInterface.
|
|
ReleaseInterface ( ) : bool |
Releases the last interface claimed by ClaimInterface.
|
|
ReleaseInterface ( int interfaceID ) : bool |
Releases an interface that was previously claimed with ClaimInterface.
|
|
ResetDevice ( ) : bool |
Sends a usb device reset command. After calling ResetDevice, the LibUsbDevice instance is disposed and no longer usable. A new LibUsbDevice instance must be obtained from the device list. |
|
SetAltInterface ( int alternateID ) : bool |
Sets an alternate interface for the most recent claimed interface.
|
|
SetAltInterface ( int interfaceID, int alternateID ) : bool |
Sets an alternate interface for the specified interface.
|
|
SetConfiguration ( byte config ) : bool |
Sets the USB devices active configuration value. A USB device can have several different configurations, but only one active configuration. |
Méthode | Description | |
---|---|---|
ControlTransferEx ( |
||
LibUsbDevice ( |
||
UsbIoSync ( int controlCode, Object inBuffer, int inSize, |
public ClaimInterface ( int interfaceID ) : bool | ||
interfaceID | int | The interface to claim. |
Résultat | bool |
public static Open ( string deviceFilename, |
||
deviceFilename | string | The LibUsb device filename to open. |
usbDevice | The newly created UsbDevice. | |
Résultat | bool |
public ReleaseInterface ( int interfaceID ) : bool | ||
interfaceID | int | The interface to release. |
Résultat | bool |
public SetAltInterface ( int alternateID ) : bool | ||
alternateID | int | The alternate interface to select for the most recent claimed interface See |
Résultat | bool |
public SetAltInterface ( int interfaceID, int alternateID ) : bool | ||
interfaceID | int | The interface index to specify an alternate setting for. |
alternateID | int | The alternate interface setting. |
Résultat | bool |
public SetConfiguration ( byte config ) : bool | ||
config | byte | The active configuration value. A zero value means the device is not configured and a non-zero value indicates the device is configured. |
Résultat | bool |