C# Class libusbK.UsbK

Inheritance: IDisposable
Mostrar archivo Open project: nikkov/Win-Widget Class Usage Examples

Protected Properties

Property Type Description
driverAPI KUSB_DRIVER_API
handle KUSB_HANDLE

Public Methods

Method Description
AbortPipe ( byte PipeID ) : bool
ClaimInterface ( byte NumberOrIndex, bool IsIndex ) : bool
Clone ( KUSB_HANDLE &DstInterfaceHandle ) : bool
ControlTransfer ( WINUSB_SETUP_PACKET SetupPacket, Array Buffer, uint BufferLength, uint &LengthTransferred, IntPtr Overlapped ) : bool
ControlTransfer ( WINUSB_SETUP_PACKET SetupPacket, Array Buffer, uint BufferLength, uint &LengthTransferred, KOVL_HANDLE Overlapped ) : bool
ControlTransfer ( WINUSB_SETUP_PACKET SetupPacket, IntPtr Buffer, uint BufferLength, uint &LengthTransferred, IntPtr Overlapped ) : bool
ControlTransfer ( WINUSB_SETUP_PACKET SetupPacket, IntPtr Buffer, uint BufferLength, uint &LengthTransferred, KOVL_HANDLE Overlapped ) : bool
FlushPipe ( byte PipeID ) : bool
Free ( ) : bool
GetAltInterface ( byte NumberOrIndex, bool IsIndex, byte &AltSettingNumber ) : bool
GetAssociatedInterface ( byte AssociatedInterfaceIndex, KUSB_HANDLE &AssociatedInterfaceHandle ) : bool
GetConfiguration ( byte &ConfigurationNumber ) : bool
GetCurrentAlternateSetting ( byte &AltSettingNumber ) : bool
GetCurrentFrameNumber ( uint &FrameNumber ) : bool
GetDescriptor ( byte DescriptorType, byte Index, ushort LanguageID, Array Buffer, uint BufferLength, uint &LengthTransferred ) : bool
GetDescriptor ( byte DescriptorType, byte Index, ushort LanguageID, IntPtr Buffer, uint BufferLength, uint &LengthTransferred ) : bool
GetOverlappedResult ( IntPtr Overlapped, uint &lpNumberOfBytesTransferred, bool bWait ) : bool
GetOverlappedResult ( KOVL_HANDLE Overlapped, uint &lpNumberOfBytesTransferred, bool bWait ) : bool
GetPipePolicy ( byte PipeID, uint PolicyType, uint &ValueLength, Array Value ) : bool
GetPipePolicy ( byte PipeID, uint PolicyType, uint &ValueLength, IntPtr Value ) : bool
GetPowerPolicy ( uint PolicyType, uint &ValueLength, Array Value ) : bool
GetPowerPolicy ( uint PolicyType, uint &ValueLength, IntPtr Value ) : bool
GetProperty ( KUSB_PROPERTY PropertyType, uint &PropertySize, Array Value ) : bool
GetProperty ( KUSB_PROPERTY PropertyType, uint &PropertySize, IntPtr Value ) : bool
IsoReadPipe ( byte PipeID, Array Buffer, uint BufferLength, IntPtr Overlapped, KISO_CONTEXT IsoContext ) : bool
IsoReadPipe ( byte PipeID, Array Buffer, uint BufferLength, KOVL_HANDLE Overlapped, KISO_CONTEXT IsoContext ) : bool
IsoReadPipe ( byte PipeID, IntPtr Buffer, uint BufferLength, IntPtr Overlapped, KISO_CONTEXT IsoContext ) : bool
IsoReadPipe ( byte PipeID, IntPtr Buffer, uint BufferLength, KOVL_HANDLE Overlapped, KISO_CONTEXT IsoContext ) : bool
IsoWritePipe ( byte PipeID, Array Buffer, uint BufferLength, IntPtr Overlapped, KISO_CONTEXT IsoContext ) : bool
IsoWritePipe ( byte PipeID, Array Buffer, uint BufferLength, KOVL_HANDLE Overlapped, KISO_CONTEXT IsoContext ) : bool
IsoWritePipe ( byte PipeID, IntPtr Buffer, uint BufferLength, IntPtr Overlapped, KISO_CONTEXT IsoContext ) : bool
IsoWritePipe ( byte PipeID, IntPtr Buffer, uint BufferLength, KOVL_HANDLE Overlapped, KISO_CONTEXT IsoContext ) : bool
QueryDeviceInformation ( uint InformationType, uint &BufferLength, IntPtr Buffer ) : bool
QueryInterfaceSettings ( byte AltSettingNumber, USB_INTERFACE_DESCRIPTOR &UsbAltInterfaceDescriptor ) : bool
QueryPipe ( byte AltSettingNumber, byte PipeIndex, WINUSB_PIPE_INFORMATION &PipeInformation ) : bool
ReadPipe ( byte PipeID, Array Buffer, uint BufferLength, uint &LengthTransferred, IntPtr Overlapped ) : bool
ReadPipe ( byte PipeID, Array Buffer, uint BufferLength, uint &LengthTransferred, KOVL_HANDLE Overlapped ) : bool
ReadPipe ( byte PipeID, IntPtr Buffer, uint BufferLength, uint &LengthTransferred, IntPtr Overlapped ) : bool
ReadPipe ( byte PipeID, IntPtr Buffer, uint BufferLength, uint &LengthTransferred, KOVL_HANDLE Overlapped ) : bool
ReleaseInterface ( byte NumberOrIndex, bool IsIndex ) : bool
ResetDevice ( ) : bool
ResetPipe ( byte PipeID ) : bool
SelectInterface ( byte NumberOrIndex, bool IsIndex ) : bool
SetAltInterface ( byte NumberOrIndex, bool IsIndex, byte AltSettingNumber ) : bool
SetConfiguration ( byte ConfigurationNumber ) : bool
SetCurrentAlternateSetting ( byte AltSettingNumber ) : bool
SetPipePolicy ( byte PipeID, uint PolicyType, uint ValueLength, Array Value ) : bool
SetPipePolicy ( byte PipeID, uint PolicyType, uint ValueLength, IntPtr Value ) : bool
SetPowerPolicy ( uint PolicyType, uint ValueLength, Array Value ) : bool
SetPowerPolicy ( uint PolicyType, uint ValueLength, IntPtr Value ) : bool
UsbK ( IntPtr DeviceHandle, KUSB_DRVID driverID ) : System
UsbK ( KLST_DEVINFO_HANDLE DevInfo ) : System
WritePipe ( byte PipeID, Array Buffer, uint BufferLength, uint &LengthTransferred, IntPtr Overlapped ) : bool
WritePipe ( byte PipeID, Array Buffer, uint BufferLength, uint &LengthTransferred, KOVL_HANDLE Overlapped ) : bool
WritePipe ( byte PipeID, IntPtr Buffer, uint BufferLength, uint &LengthTransferred, IntPtr Overlapped ) : bool
WritePipe ( byte PipeID, IntPtr Buffer, uint BufferLength, uint &LengthTransferred, KOVL_HANDLE Overlapped ) : bool

