I am looking at the example code on section 28.7 (Mass Storage) of the beginning ebook (page 80) in order to find ideas on how to switch between an internal file system and USB MSC with my SDCard.
Up to now , my datalogging application is running on FEZ Cobra and stores .csv files using the internal file system (like in section 23.1 example of the ebook).
I now would like to stop datalogging on the SD Card and tell start the USB MSC process on the same SD Card in order for a connected PC to grab those newly created datalog files.
My question is : what sequences of events needs to happen in order to properly switch back and forth between internal file system and USB MSC when they both access the same SD card. Is there also some specific delays to add in for the SDcard to complete files writes and prevent corruption between mode switching?