UsbWriteOptions 枚举

定义

定义可为主机为 USB OUT 终结点打开的 USB 管道设置的配置标志的常量。

此枚举支持其成员值的按位组合。

public enum class UsbWriteOptions
/// [System.Flags]
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
enum class UsbWriteOptions
[System.Flags]
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
public enum UsbWriteOptions
var value = Windows.Devices.Usb.UsbWriteOptions.none
Public Enum UsbWriteOptions
继承
UsbWriteOptions
属性

Windows 要求

设备系列
Windows 10 (在 10.0.10240.0 中引入)
API contract
Windows.Foundation.UniversalApiContract (在 v1.0 中引入)

字段

AutoClearStall 1

在不停止数据流的情况下自动清除已停止的管道。

None 0

清除所有标志。

ShortPacketTerminate 2

为写入请求发送零长度数据包,其中缓冲区是终结点支持的最大数据包大小的倍数。

适用于