메소드 | 설명 | |
---|---|---|
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 |