Raptor:Display USB Eject

From NewEagleWiki
Jump to navigation Jump to search

Return to the main Raptor page

Return to File IO page

Raptor™ Display USB Eject

Description

This block, when executed, stores all pending data to the USB drive, and allows for safe USB removal. It is best to have this block in a subsytem that is triggered when the user wishes to safely remove the USB from the data logger.

Asserting the USB eject mechanism will force a file sync - flushing log file buffers in RAM out to the specified log file on the USB storage device.

The "Ready to Eject" output of the Display USB Status will be set true when the USB Eject block has been asserted and the USB controller has finished the process of preparing the device for detection. The USB storage device should not be physically removed from the VeeCAN module until the "Ready to Eject" output of the USB status block is true.

Note: Removing the USB storage device without ejecting it can result in all data written to the log file since the last successful sync operation being lost.