C# Class LibUsbDotNet.Internal.UsbApiBase

Mostrar archivo Open project: arvydas/BlinkStickDotNet Class Usage Examples

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

Method Details

AbortPipe() public abstract method

public abstract AbortPipe ( SafeHandle interfaceHandle, byte pipeID ) : bool
interfaceHandle System.Runtime.InteropServices.SafeHandle
pipeID byte
return bool

ControlTransfer() public abstract method

public abstract 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 abstract method

public abstract FlushPipe ( SafeHandle interfaceHandle, byte pipeID ) : bool
interfaceHandle System.Runtime.InteropServices.SafeHandle
pipeID byte
return bool

GetDescriptor() public abstract method

public abstract 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 abstract method

public abstract 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 abstract method

public abstract 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 abstract method

public abstract ResetPipe ( SafeHandle interfaceHandle, byte pipeID ) : bool
interfaceHandle System.Runtime.InteropServices.SafeHandle
pipeID byte
return bool

WritePipe() public abstract method

public abstract 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