| |||
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
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>) |
| Home | Archives | FAQ | Terms/Conditions | Contact | RSS | Lists | About |
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.