C# Класс LibUsbDotNet.WinUsb.Internal.WinUsbAPI

Наследование: LibUsbDotNet.Internal.UsbApiBase
Показать файл Открыть проект

Открытые методы

Метод Описание
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

Приватные методы

Метод Описание
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

Описание методов

AbortPipe() публичный Метод

public AbortPipe ( SafeHandle InterfaceHandle, byte PipeID ) : bool
InterfaceHandle System.Runtime.InteropServices.SafeHandle
PipeID byte
Результат bool

ControlTransfer() публичный Метод

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
Результат bool

FlushPipe() публичный Метод

public FlushPipe ( SafeHandle InterfaceHandle, byte PipeID ) : bool
InterfaceHandle System.Runtime.InteropServices.SafeHandle
PipeID byte
Результат bool

GetDescriptor() публичный Метод

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
Результат bool

GetOverlappedResult() публичный Метод

public GetOverlappedResult ( SafeHandle InterfaceHandle, IntPtr pOVERLAPPED, int &numberOfBytesTransferred, bool Wait ) : bool
InterfaceHandle System.Runtime.InteropServices.SafeHandle
pOVERLAPPED System.IntPtr
numberOfBytesTransferred int
Wait bool
Результат bool

ReadPipe() публичный Метод

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
Результат bool

ResetPipe() публичный Метод

public ResetPipe ( SafeHandle InterfaceHandle, byte PipeID ) : bool
InterfaceHandle System.Runtime.InteropServices.SafeHandle
PipeID byte
Результат bool

WritePipe() публичный Метод

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
Результат bool