Mailing Lists: Apple Mailing Lists

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

Re: USB driver for a simple device?



Hi,

I've been trying to write a Mac OS 9 driver for a mechanical device
for which I have a linux driver, and I have another naive question.
A test driver loads cleanly, once I found out that you have to have
the USBDriverDescription Device Class set to 0xff, and the loading
flags set to kUSBDoNotMatchInterface + kUSBDoNotMatchGenericDriver,
to avoid extraneous drivers being loaded.  I can see what's going on
via USBExpertStatus() calls, it looks like this thing might actually work.

What I haven't figured out is, how do you pass function pointers
in the driver out to an application?  I'd like to have a function like
Move(pan,tilt) in the driver, that I can call from an application, once
the driver has done the initialization work.  As was mentioned, the DDK
documentation was written for someone who knows what he's doing,
that's not me, yet.  The example I've most studied, the USBKeypad
example, hangs around in an interrupt loop, talking to internal ADB
structures, and doesn't talk to outside applications.  Do I have to call
USBGetNextDeviceByClass() etc. from the application?

Thanks for any advice,

rob
_______________________________________________
usb mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/usb
Do not post admin requests to the list. They will be ignored.

References: 
 >Re: USB driver for a simple device? (From: "Daniel R. Killoran,Ph.D." <email@hidden>)
 >Re: USB driver for a simple device? (From: Barry Twycross <email@hidden>)
 >USB driver for a simple device? (From: rob shaw <email@hidden>)
 >Re: USB driver for a simple device? (From: rob shaw <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.