Accessing Hardware Drivers from a Application
Accessing Hardware Drivers from a Application
- Subject: Accessing Hardware Drivers from a Application
- From: "John D. Farmer" <email@hidden>
- Date: Fri, 15 Jul 2005 08:49:25 -0700
I am a Cocoa Application developer writing a preference pane for a piece of hardware for a client. The driver and the application need to be able to communicate by having the Application send a message to the driver and the Driver responding with information from/about the hardware. I have used a User Client before but it seemed inadequate for this task because the driver needs to be able to frequently send data to the application. I have read the document Accessing Hardware From Applications located at: http://developer.apple.com/documentation/DeviceDrivers/Conceptual/AccessingHardware/AccessingHardware.pdf. This document while informative about using notifications seems to lack practical implementation suggestions.
I was wondering if there was some sample source code that anyone knew of that would show me how to setup communication for a simple driver (such as the Hello I/O Kit driver sample in http://developer.apple.com/documentation/Darwin/Conceptual/KEXTConcept/index.html which uses the IOResource Class as its provider) in both the Application and in the Driver so that the Application could send down a request and the driver could send back a response (such as a request for information about the device, and a response that contained a structure that I could parse to display information on to the user).
Any help would be greatly appreciated.
Thanks in advance!
John D. Farmer
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden