IOUSBGetEndpointMult

Function IOUSBGetEndpointMult 

Source
pub unsafe extern "C-unwind" fn IOUSBGetEndpointMult(
    usb_device_speed: u32,
    descriptor: *const IOUSBEndpointDescriptor,
    companion_descriptor: *const IOUSBSuperSpeedEndpointCompanionDescriptor,
    ssp_companion_descriptor: *const IOUSBSuperSpeedPlusIsochronousEndpointCompanionDescriptor,
) -> u8
Available on crate features AppleUSBDescriptorParsing and objc2-io-kit only.
Expand description

Extract the mult count from endpoint descriptors

This method parses endpoint descriptors to determine mult

Parameter usbDeviceSpeed: The operational speed of the device

Parameter descriptor: The EndpointDescriptor to parse

Parameter companionDescriptor: The SuperSpeedEndpointCompanionDescriptor to parse, or NULL

Parameter sspCompanionDescriptor: The SuperSpeedPlusIsochronousEndpointCompanionDescriptor to parse, or NULL

Returns: uint8_t The mult count

ยงSafety

  • descriptor must be a valid pointer.
  • companion_descriptor must be a valid pointer.
  • ssp_companion_descriptor must be a valid pointer.