Method Details

AbortPipe() public method

public AbortPipe ( byte PipeID ) : bool
PipeID byte
return bool

ClaimInterface() public method

public ClaimInterface ( byte NumberOrIndex, bool IsIndex ) : bool
NumberOrIndex byte
IsIndex bool
return bool

Clone() public method

public Clone ( KUSB_HANDLE &DstInterfaceHandle ) : bool
DstInterfaceHandle KUSB_HANDLE
return bool

ControlTransfer() public method

public ControlTransfer ( WINUSB_SETUP_PACKET SetupPacket, Array Buffer, uint BufferLength, uint &LengthTransferred, IntPtr Overlapped ) : bool
SetupPacket WINUSB_SETUP_PACKET
Buffer System.Array
BufferLength uint
LengthTransferred uint
Overlapped System.IntPtr
return bool

ControlTransfer() public method

public ControlTransfer ( WINUSB_SETUP_PACKET SetupPacket, Array Buffer, uint BufferLength, uint &LengthTransferred, KOVL_HANDLE Overlapped ) : bool
SetupPacket WINUSB_SETUP_PACKET
Buffer System.Array
BufferLength uint
LengthTransferred uint
Overlapped KOVL_HANDLE
return bool

ControlTransfer() public method

public ControlTransfer ( WINUSB_SETUP_PACKET SetupPacket, IntPtr Buffer, uint BufferLength, uint &LengthTransferred, IntPtr Overlapped ) : bool
SetupPacket WINUSB_SETUP_PACKET
Buffer System.IntPtr
BufferLength uint
LengthTransferred uint
Overlapped System.IntPtr
return bool

