IOUSBGetEndpointMaxStreamsEncoded(_:_:_:)
Obtains the number of streams that an endpoint supports.
Declaration
func IOUSBGetEndpointMaxStreamsEncoded(_ usbDeviceSpeed: UInt32, _ descriptor: UnsafePointer<IOUSBEndpointDescriptor>!, _ companionDescriptor: UnsafePointer<IOUSBSuperSpeedEndpointCompanionDescriptor>!) -> UInt32Parameters
- usbDeviceSpeed:
The operational speed of the device.
- descriptor:
The endpoint descriptor to parse.
- companionDescriptor:
The companion descriptor to parse.
Return Value
The encoded number of streams.
Discussion
This method parses endpoint descriptors and returns the number of supported streams as n in (2^n).
See Also
Endpoint Descriptor Parsing
IOUSBGetNextEndpointDescriptor(_:_:_:)IOUSBGetEndpointDirection(_:)IOUSBGetEndpointAddress(_:)IOUSBGetEndpointNumber(_:)IOUSBGetEndpointType(_:)IOUSBGetEndpointMaxPacketSize(_:_:)IOUSBGetEndpointIntervalEncodedMicroframes(_:_:)IOUSBGetEndpointIntervalMicroframes(_:_:)IOUSBGetEndpointIntervalFrames(_:_:)IOUSBGetEndpointMaxStreams(_:_:_:)