Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Working with a USB HID device without using IOHIDLib.h



Hello, I am new to USB drivers on Mac OS X and have some questions
regarding writing drivers for a USB HID.  At this point, I have tried
following the USBNotification example for the HID, which do not use
the IOHIDLib.h API.  However, once I try to open the interface (
USBInterfaceOpen() ), I am met with kIOReturnExclusiveAccess as an
error.  Searching through the list, posters have suggested that the
HIDdriver might have already claimed "ownership" of that device.  The
suggested solution was to simply use the API provided by IOHIDLib.h.

So I took this approach and ran into an error with getReport.  Upon
searching again through the list, I find it mentioned that getReport
works over the default control pipe, whereas I need to use the
Interrupt IN.

So at this point, I am confused as to which approach to take.  The
task right now is very basic:  I have a USB HID device and would
simply like to send/receive vendor-specific reports.  What is the best
way to approach this?  Thank you!
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Usb mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/usb/email@hidden

This email sent to email@hidden



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.