Click or drag to resize

USBPipe Class

UsbPipe represents a single pipe on a WinUSB device. A pipe is connected to a certain endpoint on the device and has a fixed direction (IN or OUT)
Inheritance Hierarchy
SystemObject
  MadWizard.WinUSBNetUSBPipe

Namespace:  MadWizard.WinUSBNet
Assembly:  WinUSBNet (in WinUSBNet.dll) Version: 2.0.0.0 (2.0.0.0)
Syntax
public class USBPipe

The USBPipe type exposes the following members.

Properties
  NameDescription
Public propertyAddress
Endpoint address including the direction in the most significant bit
Public propertyDevice
The USBDevice this pipe is associated with
Public propertyInterface
The interface associated with this pipe
Public propertyIsIn
True if the pipe has direction IN (device to host), false otherwise.
Public propertyIsOut
True if the pipe has direction OUT (host to device), false otherwise.
Public propertyMaximumPacketSize
Maximum packet size for transfers on this endpoint
Public propertyPolicy
The pipe policy settings for this pipe
Top
Methods
  NameDescription
Public methodAbort
Aborts all pending transfers for this pipe.
Public methodBeginRead
Initiates an asynchronous read operation on the pipe.
Public methodBeginWrite
Initiates an asynchronous write operation on the pipe.
Public methodEndRead
Waits for a pending asynchronous read operation to complete.
Public methodEndWrite
Waits for a pending asynchronous write operation to complete.
Public methodEquals (Inherited from Object.)
Protected methodFinalize (Inherited from Object.)
Public methodFlush
Flushes the pipe, discarding any data that is cached. Only available on IN direction pipes.
Public methodGetHashCode (Inherited from Object.)
Public methodGetType (Inherited from Object.)
Protected methodMemberwiseClone (Inherited from Object.)
Public methodRead(Byte)
Reads data from the pipe into a buffer.
Public methodRead(Byte, Int32, Int32)
Reads data from the pipe into a buffer.
Public methodToString (Inherited from Object.)
Public methodWrite(Byte)
Writes data from a buffer to the pipe.
Public methodWrite(Byte, Int32, Int32)
Writes data from a buffer to the pipe.
Top
See Also