IOUSBGetEndpointSynchronizationType

Function IOUSBGetEndpointSynchronizationType 

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

Extract the synchronization type of an endpoint from an endpoint descriptor

This method parses an endpoint descriptor to determine its synchronization type. Only Isochronous endpoints have non-zero synchronization types

Parameter descriptor: The descriptor to parse

Returns: tEndpointSynchronizationType indicating the type found.

ยงSafety

descriptor must be a valid pointer.