Forum: ARM programming with GCC/GNU tools Detect "Safe device Removal" issued from XP

Author: Michael Wolf (mictronics)
Posted on:

Rate this post
0 useful
not useful
I'm working on a project where I'm using the Atmel USB Framework and MSD
While comparing functionality of commercial MSD devices with my own, I
came to the question how some commercial devices can detect the "Safe
Removal Hardware" issued from XP.

As far as I know there is no information send to the device to tell that
it will be removed from bus.

I monitored the USB bus and found that on removal only one CSW handshake
is done with changed CBWtag/CSWtag.

So the question is: How can I detect in my code when the device was
safely removed by XP?


Entering an e-mail address is optional. If you want to receive reply notifications by e-mail, please log in.

Rules — please read before posting

  • Post long source code as attachment, not in the text
  • Posting advertisements is forbidden.

Formatting options

  • [c]C code[/c]
  • [avrasm]AVR assembler code[/avrasm]
  • [code]code in other languages, ASCII drawings[/code]
  • [math]formula (LaTeX syntax)[/math]

Bild automatisch verkleinern, falls nötig
Note: the original post is older than 6 months. Please don't ask any new questions in this thread, but start a new one.