IOUSBGetNextEndpointDescriptor
Finds the next endpoint descriptor associated with an interface descriptor.
Declaration
const IOUSBEndpointDescriptor *IOUSBGetNextEndpointDescriptor(const IOUSBConfigurationDescriptor *configurationDescriptor, const IOUSBInterfaceDescriptor *interfaceDescriptor, const IOUSBDescriptorHeader *currentDescriptor);Parameters
- configurationDescriptor:
A configuration descriptor that contains the descriptors to iterate through.
- interfaceDescriptor:
An interface descriptor within the bounds of the configuration descriptor.
- currentDescriptor:
A descriptor pointer within the bounds of the configuration descriptor, or
NULL.
Return Value
An endpoint descriptor pointer, or NULL if no matching descriptor can be found.
Discussion
This method uses getNextAssociatedDescriptorWithType to fetch the next endpoint descriptor associated with a specific interface descriptor.
See Also
Endpoint Descriptors
IOUSBGetEndpointAddressIOUSBGetEndpointBurstSizeIOUSBGetEndpointDirectionIOUSBGetEndpointIntervalEncodedMicroframesIOUSBGetEndpointIntervalFramesIOUSBGetEndpointIntervalMicroframesIOUSBGetEndpointMaxPacketSizeIOUSBGetEndpointMaxStreamsIOUSBGetEndpointMaxStreamsEncodedIOUSBGetEndpointMultIOUSBGetEndpointNumberIOUSBGetEndpointType