Important: If your application is sandboxed, it must request the .usb entitlement in order to access USB devices. In this case, your application must use the device interface for the device to set the configuration it needs so the interfaces become available. For example, vendor-specific devices are often not configured because there are no default drivers that set a particular configuration. IOUSBInterfaceInterface for communicating with an interface in the deviceīoth device interfaces are defined in /System/Library/Frameworks/amework/Headers/usb/IOUSBLib.h.Ĭommunicating with the device itself is usually only necessary when you need to set or change its configuration. IOUSBDeviceInterface for communicating with the device itself The USB family provides two types of device interface: It is not intended to provide guidance on error handling and other features required for production-quality code.Īpplications running in OS X get access to USB devices by using I/O Kit functions to acquire a device interface, a type of plug-in that specifies functions the application can call to communicate with the device. Important: The sample code featured in this document is intended to illustrate how to access a USB device from an application.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |