UsbEndpointDescriptor 类
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
从终结点的 USB 终结点描述符派生信息,例如类型、方向和终结点编号。 此对象还会根据终结点的类型获取特定的终结点描述符。 有关终结点描述符的说明,请参阅通用串行总线规范中的 9.6.5 部分:
- 通用串行总线 3.0 规范中的表 9.18
- 通用串行总线规范 2.0 版 (表 9.13)
public ref class UsbEndpointDescriptor sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
class UsbEndpointDescriptor final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
public sealed class UsbEndpointDescriptor
Public NotInheritable Class UsbEndpointDescriptor
- 继承
- 属性
Windows 要求
| 设备系列 |
Windows 10 (在 10.0.10240.0 中引入)
|
| API contract |
Windows.Foundation.UniversalApiContract (在 v1.0 中引入)
|
属性
| AsBulkInEndpointDescriptor |
获取一个 对象,该对象表示 USB 批量 IN 终结点的终结点描述符。 |
| AsBulkOutEndpointDescriptor |
获取一个 对象,该对象表示 USB 批量 OUT 终结点的终结点描述符。 |
| AsInterruptInEndpointDescriptor |
获取一个 对象,该对象表示 USB 中断 IN 终结点的终结点描述符。 |
| AsInterruptOutEndpointDescriptor |
获取一个 对象,该对象表示 USB 中断 OUT 终结点的终结点描述符。 |
| Direction |
获取 USB 终结点的方向。 |
| EndpointNumber |
获取 USB 终结点编号。 |
| EndpointType |
获取 USB 终结点的类型。 |
方法
| Parse(UsbDescriptor) |
分析指定的 USB 描述符,并在 UsbEndpointDescriptor 对象中返回 USB 终结点描述符。 |
| TryParse(UsbDescriptor, UsbEndpointDescriptor) |
检索 UsbDescriptor 对象中包含的 UsbEndpointDescriptor 对象中的 USB 终结点描述 符 。 |