public:
IOUSBDevice * device();
returns the device the interface is part of.
Result: Pointer to the device.public:
virtual const IOUSBInterfaceDescriptor *findNextAltInterface(const IOUSBInterfaceDescriptor *current, FindInterfaceRequest *request);
return alternate interface descriptor satisfying the requirements specified in request, or NULL if there aren't any. request is updated with the properties of the returned interface.
Result: Pointer to a matching interface descriptor, or NULL if none match.
Name Description current interface descriptor to start searching from, NULL to start at alternate interface 0. request specifies what properties an interface must have to match.
public:
virtual const IOUSBDescriptorHeader * findNextAssociatedDescriptor(const void *current, UInt8 type);
Find the next descriptor of the requested type associated with the interface.
Result: Pointer to the descriptor, or NULL if no matching descriptors found.
Name Description current Descriptor to start searching from, NULL to start from beginning of list. type Descriptor type to search for, or kUSBAnyDesc to return any descriptor type.
public:
virtual IOUSBPipe *findNextPipe(IOUSBPipe *current, IOUSBFindEndpointRequest *request);
Find a pipe of the interface that matches the requirements, either starting from the beginning of the interface's pipe list or from a specified pipe.
Result: Pointer to the pipe, or NULL if no pipe matches the request.
Name Description current Pipe to start searching from, NULL to start from beginning of list. request Requirements for pipe to match, updated with the found pipe's properties.
public:
UInt8 getConfigValue();
returns the device configuration value for the interface
Result: The device configuration value.public:
const IOUSBInterfaceDescriptor * interfaceDescriptor();
returns the interface descriptor for the interface
Result: Pointer to the interface descriptor.public:
virtual IOReturn setAlternateInterface(UInt8 alternateSetting);
Select the specified alternate interface.
Name Description alternateSetting Alternate setting (from the alternate interface's interface descriptor).
© 2000 Apple Computer, Inc. (Last Updated 2/23/2000)