IOUSBGetEndpointIntervalMicroframes

Function IOUSBGetEndpointIntervalMicroframes 

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

Extract the interval of an endpoint descriptor

This method parses an endpoint descriptor and returns the service interval in microframes

Parameter usbDeviceSpeed: The operational speed of the device

Parameter descriptor: The EndpointDescriptor to parse

Returns: uint32_t Endpoint interval in microframes

ยงSafety

descriptor must be a valid pointer.