Mailing Lists: Apple Mailing Lists

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

Transaction on HID/Composite?



Hi,

I'm new in the USB world willing to control a custom USB device from user space.

I followed the "HID Manager Basics" and "USBSimple" examples and installed USB Prober including logging (MaxOS X 10.3.9). I guess I also read the relevant (updated) documentation.

I've learned from that, that the AppleUSBComposite driver matches against and configures the device, sets the default configuration and creates the IORegistry nubs corresponding to the driver, the HID interface and the 2 endpoints (interrupt IN and interrupt OUT).

In my code I can enumerate device and interface, but can only open the device, not the HID interface. So far I'm fine.

But how can I finally send/receive data to/from the endpoints? Besides (*hidDeviceInterface)->get/setElementValue(...)I found the IOHIDOutputTransactionInterface in the IOHIDLib.h, but no sufficient documentation how to work with it.

Is my approach correct? Any hint or suggestion welcome, thanks.

Ulrich

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