C# Class LibUsbDotNet.WinUsb.Internal.WinUsbAPI

Inheritance: LibUsbDotNet.Internal.UsbApiBase
Datei anzeigen Open project: arvydas/BlinkStickDotNet

Public Methods

Method Description
AbortPipe ( SafeHandle InterfaceHandle, byte PipeID ) : bool
ControlTransfer ( SafeHandle InterfaceHandle, UsbSetupPacket SetupPacket, IntPtr Buffer, int BufferLength, int &LengthTransferred ) : bool
FlushPipe ( SafeHandle InterfaceHandle, byte PipeID ) : bool
GetDescriptor ( SafeHandle InterfaceHandle, byte DescriptorType, byte Index, ushort LanguageID, IntPtr Buffer, int BufferLength, int &LengthTransferred ) : bool
GetOverlappedResult ( SafeHandle InterfaceHandle, IntPtr pOVERLAPPED, int &numberOfBytesTransferred, bool Wait ) : bool
ReadPipe ( UsbEndpointBase endPointBase, IntPtr pBuffer, int BufferLength, int &LengthTransferred, int isoPacketSize, IntPtr pOVERLAPPED ) : bool
ResetPipe ( SafeHandle InterfaceHandle, byte PipeID ) : bool
WritePipe ( UsbEndpointBase endPointBase, IntPtr pBuffer, int BufferLength, int &LengthTransferred, int isoPacketSize, IntPtr pOVERLAPPED ) : bool

Private Methods

Method Description
OpenDevice ( SafeFileHandle &sfhDevice, string DevicePath ) : bool
WinUsb_AbortPipe ( [ InterfaceHandle, byte PipeID ) : bool
WinUsb_ControlTransfer ( [ InterfaceHandle, [ SetupPacket, IntPtr Buffer, int BufferLength, int &LengthTransferred, IntPtr pOVERLAPPED ) : bool
WinUsb_FlushPipe ( [ InterfaceHandle, byte PipeID ) : bool
WinUsb_Free ( [ InterfaceHandle ) : bool
WinUsb_GetAssociatedInterface ( [ InterfaceHandle, byte AssociatedInterfaceIndex, IntPtr &AssociatedInterfaceHandle ) : bool
WinUsb_GetCurrentAlternateSetting ( [ InterfaceHandle, byte &SettingNumber ) : bool
WinUsb_GetDescriptor ( [ InterfaceHandle, byte DescriptorType, byte Index, ushort LanguageID, IntPtr Buffer, int BufferLength, int &LengthTransferred ) : bool
WinUsb_GetOverlappedResult ( [ InterfaceHandle, IntPtr pOVERLAPPED, int &lpNumberOfBytesTransferred, bool Wait ) : bool
WinUsb_GetPipePolicy ( [ InterfaceHandle, byte PipeID, PipePolicyType policyType, int &ValueLength, IntPtr Value ) : bool
WinUsb_GetPowerPolicy ( [ InterfaceHandle, PowerPolicyType policyType, int &ValueLength, IntPtr Value ) : bool
WinUsb_Initialize ( [ DeviceHandle, [ InterfaceHandle ) : bool
WinUsb_QueryDeviceInformation ( [ InterfaceHandle, DeviceInformationTypes InformationType, int &BufferLength, [ Buffer ) : bool
WinUsb_QueryInterfaceSettings ( [ InterfaceHandle, byte AlternateInterfaceNumber, [ UsbAltInterfaceDescriptor ) : bool
WinUsb_QueryPipe ( [ InterfaceHandle, byte AlternateInterfaceNumber, byte PipeIndex, [ PipeInformation ) : bool
WinUsb_ReadPipe ( [ InterfaceHandle, byte PipeID, Byte Buffer, int BufferLength, int &LengthTransferred, IntPtr pOVERLAPPED ) : bool
WinUsb_ReadPipe ( [ InterfaceHandle, byte PipeID, IntPtr pBuffer, int BufferLength, int &LengthTransferred, IntPtr pOVERLAPPED ) : bool
WinUsb_ResetPipe ( [ InterfaceHandle, byte PipeID ) : bool
WinUsb_SetPipePolicy ( [ InterfaceHandle, byte PipeID, PipePolicyType policyType, int ValueLength, IntPtr Value ) : bool
WinUsb_SetPowerPolicy ( [ InterfaceHandle, PowerPolicyType policyType, int ValueLength, IntPtr Value ) : bool
WinUsb_WritePipe ( [ InterfaceHandle, byte PipeID, Byte Buffer, int BufferLength, int &LengthTransferred, IntPtr pOVERLAPPED ) : bool
WinUsb_WritePipe ( [ InterfaceHandle, byte PipeID, IntPtr pBuffer, int BufferLength, int &LengthTransferred, IntPtr pOVERLAPPED ) : bool

Method Details

AbortPipe() public method

public AbortPipe ( SafeHandle InterfaceHandle, byte PipeID ) : bool
InterfaceHandle System.Runtime.InteropServices.SafeHandle
PipeID byte
return bool

ControlTransfer() public method

public ControlTransfer ( SafeHandle InterfaceHandle, UsbSetupPacket SetupPacket, IntPtr Buffer, int BufferLength, int &LengthTransferred ) : bool
InterfaceHandle System.Runtime.InteropServices.SafeHandle
SetupPacket LibUsbDotNet.Main.UsbSetupPacket
Buffer System.IntPtr
BufferLength int
LengthTransferred int
return bool

FlushPipe() public method

public FlushPipe ( SafeHandle InterfaceHandle, byte PipeID ) : bool
InterfaceHandle System.Runtime.InteropServices.SafeHandle
PipeID byte
return bool

GetDescriptor() public method

public GetDescriptor ( SafeHandle InterfaceHandle, byte DescriptorType, byte Index, ushort LanguageID, IntPtr Buffer, int BufferLength, int &LengthTransferred ) : bool
InterfaceHandle System.Runtime.InteropServices.SafeHandle
DescriptorType byte
Index byte
LanguageID ushort
Buffer System.IntPtr
BufferLength int
LengthTransferred int
return bool

GetOverlappedResult() public method

public GetOverlappedResult ( SafeHandle InterfaceHandle, IntPtr pOVERLAPPED, int &numberOfBytesTransferred, bool Wait ) : bool
InterfaceHandle System.Runtime.InteropServices.SafeHandle
pOVERLAPPED System.IntPtr
numberOfBytesTransferred int
Wait bool
return bool

ReadPipe() public method

public ReadPipe ( UsbEndpointBase endPointBase, IntPtr pBuffer, int BufferLength, int &LengthTransferred, int isoPacketSize, IntPtr pOVERLAPPED ) : bool
endPointBase LibUsbDotNet.Main.UsbEndpointBase
pBuffer System.IntPtr
BufferLength int
LengthTransferred int
isoPacketSize int
pOVERLAPPED System.IntPtr
return bool

ResetPipe() public method

public ResetPipe ( SafeHandle InterfaceHandle, byte PipeID ) : bool
InterfaceHandle System.Runtime.InteropServices.SafeHandle
PipeID byte
return bool

WritePipe() public method

public WritePipe ( UsbEndpointBase endPointBase, IntPtr pBuffer, int BufferLength, int &LengthTransferred, int isoPacketSize, IntPtr pOVERLAPPED ) : bool
endPointBase LibUsbDotNet.Main.UsbEndpointBase
pBuffer System.IntPtr
BufferLength int
LengthTransferred int
isoPacketSize int
pOVERLAPPED System.IntPtr
return bool