On my Atmel SAM4E-EK I have a USB composite device setup (MSC + CDC over USB), hooked up to a Windows 7 PC. Sometimes I want to disable the MSC and let the CDC class be, is this at all possible given the USB 2.0 specification?
I imagine a solution to my problem would be to discard all the MSC USB packets in conjunction with a forced enumeration (by the host but issued from the device).
This situation is similiar to this question as I have a FATFS filesystem on the SD card which gets exposed to the PC over USB MSC and I want to have some kind of mutex over the filesystem so that it does not get corrupted from simultaneous accesses.