Is libusb the preferred method on Mac OS X to access a USB device?

Is libusb the preferred way to talk to the device via USB (using AT commands) in OS X these days?

Is there a high level equivalent in cocoa?

+6
cocoa usb macos iokit usbserial
source share
2 answers

In OS X, drivers are written using IOKit and a subset of C ++. In particular, for USB devices, you probably want to start with the Apple USB Device Interface Guide and look at the USB components section of the β€œHardware and Drivers” section on Mac Documentation for the OS X base library installed in Xcode. ( Edit: The latest resource is also available on the Internet .)

+11
source share

I wrote a driver with libusb that works on both Windows XP and Windows 7, Linux and Mac OS X, so I would say libusb is a good choice if cross-format compatibility is important to you.

+1
source share

All Articles