Skip to main content
UsbInterruptInEndpointDescriptor.MaxPacketSize | maxPacketSize property

Applies to Windows only

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

Syntax


var maxPacketSize = usbInterruptInEndpointDescriptor.maxPacketSize;

public uint MaxPacketSize { get; }

Public ReadOnly Property MaxPacketSize As UInteger

public:
property unsigned int MaxPacketSize { 
   unsigned int get();
}

Property value

Type: Number [JavaScript] | System.UInt32 [.NET] | uint32 [C++]

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

Remarks

The MaxPacketSize property value does not necessarily indicate the number of bytes that will be read at a time, in one interval.

Requirements

Minimum supported client

Windows 8.1

Minimum supported server

Windows Server 2012 R2

Minimum supported phone

None supported

Namespace

Windows.Devices.Usb
Windows::Devices::Usb [C++]

Metadata

Windows.winmd

See also

UsbInterruptInEndpointDescriptor