Contents

IOUSBGetSuperSpeedDeviceCapabilityDescriptor(_:)

Obtains the first SuperSpeed capability descriptor in a BOS descriptor.

Declaration

func IOUSBGetSuperSpeedDeviceCapabilityDescriptor(_ bosDescriptor: UnsafePointer<IOUSBBOSDescriptor>!) -> UnsafePointer<IOUSBDeviceCapabilitySuperSpeedUSB>!

Parameters

  • bosDescriptor:

    A BOS descriptor that contains the descriptors to iterate through.

Return Value

A SuperSpeed capability pointer, or nil if no matching descriptor returns.

Discussion

This method uses IOUSBGetNextCapabilityDescriptorWithType(_:_:_:) to find the first SuperSpeed capability descriptor.

See Also

BOS Descriptor Parsing