This simple program will test the functionality of the m3pi\'s usb port by reading a file on a usb flash drive (called YourText.txt) and printing it to the m3pi\'s inbuilt LCD display.
FATDirHandle.h
00001 /* Copyright 2008 ARM Limited. All rights reserved. */ 00002 00003 #ifndef MBED_FATDIRHANDLE_H 00004 #define MBED_FATDIRHANDLE_H 00005 00006 #include "DirHandle.h" 00007 #include "ff.h" 00008 00009 namespace mbed { 00010 00011 class FATDirHandle : public DirHandle { 00012 00013 public: 00014 FATDirHandle(const FATFS_DIR &the_dir); 00015 virtual int closedir(); 00016 virtual struct dirent *readdir(); 00017 virtual void rewinddir(); 00018 virtual off_t telldir(); 00019 virtual void seekdir(off_t location); 00020 00021 private: 00022 FATFS_DIR dir; 00023 struct dirent cur_entry; 00024 00025 }; 00026 00027 } 00028 00029 #endif
Generated on Wed Jul 13 2022 17:14:52 by 1.7.2