IOUSBDevice



Member Functions

findNextInterface

public:

virtual IOUSBInterface *findNextInterface(IOUSBInterface *current, FindInterfaceRequest *request);

return an interface 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 to start searching from, NULL to start at the beginning of the device's interface list.
requestspecifies what properties an interface must have to match.
Result: Pointer to a matching interface, or NULL if none match

getConfigurationDescriptor

public:

virtual IOReturn getConfigurationDescriptor(UInt8 configValue, void *data, UInt32 len);

Copy the specified amount of data for a configuration into the suppled buffer.

Parameters

NameDescription
configValueThe configuration value
dataBuffer to copy data into
lennumber of bytes to copy

getFullConfigurationDescriptor

public:

virtual const IOUSBConfigurationDescriptor *getFullConfigurationDescriptor(UInt8 configIndex);

return a pointer to all the descriptors for the requested configuration.

Parameters

NameDescription
configIndexThe configuration index (not the configuration value)
Result: Pointer to the descriptors, which are cached in the device object.

resetDevice

public:

virtual IOReturn resetDevice();

Reset the device, returning it to the addressed, unconfigured state. This is useful if a device has got badly confused


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