6

Is libusb the preferred method to talk to a device over USB (using AT commands) on OS X these days?

Is there any high level equivalent in cocoa?

kent
  • 6,286
  • 4
  • 27
  • 32
stefanB
  • 77,323
  • 27
  • 116
  • 141

2 Answers2

11

On OS X, drivers are written using the IOKit and a subset of C++. More specifically, for USB devices, you probably want to start with Apple's USB Device Interface Guide and browse the USB parts of Hardware and Drivers section of the Mac OS X Core Library documentation set in XCode. (Edit: The latter resource is also available online.)

Community
  • 1
  • 1
user57368
  • 5,675
  • 28
  • 39
1

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

trondd
  • 878
  • 1
  • 7
  • 12