Mailing Lists: Apple Mailing Lists

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

Re: HID device driver help



Fernando,

Thanks for your quick reply. Looks very helpful. I *think* I'd read the first doc before, but will read both again - I think your comments regarding talking to the control pipe will be incredibly helpful.

Thanks!
Gregg

On Mar 31, 2005, at 8:48 AM, Fernando Urbina wrote:

Have you read:

http://developer.apple.com/documentation/DeviceDrivers/Conceptual/USBBook/index.html

and 

http://developer.apple.com/documentation/DeviceDrivers/Conceptual/AccessingHardware/index.html#//apple_ref/doc/uid/TP30000376

This will give you an idea on what you need to do.  You need to open a connection from your application to the IOUSBInterface.  It seems like you already did that so you're halfway there.  If you need to send requests to the control pipe of your device, then you can do it through the Interface (ControlRequest) or through the Device DeviceRequest).  The IOUSBDevice will not be open by anybody else, so you should be OK.  You are correct in that the IOUSBHIDDriver has opened your IOUSBInterface and won't let you grab it from user space.   Depending on the sort of communications that you need, you can use the IOHIDLib interface to deal with your interface, or you need to get your VendorSpecific kext working so that the IOUSBHIDDriver doesn't grab it.  Then you can open the IOUSBInterface from user space and use the IOUSBLib to communicate with it.

HTH,


--

Fernando Urbina

USB Technology Team

Apple Computer, Inc.

On Mar 31, 2005, at 3:31 AM, Gregg Rivers wrote:


What is the Mac equivalent? m_hDevice is a "file handle" created by calling <x-tad-smaller>CreateFile </x-tad-smaller>which I noticed someone else enquiring about also.


Sorry for the newb question. I feel like the answer is on the tip of my keyboard.


 _______________________________________________
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

References: 
 >HID device driver help (From: Gregg Rivers <email@hidden>)
 >Re: HID device driver help (From: Fernando Urbina <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.