At 11:01 AM -0500 3/22/02, Richard Shamblin wrote:
I am tasked with developing software to communicate with a USB
device that uses the Anchor (now Cypress) EZ-USB chip. Anchor
supplied windows development tools and .sys generic drivers but no
comparable support for the Macintosh.
Cypress's web support site has a "EZ-USB Development for Mac OS" notice that
references the developer.apple.com/hardware/usb site for USB DDKs
for OS 9.x and OS X. I have the kits. They also state "the good news
for EZ-USB developers is that sample drivers using EZ-USB
microcontrollers are included in both DDKs." I have been unable to
find those sample drivers
The application is very basic, Short (1 or 2 byte) OUTS followed by
short (1 - 5 byte) IN replies using a single endpoint for all
communication.
I've just been doing something similar, the example you're looking
for is USBNotificationSample. It took me an afternoon to modify this
to download a HEX file provided in a windows DDK and then to start
twiddling bits. I was using the user space example, not the kernel
driver.
The documentation I found most useful was "Accessing hardware from
applications", the USB Cookbook, and Draft documentation for
IOUSBLib.h (available locally). You can also take a look at Inside
Carbon: Plug in services if you want to get confused by the plug in
architecture.
However, I didn't need much documentation to start hacking away at the example.