Usb​Endpoint​Descriptor Usb​Endpoint​Descriptor Usb​Endpoint​Descriptor Usb​Endpoint​Descriptor Class

Definition

Derives information from the USB endpoint descriptor of the endpoint, such as type, direction, and endpoint number. This object also gets the specific endpoint descriptors based on the type of endpoint. For an explanation of an endpoint descriptor, see Section 9.6.5 in the Universal Serial Bus Specification:

  • Table 9.18 in the Universal Serial Bus 3.0 Specification
  • Table 9.13 in the Universal Serial Bus Specification (version 2.0)
public : sealed class UsbEndpointDescriptor : IUsbEndpointDescriptorpublic sealed class UsbEndpointDescriptor : IUsbEndpointDescriptorPublic NotInheritable Class UsbEndpointDescriptor Implements IUsbEndpointDescriptor// You can use this class in JavaScript.
Attributes
Windows 10 requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

Properties

AsBulkInEndpointDescriptor AsBulkInEndpointDescriptor AsBulkInEndpointDescriptor AsBulkInEndpointDescriptor

Gets an object that represents the endpoint descriptor for the USB bulk IN endpoint.

public : UsbBulkInEndpointDescriptor AsBulkInEndpointDescriptor { get; }public UsbBulkInEndpointDescriptor AsBulkInEndpointDescriptor { get; }Public ReadOnly Property AsBulkInEndpointDescriptor As UsbBulkInEndpointDescriptor// You can use this property in JavaScript.

AsBulkOutEndpointDescriptor AsBulkOutEndpointDescriptor AsBulkOutEndpointDescriptor AsBulkOutEndpointDescriptor

Gets an object that represents the endpoint descriptor for the USB bulk OUT endpoint.

public : UsbBulkOutEndpointDescriptor AsBulkOutEndpointDescriptor { get; }public UsbBulkOutEndpointDescriptor AsBulkOutEndpointDescriptor { get; }Public ReadOnly Property AsBulkOutEndpointDescriptor As UsbBulkOutEndpointDescriptor// You can use this property in JavaScript.

AsInterruptInEndpointDescriptor AsInterruptInEndpointDescriptor AsInterruptInEndpointDescriptor AsInterruptInEndpointDescriptor

Gets an object that represents the endpoint descriptor for the USB interrupt IN endpoint.

public : UsbInterruptInEndpointDescriptor AsInterruptInEndpointDescriptor { get; }public UsbInterruptInEndpointDescriptor AsInterruptInEndpointDescriptor { get; }Public ReadOnly Property AsInterruptInEndpointDescriptor As UsbInterruptInEndpointDescriptor// You can use this property in JavaScript.

AsInterruptOutEndpointDescriptor AsInterruptOutEndpointDescriptor AsInterruptOutEndpointDescriptor AsInterruptOutEndpointDescriptor

Gets an object that represents the endpoint descriptor for the USB interrupt OUT endpoint.

public : UsbInterruptOutEndpointDescriptor AsInterruptOutEndpointDescriptor { get; }public UsbInterruptOutEndpointDescriptor AsInterruptOutEndpointDescriptor { get; }Public ReadOnly Property AsInterruptOutEndpointDescriptor As UsbInterruptOutEndpointDescriptor// You can use this property in JavaScript.

Direction Direction Direction Direction

Gets the direction of the USB endpoint.

public : UsbTransferDirection Direction { get; }public UsbTransferDirection Direction { get; }Public ReadOnly Property Direction As UsbTransferDirection// You can use this property in JavaScript.
Value
UsbTransferDirection UsbTransferDirection UsbTransferDirection UsbTransferDirection

A UsbTransferDirection value that indicates the direction of the endpoint. This value is Bit 7 of the bEndpointAddress field of an endpoint descriptor. For information, see Table 9-13 in the Universal Serial Bus Specification (version 2.0) or Table 9-18 in the Universal Serial Bus 3.0 Specification.

EndpointNumber EndpointNumber EndpointNumber EndpointNumber

Gets the USB endpoint number.

public : byte EndpointNumber { get; }public byte EndpointNumber { get; }Public ReadOnly Property EndpointNumber As byte// You can use this property in JavaScript.
Value
byte byte byte byte

The USB endpoint number. That number is in Bit 3...0 of the bEndpointAddress field of an endpoint descriptor. For information, see Table 9-13 in the Universal Serial Bus Specification (version 2.0) or Table 9-18 in the Universal Serial Bus 3.0 Specification.

EndpointType EndpointType EndpointType EndpointType

Gets the type of USB endpoint.

public : UsbEndpointType EndpointType { get; }public UsbEndpointType EndpointType { get; }Public ReadOnly Property EndpointType As UsbEndpointType// You can use this property in JavaScript.
Value
UsbEndpointType UsbEndpointType UsbEndpointType UsbEndpointType

A UsbEndpointType constant that indicates the type of USB endpoint. This value is Bit 1...0 of the bmAttributes field of an endpoint descriptor. For information, see Table 9-13 in the Universal Serial Bus Specification (version 2.0) or Table 9-18 in the Universal Serial Bus 3.0 Specification.

Methods

Parse(UsbDescriptor) Parse(UsbDescriptor) Parse(UsbDescriptor) Parse(UsbDescriptor)

Parses the specified USB descriptor and returns the USB endpoint descriptor in a UsbEndpointDescriptor object.

public : static UsbEndpointDescriptor Parse(UsbDescriptor descriptor)public static UsbEndpointDescriptor Parse(UsbDescriptor descriptor)Public Static Function Parse(descriptor As UsbDescriptor) As UsbEndpointDescriptor// You can use this method in JavaScript.
Parameters
descriptor
UsbDescriptor UsbDescriptor UsbDescriptor UsbDescriptor

A UsbDescriptor object that contains the USB endpoint descriptor.

Returns

TryParse(UsbDescriptor, UsbEndpointDescriptor) TryParse(UsbDescriptor, UsbEndpointDescriptor) TryParse(UsbDescriptor, UsbEndpointDescriptor) TryParse(UsbDescriptor, UsbEndpointDescriptor)

Retrieves the USB endpoint descriptor in a UsbEndpointDescriptor object that is contained in a UsbDescriptor object.

public : static PlatForm::Boolean TryParse(UsbDescriptor descriptor, UsbEndpointDescriptor parsed)public static bool TryParse(UsbDescriptor descriptor, UsbEndpointDescriptor parsed)Public Static Function TryParse(descriptor As UsbDescriptor, parsed As UsbEndpointDescriptor) As bool// You can use this method in JavaScript.
Parameters
Returns
PlatForm::Boolean bool bool bool

True, if the specified UsbDescriptor object is a USB endpoint descriptor. Otherwise, false.