Renesas GR-PEACH OpenCV Development / gr-peach-opencv-project-sd-card_update

Fork of gr-peach-opencv-project-sd-card by the do

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers mStorage.hpp Source File

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