ControlTransfer() public method

public ControlTransfer ( WINUSB_SETUP_PACKET SetupPacket, IntPtr Buffer, uint BufferLength, uint &LengthTransferred, KOVL_HANDLE Overlapped ) : bool
SetupPacket WINUSB_SETUP_PACKET
Buffer System.IntPtr
BufferLength uint
LengthTransferred uint
Overlapped KOVL_HANDLE
return bool

FlushPipe() public method

public FlushPipe ( byte PipeID ) : bool
PipeID byte
return bool

Free() public method

public Free ( ) : bool
return bool

GetAltInterface() public method

public GetAltInterface ( byte NumberOrIndex, bool IsIndex, byte &AltSettingNumber ) : bool
NumberOrIndex byte
IsIndex bool
AltSettingNumber byte
return bool

GetAssociatedInterface() public method

public GetAssociatedInterface ( byte AssociatedInterfaceIndex, KUSB_HANDLE &AssociatedInterfaceHandle ) : bool
AssociatedInterfaceIndex byte
AssociatedInterfaceHandle KUSB_HANDLE
return bool

GetConfiguration() public method

public GetConfiguration ( byte &ConfigurationNumber ) : bool
ConfigurationNumber byte
return bool

GetCurrentAlternateSetting() public method

public GetCurrentAlternateSetting ( byte &AltSettingNumber ) : bool
AltSettingNumber byte
return bool

GetCurrentFrameNumber() public method

public GetCurrentFrameNumber ( uint &FrameNumber ) : bool
FrameNumber uint
return bool

GetDescriptor() public method

public GetDescriptor ( byte DescriptorType, byte Index, ushort LanguageID, Array Buffer, uint BufferLength, uint &LengthTransferred ) : bool
DescriptorType byte
Index byte
LanguageID ushort
Buffer System.Array
BufferLength uint
LengthTransferred uint
return bool

GetDescriptor() public method

public GetDescriptor ( byte DescriptorType, byte Index, ushort LanguageID, IntPtr Buffer, uint BufferLength, uint &LengthTransferred ) : bool
DescriptorType byte
Index byte
LanguageID ushort
Buffer System.IntPtr
BufferLength uint
LengthTransferred uint
return bool

GetOverlappedResult() public method

public GetOverlappedResult ( IntPtr Overlapped, uint &lpNumberOfBytesTransferred, bool bWait ) : bool
Overlapped System.IntPtr
lpNumberOfBytesTransferred uint
bWait bool
return bool

GetOverlappedResult() public method

public GetOverlappedResult ( KOVL_HANDLE Overlapped, uint &lpNumberOfBytesTransferred, bool bWait ) : bool
Overlapped KOVL_HANDLE
lpNumberOfBytesTransferred uint
bWait bool
return bool

GetPipePolicy() public method

public GetPipePolicy ( byte PipeID, uint PolicyType, uint &ValueLength, Array Value ) : bool
PipeID byte
PolicyType uint
ValueLength uint
Value System.Array
return bool

GetPipePolicy() public method

public GetPipePolicy ( byte PipeID, uint PolicyType, uint &ValueLength, IntPtr Value ) : bool
PipeID byte
PolicyType uint
ValueLength uint
Value System.IntPtr
return bool

GetPowerPolicy() public method

public GetPowerPolicy ( uint PolicyType, uint &ValueLength, Array Value ) : bool
PolicyType uint
ValueLength uint
Value System.Array
return bool

GetPowerPolicy() public method

public GetPowerPolicy ( uint PolicyType, uint &ValueLength, IntPtr Value ) : bool
PolicyType uint
ValueLength uint
Value System.IntPtr
return bool

GetProperty() public method

public GetProperty ( KUSB_PROPERTY PropertyType, uint &PropertySize, Array Value ) : bool
PropertyType KUSB_PROPERTY
PropertySize uint
Value System.Array
return bool

GetProperty() public method

public GetProperty ( KUSB_PROPERTY PropertyType, uint &PropertySize, IntPtr Value ) : bool
PropertyType KUSB_PROPERTY
PropertySize uint
Value System.IntPtr
return bool

IsoReadPipe() public method

