Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of gr-peach-opencv-project-sd-card by
mStorage.hpp
00001 #ifndef M_STORAGE_HPP 00002 #define M_STORAGE_HPP 00003 00004 #include "mbed.h" 00005 #include "rtos.h" 00006 #include "FATFileSystem.h" 00007 #include "SDBlockDevice_GR_PEACH.h" 00008 #include "USBHostMSD.h" 00009 00010 enum mStorageError 00011 { 00012 STORG_PASS, STORG_FAIL 00013 }; 00014 00015 class cStorage 00016 { 00017 private: 00018 FATFileSystem *fs; 00019 SDBlockDevice_GR_PEACH sd; 00020 USBHostMSD usb; 00021 bool mounted; 00022 public: 00023 /* Constructor */ 00024 cStorage(char *name); 00025 00026 /* Destructor */ 00027 ~cStorage(void); 00028 00029 /*Check sd card is connected*/ 00030 mStorageError isConnectSdCard(); 00031 mStorageError mountSdCard(); 00032 mStorageError unmountSdCard(); 00033 }; 00034 #endif //M_STORAGE_HPP
Generated on Tue Jul 12 2022 14:47:28 by
1.7.2
