C# 클래스 libusbK.UsbK

상속: IDisposable
파일 보기 프로젝트 열기: nikkov/Win-Widget 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
driverAPI KUSB_DRIVER_API
handle KUSB_HANDLE

공개 메소드들

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

메소드 상세

AbortPipe() 공개 메소드

public AbortPipe ( byte PipeID ) : bool
PipeID byte
리턴 bool

ClaimInterface() 공개 메소드

public ClaimInterface ( byte NumberOrIndex, bool IsIndex ) : bool
NumberOrIndex byte
IsIndex bool
리턴 bool

Clone() 공개 메소드

public Clone ( KUSB_HANDLE &DstInterfaceHandle ) : bool
DstInterfaceHandle KUSB_HANDLE
리턴 bool

ControlTransfer() 공개 메소드

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
리턴 bool

ControlTransfer() 공개 메소드

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
리턴 bool

ControlTransfer() 공개 메소드

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
리턴 bool

ControlTransfer() 공개 메소드

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
리턴 bool

FlushPipe() 공개 메소드

public FlushPipe ( byte PipeID ) : bool
PipeID byte
리턴 bool

Free() 공개 메소드

public Free ( ) : bool
리턴 bool

GetAltInterface() 공개 메소드

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

GetAssociatedInterface() 공개 메소드

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

GetConfiguration() 공개 메소드

public GetConfiguration ( byte &ConfigurationNumber ) : bool
ConfigurationNumber byte
리턴 bool

GetCurrentAlternateSetting() 공개 메소드

public GetCurrentAlternateSetting ( byte &AltSettingNumber ) : bool
AltSettingNumber byte
리턴 bool

GetCurrentFrameNumber() 공개 메소드

public GetCurrentFrameNumber ( uint &FrameNumber ) : bool
FrameNumber uint
리턴 bool

GetDescriptor() 공개 메소드

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
리턴 bool

GetDescriptor() 공개 메소드

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
리턴 bool

GetOverlappedResult() 공개 메소드

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

GetOverlappedResult() 공개 메소드

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

GetPipePolicy() 공개 메소드

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

GetPipePolicy() 공개 메소드

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

GetPowerPolicy() 공개 메소드

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

GetPowerPolicy() 공개 메소드

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

GetProperty() 공개 메소드

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

GetProperty() 공개 메소드

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

IsoReadPipe() 공개 메소드

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
리턴 bool

IsoReadPipe() 공개 메소드

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
리턴 bool

IsoReadPipe() 공개 메소드

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
리턴 bool

IsoReadPipe() 공개 메소드

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
리턴 bool

IsoWritePipe() 공개 메소드

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
리턴 bool

IsoWritePipe() 공개 메소드

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
리턴 bool

IsoWritePipe() 공개 메소드

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
리턴 bool

IsoWritePipe() 공개 메소드

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
리턴 bool

QueryDeviceInformation() 공개 메소드

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

QueryInterfaceSettings() 공개 메소드

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

QueryPipe() 공개 메소드

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

ReadPipe() 공개 메소드

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
리턴 bool

ReadPipe() 공개 메소드

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
리턴 bool

ReadPipe() 공개 메소드

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
리턴 bool

ReadPipe() 공개 메소드

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
리턴 bool

ReleaseInterface() 공개 메소드

public ReleaseInterface ( byte NumberOrIndex, bool IsIndex ) : bool
NumberOrIndex byte
IsIndex bool
리턴 bool

ResetDevice() 공개 메소드

public ResetDevice ( ) : bool
리턴 bool

ResetPipe() 공개 메소드

public ResetPipe ( byte PipeID ) : bool
PipeID byte
리턴 bool

SelectInterface() 공개 메소드

public SelectInterface ( byte NumberOrIndex, bool IsIndex ) : bool
NumberOrIndex byte
IsIndex bool
리턴 bool

SetAltInterface() 공개 메소드

public SetAltInterface ( byte NumberOrIndex, bool IsIndex, byte AltSettingNumber ) : bool
NumberOrIndex byte
IsIndex bool
AltSettingNumber byte
리턴 bool

SetConfiguration() 공개 메소드

public SetConfiguration ( byte ConfigurationNumber ) : bool
ConfigurationNumber byte
리턴 bool

SetCurrentAlternateSetting() 공개 메소드

public SetCurrentAlternateSetting ( byte AltSettingNumber ) : bool
AltSettingNumber byte
리턴 bool

SetPipePolicy() 공개 메소드

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

SetPipePolicy() 공개 메소드

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

SetPowerPolicy() 공개 메소드

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

SetPowerPolicy() 공개 메소드

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

UsbK() 공개 메소드

public UsbK ( IntPtr DeviceHandle, KUSB_DRVID driverID ) : System
DeviceHandle IntPtr
driverID KUSB_DRVID
리턴 System

UsbK() 공개 메소드

public UsbK ( KLST_DEVINFO_HANDLE DevInfo ) : System
DevInfo KLST_DEVINFO_HANDLE
리턴 System

WritePipe() 공개 메소드

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

WritePipe() 공개 메소드

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
리턴 bool

WritePipe() 공개 메소드

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

WritePipe() 공개 메소드

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
리턴 bool

프로퍼티 상세

driverAPI 보호되어 있는 프로퍼티

protected KUSB_DRIVER_API driverAPI
리턴 KUSB_DRIVER_API

handle 보호되어 있는 프로퍼티

protected KUSB_HANDLE handle
리턴 KUSB_HANDLE