public IsoReadPipe ( byte PipeID, Array Buffer, uint BufferLength, IntPtr Overlapped, KISO_CONTEXT IsoContext ) : bool
PipeID byte
Buffer System.Array
BufferLength uint
Overlapped System.IntPtr
IsoContext KISO_CONTEXT
return bool

IsoReadPipe() public method

public IsoReadPipe ( byte PipeID, Array Buffer, uint BufferLength, KOVL_HANDLE Overlapped, KISO_CONTEXT IsoContext ) : bool
PipeID byte
Buffer System.Array
BufferLength uint
Overlapped KOVL_HANDLE
IsoContext KISO_CONTEXT
return bool

IsoReadPipe() public method

public IsoReadPipe ( byte PipeID, IntPtr Buffer, uint BufferLength, IntPtr Overlapped, KISO_CONTEXT IsoContext ) : bool
PipeID byte
Buffer System.IntPtr
BufferLength uint
Overlapped System.IntPtr
IsoContext KISO_CONTEXT
return bool

IsoReadPipe() public method

public IsoReadPipe ( byte PipeID, IntPtr Buffer, uint BufferLength, KOVL_HANDLE Overlapped, KISO_CONTEXT IsoContext ) : bool
PipeID byte
Buffer System.IntPtr
BufferLength uint
Overlapped KOVL_HANDLE
IsoContext KISO_CONTEXT
return bool

IsoWritePipe() public method

public IsoWritePipe ( byte PipeID, Array Buffer, uint BufferLength, IntPtr Overlapped, KISO_CONTEXT IsoContext ) : bool
PipeID byte
Buffer System.Array
BufferLength uint
Overlapped System.IntPtr
IsoContext KISO_CONTEXT
return bool

IsoWritePipe() public method

public IsoWritePipe ( byte PipeID, Array Buffer, uint BufferLength, KOVL_HANDLE Overlapped, KISO_CONTEXT IsoContext ) : bool
PipeID byte
Buffer System.Array
BufferLength uint
Overlapped KOVL_HANDLE
IsoContext KISO_CONTEXT
return bool

IsoWritePipe() public method

public IsoWritePipe ( byte PipeID, IntPtr Buffer, uint BufferLength, IntPtr Overlapped, KISO_CONTEXT IsoContext ) : bool
PipeID byte
Buffer System.IntPtr
BufferLength uint
Overlapped System.IntPtr
IsoContext KISO_CONTEXT
return bool

IsoWritePipe() public method

public IsoWritePipe ( byte PipeID, IntPtr Buffer, uint BufferLength, KOVL_HANDLE Overlapped, KISO_CONTEXT IsoContext ) : bool
PipeID byte
Buffer System.IntPtr
BufferLength uint
Overlapped KOVL_HANDLE
IsoContext KISO_CONTEXT
return bool

QueryDeviceInformation() public method

public QueryDeviceInformation ( uint InformationType, uint &BufferLength, IntPtr Buffer ) : bool
InformationType uint
BufferLength uint
Buffer System.IntPtr
return bool

QueryInterfaceSettings() public method

public QueryInterfaceSettings ( byte AltSettingNumber, USB_INTERFACE_DESCRIPTOR &UsbAltInterfaceDescriptor ) : bool
AltSettingNumber byte
UsbAltInterfaceDescriptor USB_INTERFACE_DESCRIPTOR
return bool

QueryPipe() public method

public QueryPipe ( byte AltSettingNumber, byte PipeIndex, WINUSB_PIPE_INFORMATION &PipeInformation ) : bool
AltSettingNumber byte
PipeIndex byte
PipeInformation WINUSB_PIPE_INFORMATION
return bool

ReadPipe() public method

public ReadPipe ( byte PipeID, Array Buffer, uint BufferLength, uint &LengthTransferred, IntPtr Overlapped ) : bool
PipeID byte
Buffer System.Array
BufferLength uint
LengthTransferred uint
Overlapped System.IntPtr
return bool

ReadPipe() public method

public ReadPipe ( byte PipeID, Array Buffer, uint BufferLength, uint &LengthTransferred, KOVL_HANDLE Overlapped ) : bool
PipeID byte
Buffer System.Array
BufferLength uint
LengthTransferred uint
Overlapped KOVL_HANDLE
return bool

ReadPipe() public method

