Click or drag to resize

USBPipePolicy Class

Describes the policy for a specific USB pipe
Inheritance Hierarchy
SystemObject
  MadWizard.WinUSBNetUSBPipePolicy

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

The USBPipePolicy type exposes the following members.

Properties
  NameDescription
Public propertyAllowPartialReads
When false, read requests fail when the device returns more data than requested. When true, extra data is saved and returned on the next read. Default value is true. Only available on IN direction pipes.
Public propertyAutoClearStall
When true, the driver fails stalled data transfers, but the driver clears the stall condition automatically. Default value is false.
Public propertyAutoFlush
If both AllowPartialReads and AutoFlush are true, when the device returns more data than requested by the client it will discard the remaining data. Default value is false. Only available on IN direction pipes.
Public propertyIgnoreShortPackets
When true, read operations are completed only when the number of bytes requested by the client has been received. Default value is false. Only available on IN direction pipes.
Public propertyPipeTransferTimeout
Specifies the timeout in milliseconds for pipe operations. If an operation does not finish within the specified time it will fail. When set to zero, no timeout is used. Default value is zero.
Public propertyRawIO
When true, read and write operations to the pipe must have a buffer length that is a multiple of the maximum endpoint packet size, and the length must be less than the maximum transfer size. With these conditions met, data is sent directly to the USB driver stack, bypassing the queuing and error handling of WinUSB. Default value is false.
Public propertyShortPacketTerminate
When true, every write request that is a multiple of the maximum packet size for the endpoint is terminated with a zero-length packet. Default value is false. Only available on OUT direction pipes.
Top
Methods
  NameDescription
Public methodEquals (Inherited from Object.)
Protected methodFinalize (Inherited from Object.)
Public methodGetHashCode (Inherited from Object.)
Public methodGetType (Inherited from Object.)
Protected methodMemberwiseClone (Inherited from Object.)
Public methodToString (Inherited from Object.)
Top
See Also