UsbBulkInEndpointDescriptor UsbBulkInEndpointDescriptor UsbBulkInEndpointDescriptor Class

Definition

The endpoint descriptor for a USB bulk IN endpoint. The descriptor specifies the endpoint type, direction, number and also the maximum number of bytes that can be read from the endpoint, in a single transfer.

public sealed class UsbBulkInEndpointDescriptor : IUsbBulkInEndpointDescriptorpublic sealed class UsbBulkInEndpointDescriptor : IUsbBulkInEndpointDescriptorPublic NotInheritable Class UsbBulkInEndpointDescriptor Implements IUsbBulkInEndpointDescriptor
Attributes
Windows 10 requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

Remarks

JavaScript (Usage)

var descriptorBulkInEp = device.defaultInterface.descriptors.getAt(1);
var usbEndpointDescriptor = Windows.Devices.Usb.UsbEndpointDescriptor.parse(descriptorBulkInEp);
var usbBulkInEndpointDescriptor = usbEndpointDescriptor.asBulkInEndpointDescriptor();

Properties

EndpointNumber EndpointNumber EndpointNumber

Gets the USB endpoint number of the bulk IN endpoint.

public byte EndpointNumber { get; }public byte EndpointNumber { get; }Public ReadOnly Property EndpointNumber As byte
Value
byte byte byte

The endpoint number of the bulk IN endpoint. 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

MaxPacketSize MaxPacketSize MaxPacketSize

Gets the maximum number of bytes that can be sent to or received from this endpoint, in a single packet.

public uint MaxPacketSize { get; }public uint MaxPacketSize { get; }Public ReadOnly Property MaxPacketSize As uint
Value
uint uint uint

Indicates the maximum packet size of the endpoint. This value is derived from the wMaxPacketSize field value of the 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

Pipe Pipe Pipe

Gets the object that represents the pipe that the host opens to communicate with the bulk IN endpoint.

public UsbBulkInPipe Pipe { get; }public UsbBulkInPipe Pipe { get; }Public ReadOnly Property Pipe As UsbBulkInPipe
Value
UsbBulkInPipe UsbBulkInPipe UsbBulkInPipe

An UsbBulkInPipe object that is the pipe for the bulk IN endpoint.

Attributes

Remarks

If the alternate setting, which defines this bulk endpoint, is not currently selected, the property returns NULL.