public ReadPipe ( byte PipeID, IntPtr Buffer, uint BufferLength, uint &LengthTransferred, IntPtr Overlapped ) : bool
PipeID byte
Buffer System.IntPtr
BufferLength uint
LengthTransferred uint
Overlapped System.IntPtr
return bool

ReadPipe() public method

public ReadPipe ( byte PipeID, IntPtr Buffer, uint BufferLength, uint &LengthTransferred, KOVL_HANDLE Overlapped ) : bool
PipeID byte
Buffer System.IntPtr
BufferLength uint
LengthTransferred uint
Overlapped KOVL_HANDLE
return bool

ReleaseInterface() public method

public ReleaseInterface ( byte NumberOrIndex, bool IsIndex ) : bool
NumberOrIndex byte
IsIndex bool
return bool

ResetDevice() public method

public ResetDevice ( ) : bool
return bool

ResetPipe() public method

public ResetPipe ( byte PipeID ) : bool
PipeID byte
return bool

SelectInterface() public method

public SelectInterface ( byte NumberOrIndex, bool IsIndex ) : bool
NumberOrIndex byte
IsIndex bool
return bool

SetAltInterface() public method

public SetAltInterface ( byte NumberOrIndex, bool IsIndex, byte AltSettingNumber ) : bool
NumberOrIndex byte
IsIndex bool
AltSettingNumber byte
return bool

SetConfiguration() public method

public SetConfiguration ( byte ConfigurationNumber ) : bool
ConfigurationNumber byte
return bool

SetCurrentAlternateSetting() public method

public SetCurrentAlternateSetting ( byte AltSettingNumber ) : bool
AltSettingNumber byte
return bool

SetPipePolicy() public method

public SetPipePolicy ( byte PipeID, uint PolicyType, uint ValueLength, Array Value ) : bool
PipeID byte
PolicyType uint
ValueLength uint
Value Array
return bool

SetPipePolicy() public method

public SetPipePolicy ( byte PipeID, uint PolicyType, uint ValueLength, IntPtr Value ) : bool
PipeID byte
PolicyType uint
ValueLength uint
Value IntPtr
return bool

SetPowerPolicy() public method

public SetPowerPolicy ( uint PolicyType, uint ValueLength, Array Value ) : bool
PolicyType uint
ValueLength uint
Value Array
return bool

SetPowerPolicy() public method

public SetPowerPolicy ( uint PolicyType, uint ValueLength, IntPtr Value ) : bool
PolicyType uint
ValueLength uint
Value IntPtr
return bool

UsbK() public method

public UsbK ( IntPtr DeviceHandle, KUSB_DRVID driverID ) : System
DeviceHandle IntPtr
driverID KUSB_DRVID
return System

UsbK() public method

public UsbK ( KLST_DEVINFO_HANDLE DevInfo ) : System
DevInfo KLST_DEVINFO_HANDLE
return System

WritePipe() public method

public WritePipe ( byte PipeID, Array Buffer, uint BufferLength, uint &LengthTransferred, IntPtr Overlapped ) : bool
PipeID byte
Buffer Array
BufferLength uint
LengthTransferred uint
Overlapped IntPtr
return bool

WritePipe() public method

public WritePipe ( byte PipeID, Array Buffer, uint BufferLength, uint &LengthTransferred, KOVL_HANDLE Overlapped ) : bool
PipeID byte
Buffer Array
BufferLength uint
LengthTransferred uint
Overlapped KOVL_HANDLE
return bool

WritePipe() public method

public WritePipe ( byte PipeID, IntPtr Buffer, uint BufferLength, uint &LengthTransferred, IntPtr Overlapped ) : bool
PipeID byte
Buffer IntPtr
BufferLength uint
LengthTransferred uint
Overlapped IntPtr
return bool

WritePipe() public method

public WritePipe ( byte PipeID, IntPtr Buffer, uint BufferLength, uint &LengthTransferred, KOVL_HANDLE Overlapped ) : bool
PipeID byte
Buffer IntPtr
BufferLength uint
LengthTransferred uint
Overlapped KOVL_HANDLE
return bool

Property Details

driverAPI protected_oe property

protected KUSB_DRIVER_API driverAPI
return KUSB_DRIVER_API

handle protected_oe property

protected KUSB_HANDLE handle
return KUSB_HANDLE