Groups | Search result 9 for MC68HC908JB8 |
Firmware Design Firm • C/C++ firmware design services using a wide variety of processors. • www.cdg-i.com | Sponsored Links
|
Embedded Systems Experts • Experienced hardware/software eng. Get your project on schedule! • www.kineteksystems.com |
PromICE firmware tools • Emulates any ROM/Flash memory Speeds up embedded development • www.promice.com |
|
Hello,
I have a question concerning working with a HID
device and how you code firmware to deal with a
SET_REPORT. Currently I am experiencing problems
with my device and it responding to a user's
application when executing a WriteFile() command.
I don't think I understand fully what the host(pc)
is doing in this circumstance. When I first act on
this interrupt my device NAKs and clears the interrupt
flag that illicited it. Then I read end point zero's
buffer and place it in my program's working buffer.
Then I check to see if I am dealing with a Standard
Request or a Class Request. If it's a Class Request
I check to see if it is a SET_REPORT.
If it is a SET_REPORT, do I ack the host? Do I read end
point 0's receive buffer?
Currently I am telling the host that I am ready to receive
by setting a bit in the endpoint 0 control register.
The problem that I am experiencing is that the WriteFile()
never returns.
Does anybody have any firmware that they may share with
me or advice on program flow that deals with doing a
WriteFile()(OUT) on the control endpoint? I am using the
MC68HC908JB8 processor.
Any help with this would be most appreciated.
Fondly,
John N.
©2004 Google