IOUSBGetSuperSpeedDeviceCapabilityDescriptor

Function IOUSBGetSuperSpeedDeviceCapabilityDescriptor 

Source
pub unsafe extern "C-unwind" fn IOUSBGetSuperSpeedDeviceCapabilityDescriptor(
    bos_descriptor: *const IOUSBBOSDescriptor,
) -> *const IOUSBDeviceCapabilitySuperSpeedUSB
Available on crate features AppleUSBDescriptorParsing and objc2-io-kit only.
Expand description

Find the first SuperSpeedUSBDeviceCapabilityDescriptor in a BOS descriptor

This method uses getNextCapabilityDescriptorWithType to fetch the first SuperSpeedUSBDeviceCapabilityDescriptor

Parameter bosDescriptor: BOS descriptor that contains the descriptors to iterate through

Returns: SuperSpeedUSBDeviceCapabilityDescriptor pointer, or NULL if no matching descriptor can be found

ยงSafety

bos_descriptor must be a valid pointer.