Contents

IOUSBHostDevice

A provider object that represents the USB device.

Declaration

class IOUSBHostDevice;

Overview

An IOUSBHostDevice object represents a USB device connected to the user’s Mac. Use this object to retrieve the device’s configuration descriptor and capabilities. You can also iterate over the interfaces that the device uses to communicate.

Typically, you don’t create IOUSBHostDevice objects directly. Instead, the system creates one during the matching process for the USB device and passes it as the provider object to your custom driver.

To use a host device object, call Open to create a new session between the device and your driver. After successfully opening your session, you can request information from the device, fetch descriptors, and iterate over the available interfaces. Remember to close the session you opened in the Stop method of your driver.

Topics

Managing the Device Session

Getting the Device Descriptors

Disposing of Descriptors

Requesting Information from the Device

Creating Memory Buffers

Iterating Over the Device Interfaces

Getting Device Information

Configuring the Device

Instance Methods

See Also

Providers