IOUSBGetEndpointMaxPacketSize(_:_:)
Obtains the maximum packet size from an endpoint descriptor.
Declaration
func IOUSBGetEndpointMaxPacketSize(_ usbDeviceSpeed: UInt32, _ descriptor: UnsafePointer<IOUSBEndpointDescriptor>!) -> UInt16Parameters
- usbDeviceSpeed:
The operational speed of the device.
- descriptor:
The endpoint descriptor to parse.
Return Value
The maximum packet size in bytes.
Discussion
This method parses an endpoint descriptor to determine its maximum packet size, which doesn’t include mult or burst factors.
See Also
Endpoint Descriptor Parsing
IOUSBGetNextEndpointDescriptor(_:_:_:)IOUSBGetEndpointDirection(_:)IOUSBGetEndpointAddress(_:)IOUSBGetEndpointNumber(_:)IOUSBGetEndpointType(_:)IOUSBGetEndpointIntervalEncodedMicroframes(_:_:)IOUSBGetEndpointIntervalMicroframes(_:_:)IOUSBGetEndpointIntervalFrames(_:_:)IOUSBGetEndpointMaxStreamsEncoded(_:_:_:)IOUSBGetEndpointMaxStreams(_:_:_:)