IOUSBGetEndpointMaxStreams
Extracts the number of streams an endpoint supports.
Declaration
uint32_t IOUSBGetEndpointMaxStreams(uint32_t usbDeviceSpeed, const IOUSBEndpointDescriptor *descriptor, const IOUSBSuperSpeedEndpointCompanionDescriptor *companionDescriptor);Parameters
- usbDeviceSpeed:
The operational speed of the device.
- descriptor:
The endpoint descriptor to parse.
- companionDescriptor:
The companion descriptor to parse.
Return Value
The number of streams.
Discussion
This method parses endpoint descriptors and returns the number of streams supported.
See Also
Endpoint Descriptors
IOUSBGetNextEndpointDescriptorIOUSBGetEndpointAddressIOUSBGetEndpointBurstSizeIOUSBGetEndpointDirectionIOUSBGetEndpointIntervalEncodedMicroframesIOUSBGetEndpointIntervalFramesIOUSBGetEndpointIntervalMicroframesIOUSBGetEndpointMaxPacketSizeIOUSBGetEndpointMaxStreamsEncodedIOUSBGetEndpointMultIOUSBGetEndpointNumberIOUSBGetEndpointType