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
Attributes
Windows 10 requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

Properties

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
Attributes

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
Attributes

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
Attributes

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
Attributes

Direction Direction Direction

Gets the direction of the USB endpoint.

public : UsbTransferDirection Direction { get; }public UsbTransferDirection Direction { get; }Public ReadOnly Property Direction As UsbTransferDirection
Value
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.

Attributes

EndpointNumber EndpointNumber EndpointNumber

Gets the USB endpoint number.

public : byte EndpointNumber { get; }public byte EndpointNumber { get; }Public ReadOnly Property EndpointNumber As byte
Value
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.

Attributes

EndpointType EndpointType EndpointType

Gets the type of USB endpoint.

public : UsbEndpointType EndpointType { get; }public UsbEndpointType EndpointType { get; }Public ReadOnly Property EndpointType As UsbEndpointType
Value
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.

Attributes

Methods

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
Parameters
descriptor
UsbDescriptor UsbDescriptor UsbDescriptor

A UsbDescriptor object that contains the USB endpoint descriptor.

Returns

A UsbEndpointDescriptor object that contains the USB endpoint descriptor.

Attributes

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
Parameters
descriptor
UsbDescriptor UsbDescriptor UsbDescriptor

The UsbDescriptor object to parse.

Returns
PlatForm::Boolean bool bool

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

Attributes