Share via


UsbReadOptions Enum

Definition

Defines constants for configuration flags that can be set for a USB pipe that the host opens for a USB bulk IN endpoint.

This enumeration supports a bitwise combination of its member values.

public enum class UsbReadOptions
/// [System.Flags]
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
enum class UsbReadOptions
[System.Flags]
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
public enum UsbReadOptions
var value = Windows.Devices.Usb.UsbReadOptions.none
Public Enum UsbReadOptions
Inheritance
UsbReadOptions
Attributes

Windows requirements

Device family
Windows 10 (introduced in 10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v1.0)

Fields

Name Value Description
None 0

Clear all flags.

AutoClearStall 1

Automatically clears a stalled pipe without stopping the data flow.

OverrideAutomaticBufferManagement 2

Bypasses queuing and error handling to boost performance for multiple read requests. Read operations must be done in multiples of MaxPacketSize.

IgnoreShortPacket 4

The host does not complete a read request when a short packet is received. The read request is completed only when an error occurs, the request is canceled, or all requested bytes have been read.

AllowPartialReads 8

Allows read requests from a device that returns more data than requested by the caller.

Applies to