Метод | Описание | |
---|---|---|
Close ( ) : bool |
Closes the UsbDevice and disposes any UsbDevice.ActiveEndpoints.
|
|
EndpointPolicies ( ReadEndpointID epNum ) : |
Gets endpoint policies for the specified endpoint id.
|
|
EndpointPolicies ( WriteEndpointID epNum ) : |
Gets endpoint policies for the specified endpoint id.
|
|
GetAssociatedInterface ( byte associatedInterfaceIndex, |
Gets an interface associated with this WinUsbDevice.
|
|
GetCurrentAlternateSetting ( byte &settingNumber ) : bool |
Gets the currently selected alternate settings number for the selected inteface.
|
|
GetDevicePathList ( System.Guid interfaceGuid, List |
Gets a list a valid, connected WinUSB device inteface paths for the a given WinUSB device interface guid.
|
|
Open ( ) : bool |
Opens the USB device handle.
|
|
Open ( string devicePath, |
Opens a WinUsb directly from the user supplied device path.
|
|
QueryDeviceSpeed ( DeviceSpeedTypes &deviceSpeed ) : bool |
Gets the device speed.
|
|
QueryInterfaceSettings ( byte alternateInterfaceNumber, |
Gets a UsbInterfaceDescriptor for the specified AlternateInterfaceNumber,
|
Метод | Описание | |
---|---|---|
GetPowerPolicy ( PowerPolicyType policyType, int &valueLength, |
||
SetPowerPolicy ( PowerPolicyType policyType, int valueLength, |
||
WinUsbDevice ( |
public EndpointPolicies ( ReadEndpointID epNum ) : |
||
epNum | ReadEndpointID | The endpoint ID to retrieve |
Результат |
public EndpointPolicies ( WriteEndpointID epNum ) : |
||
epNum | WriteEndpointID | The endpoint ID to retrieve |
Результат |
public GetAssociatedInterface ( byte associatedInterfaceIndex, |
||
associatedInterfaceIndex | byte | The index to retrieve. (0 = next interface, 1= interface after next, etc.). |
usbDevice | A new |
|
Результат | bool |
public GetCurrentAlternateSetting ( byte &settingNumber ) : bool | ||
settingNumber | byte | The selected AlternateSetting number. |
Результат | bool |
public static GetDevicePathList ( System.Guid interfaceGuid, List |
||
interfaceGuid | System.Guid | A WinUSB DeviceInterfaceGUID. This is set in the usb devices inf file when the drivers for it are installed. |
devicePathList | List |
A list of connected WinUSB device inteface paths. |
Результат | bool |
public static Open ( string devicePath, |
||
devicePath | string | Device path (symbolic link) of the WinUsb device to open. |
usbDevice | Returns an opened WinUsb device on success, null on failure. | |
Результат | bool |
public QueryDeviceSpeed ( DeviceSpeedTypes &deviceSpeed ) : bool | ||
deviceSpeed | DeviceSpeedTypes | The device speed. |
Результат | bool |
public QueryInterfaceSettings ( byte alternateInterfaceNumber, |
||
alternateInterfaceNumber | byte | The alternate interface index for the |
usbAltInterfaceDescriptor | The |
|
Результат | bool |