IOUSBInterface



Member Functions

device

public:

IOUSBDevice * device();

returns the device the interface is part of.

Result: Pointer to the device.

findNextAltInterface

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.

Parameters

NameDescription
currentinterface descriptor to start searching from, NULL to start at alternate interface 0.
requestspecifies what properties an interface must have to match.
Result: Pointer to a matching interface descriptor, or NULL if none match.

findNextAssociatedDescriptor

public:

virtual const IOUSBDescriptorHeader * findNextAssociatedDescriptor(const void *current, UInt8 type);

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

Parameters

NameDescription
currentDescriptor to start searching from, NULL to start from beginning of list.
typeDescriptor type to search for, or kUSBAnyDesc to return any descriptor type.
Result: Pointer to the descriptor, or NULL if no matching descriptors found.

findNextPipe

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.

Parameters

NameDescription
currentPipe to start searching from, NULL to start from beginning of list.
requestRequirements for pipe to match, updated with the found pipe's properties.
Result: Pointer to the pipe, or NULL if no pipe matches the request.

getConfigValue

public:

UInt8 getConfigValue();

returns the device configuration value for the interface

Result: The device configuration value.

interfaceDescriptor

public:

const IOUSBInterfaceDescriptor * interfaceDescriptor();

returns the interface descriptor for the interface

Result: Pointer to the interface descriptor.

setAlternateInterface

public:

virtual IOReturn setAlternateInterface(UInt8 alternateSetting);

Select the specified alternate interface.

Parameters

NameDescription
alternateSettingAlternate setting (from the alternate interface's interface descriptor).

© 2000 Apple Computer, Inc. — (Last Updated 2/23/2000)