-- CHANGED -- To stop compilation errors I changed all *.c files to *.cpp. I have not tested this to see if it actually works. --- Updated FAT File System driver. Features include: * Updated to R0.09 - Sep 06, 2011 [[http://elm-chan.org/fsw/ff/00index_e.html]] * Bug fixes from Stéphane Bausseron ** [[http://mbed.org/forum/mbed/topic/2273/?page=1#comment-11521]] ** [[http://mbed.org/forum/mbed/topic/2307]] * Long filename support enabled and exposed through mbed SDK.
Fork of FatFileSystem by
FATFileHandle.h
00001 /* mbed Microcontroller Library - FATFileHandle 00002 * Copyright (c) 2008, sford 00003 */ 00004 00005 #ifndef MBED_FATFILEHANDLE_H 00006 #define MBED_FATFILEHANDLE_H 00007 00008 #include "FileHandle.h" 00009 #include "ff.h" 00010 00011 namespace mbed { 00012 00013 class FATFileHandle : public FileHandle { 00014 public: 00015 00016 FATFileHandle(FIL fh); 00017 virtual int close(); 00018 virtual ssize_t write(const void* buffer, size_t length); 00019 virtual ssize_t read(void* buffer, size_t length); 00020 virtual int isatty(); 00021 virtual off_t lseek(off_t position, int whence); 00022 virtual int fsync(); 00023 virtual off_t flen(); 00024 00025 protected: 00026 00027 FIL _fh; 00028 00029 }; 00030 00031 } 00032 00033 #endif
Generated on Sun Jul 24 2022 09:26:29 by 1.7.2