IOUSBGetSuperSpeedPlusDeviceCapabilityDescriptor

Function IOUSBGetSuperSpeedPlusDeviceCapabilityDescriptor 

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

Find the first SuperSpeedPlusUSBDeviceCapabilityDescriptor in a BOS descriptor

This method uses getNextCapabilityDescriptorWithType to fetch the first SuperSpeedPlusUSBDeviceCapabilityDescriptor

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

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

ยงSafety

bos_descriptor must be a valid pointer.