Contents

IOUSBGetNextEndpointDescriptor(_:_:_:)

Obtains the next endpoint descriptor for an interface descriptor.

Declaration

func IOUSBGetNextEndpointDescriptor(_ configurationDescriptor: UnsafePointer<IOUSBConfigurationDescriptor>!, _ interfaceDescriptor: UnsafePointer<IOUSBInterfaceDescriptor>!, _ currentDescriptor: UnsafePointer<IOUSBDescriptorHeader>!) -> UnsafePointer<IOUSBEndpointDescriptor>!

Parameters

  • configurationDescriptor:

    A configuration descriptor that contains the descriptors to iterate through.

  • interfaceDescriptor:

    An interface descriptor within the bounds of configurationDescriptor.

  • currentDescriptor:

    A descriptor pointer within the bounds of configurationDescriptor, or nil.

Return Value

A descriptor pointer, or nil if no matching descriptor returns.

Discussion

This method uses IOUSBGetNextAssociatedDescriptorWithType(_:_:_:_:) to find the next endpoint descriptor for a specific interface descriptor.

See Also

Endpoint Descriptor Parsing