Mailing Lists: Apple Mailing Lists

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

HID device driver help



I have been reading the USB mailing archives, and as much documentation as I can - it seems circular at times though!!

I have succeeded in being notified of my device being added and removed. I have followed the sample codes and attempted to communicate with my USB device. I believe I am going to have to use the HID manager, as Apple's HID manager opens the device as soon as I plug it in. I have tried to create a Vendor Specific codeless KEXT with little success at the moment. In the system log file it tells me that "someone already has it open" - I think this means my matching values are not quite correct.

I have Windows source which shows how to communicate with this device, and am struggling to work out how to translate this to mach speak.

I need to figure out how to translate this kernel call in Windows:

DeviceIoControl(m_hDevice,
IOCTL_HID_SET_FEATURE, pData, nBytes, NULL, 0, &nBytesTransferred, overlap)

What is the Mac equivalent? m_hDevice is a "file handle" created by calling CreateFile 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.

Thanks for any help!!

gregg
 _______________________________________________
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.