SD Card Mounting Functions
The following functions handle mounting of SD cards.
Name | Use |
---|---|
SD_ISREADY | Check that the SD card is ready for read/write |
SD_MOUNT | Mount an SD card |
SD_UNMOUNT | Unmount an SD card |
SD_MOUNT
Mount the SDCard on the PDMM. This will not perform any action, and always return TRUE with a Simulator.
OK := SD_MOUNT();
OK : BOOL | TRUE if mounting SDCard is successful |
-
-
Before performing, make sure the SDCard is inserted.
-
-
It is recommended that SD_MOUNT be used only when motion is not started.
SD_UNMOUNT
Un-mount the SDCard from the PDMM. This will not perform any action, and always return TRUE with a Simulator.
OK := SD_UNMOUNT();
OK : BOOL | TRUE if un-mounting SDCard is successful |
-
-
It is recommended that SD_UNMOUNT be used only when motion is not started.
SD_ISREADY
Verify if the SDCard is mounted on the PDMM. This will verify if the SDCard folder is available inside the userdata folder when using a Simulator.
OK := SD_ISREADY();
OK : BOOL | TRUE if the SDCard is mounted (PDMM / PCMM) |