I have decided that I would like to (try) to write a block-level device driver
for the USB Compact Flash reader that I have (SanDisk ImageMate SDDR-31). Of
course, I haven’t poked around with USB before, so I know very little about it
at this point.
So far I have managed to start up the USB protocol stack on my machine, and
have written a simple program that gets the insertion and removal callbacks
from the protocol stack.
Now I am stuck. I’ve been trying to follow the DDK docs, and they assume
that I know one hell of a lot more than I actually do. Under the section
titled “How a class driver works”, I am on “2.2 Get descriptors”. This is
where my [lack of] knowledge fails me. I can’t make head nor tails out of
the usbd_descriptor() function call and what I actually need to ask for.
My assumption is that if I can get the damned thing to give me the same
information that the usb utility prints out, then I’ll have all the info
I need to actually DO something with the device plugged in.
Is the source for the usb utility available? Or can someone provide some
working code samples that are not overly complicated and inter-twined with
resmgr stuff (like the sample class drivers) are?
Cheers,
Camz.
–
Martin Zimmerman camz@passageway.com
Camz Software Enterprises www.passageway.com/camz/qnx/
QNX Programming & Consulting www.qnxzone.com