at32uc3c2512 handle for eject, MSC usb (mass storage)

Go To Last Post
4 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hello ;) 

I have a little problem, mass storage working good also with internal flash memory. Now i must know when user did a eject mass storage by windows system, and i don't know how. Do exists some handle from eject action in ASF ?

 

regards  

This topic has a solution.
Last Edited: Fri. Jun 23, 2017 - 11:50 AM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

It's not clear from your question: Is the at32uc3c2512 being the USB Host or Device ?

 

Also, are you using ASF? Some other USB stack?

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hi, sorry, it's USB device and i using ASF framework.

This reply has been marked as the solution. 
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

ok, i found solution, is in 
    case SBC_START_STOP_UNIT:
        udi_msc_sbc_start_stop();
        break;
in file udi.msc.c line 550, 
this is run when we do a click on eject in windows, i did not test in linux.

 

Regars :)