| |||
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
Hi Charles,I modified my code to look like the above and two things happened. My computer crashes badly-grey screen w/multi-language suggestion that I hold my power button in to restart the computer and the device I'm trying to read from locks up. Here's what I know up to this point. I can find my device because I'm able to get information about the vendor, product, version, etc... After getting that information I get the hidDeviceInterface. It's possible that I made a mistake in that code. Here's the routine I use
First of all, you are using HIDOpenReportDescriptor incorrectly and in the wrong context. This call is only available in the kernel and is incompatible with the HID Manager. Please stick to using the APIs defined in <IOKit/hid/>.
The following code should work:
long rSize = kBufferSize;
char buffer[kBufferSize];
IOReturn ioReturnValue = kIOReturnSuccess;
// First, open the device...
ioReturnValue = (*hidDeviceInterface)->open( hidDeviceInterface , 0 );
//
ioReturnValue = (*hidDeviceInterface)->getReport (hidDeviceInterface, kIOHIDReportTypeInput, 0, buffer, &rSize, 0, nil, nil, nil);
_______________________________________________ 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: | |
| >Using getReport with a HID device... (From: Charles Reader <email@hidden>) | |
| >Re: Using getReport with a HID device... (From: Rob Yepez <email@hidden>) | |
| >Re: Using getReport with a HID device... (From: Charles Reader <email@hidden>) | |
| >Re: Using getReport with a HID device... (From: Rob Yepez <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.