ADC Home > Reference Library > Reference > Hardware & Drivers > I/O Kit Framework Reference

 


IOUSBInterfaceInterface220

Inherits from:

IOUSBInterfaceInterface197

Declared In:

Overview

The object you use to access a USB device interface from user space, returned by the IOUSBFamily version 2.2.0 and above.

Discussion

The functions listed here include all of the functions defined for the IOUSBInterfaceInterface, IOUSBInterfaceInterface182, IOUSBInterfaceInterface183, IOUSBInterfaceInterface190, IOUSBInterfaceInterface192, IOUSBInterfaceInterface197, and some new functions that are available on Mac OS X version 10.4 and later.



Functions

FindNextAltInterface
FindNextAssociatedDescriptor

Find the next descriptor of the requested type associated with the interface.


FindNextAltInterface


IOUSBDescriptorHeader * ( *FindNextAltInterface)(
    void *self,
    const void *current, 
    IOUSBFindInterfaceRequest *request);  
Parameters
self

Pointer to the IOUSBInterfaceInterface.

current

interface descriptor to start searching from, NULL to start at alternate interface 0.

request

specifies what properties an interface must have to match.

Return Value

Pointer to a matching interface descriptor, or NULL if none match.

Discussion

return alternate interface descriptor satisfying the requirements specified in request, or NULL if there aren't any. discussion request is updated with the properties of the returned interface.


FindNextAssociatedDescriptor


Find the next descriptor of the requested type associated with the interface.

IOUSBDescriptorHeader * ( *FindNextAssociatedDescriptor)(
    void *self,
    const void *currentDescriptor,
    UInt8 descriptorType);  
Parameters
self

Pointer to the IOUSBInterfaceInterface.

currentDescriptor

Descriptor to start searching from, NULL to start from beginning of list.

descriptorType

Descriptor type to search for, or kUSBAnyDesc to return any descriptor type.

Return Value

Pointer to the descriptor, or NULL if no matching descriptors found.

Discussion

The interface does not have to be open to use this function.

Availability
This function is only available with IOUSBInterfaceInterface220 and above.


Did this document help you?
Yes: Tell us what works for you.
It’s good, but: Report typos, inaccuracies, and so forth.
It wasn’t helpful: Tell us what would have helped.

 

Last Updated: 2009-02-23