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, ornil.
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
IOUSBGetEndpointDirection(_:)IOUSBGetEndpointAddress(_:)IOUSBGetEndpointNumber(_:)IOUSBGetEndpointType(_:)IOUSBGetEndpointMaxPacketSize(_:_:)IOUSBGetEndpointIntervalEncodedMicroframes(_:_:)IOUSBGetEndpointIntervalMicroframes(_:_:)IOUSBGetEndpointIntervalFrames(_:_:)IOUSBGetEndpointMaxStreamsEncoded(_:_:_:)IOUSBGetEndpointMaxStreams(_:_:_:)