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 FatFileSystemCpp by
Diff: FATFileSystem.h
- Revision:
- 2:5cdf6d5c3b68
- Parent:
- 0:6ceefe1c53e4
--- a/FATFileSystem.h Mon Jul 30 13:45:05 2012 +0000 +++ b/FATFileSystem.h Wed Mar 06 00:19:18 2013 +0000 @@ -31,31 +31,31 @@ class FATFileSystem : public FileSystemLike { public: - FATFileSystem(const char* n); - virtual ~FATFileSystem(); - - /* Function: open + FATFileSystem(const char* n); + virtual ~FATFileSystem(); + + /* Function: open * open a file on the filesystem. never called directly */ - virtual FileHandle *open(const char* name, int flags); - virtual int remove(const char *filename); - virtual int format(); + virtual FileHandle *open(const char* name, int flags); + virtual int remove(const char *filename); + virtual int format(); virtual DirHandle *opendir(const char *name); virtual int mkdir(const char *name, mode_t mode); - - FATFS _fs; // Work area (file system object) for logical drive - static FATFileSystem *_ffs[_VOLUMES]; // FATFileSystem objects, as parallel to FatFs drives array - int _fsid; - - virtual int disk_initialize() { return 0; } - virtual int disk_status() { return 0; } - virtual int disk_read(char *buffer, int sector) = 0; - virtual int disk_write(const char *buffer, int sector) = 0; - virtual int disk_sync() { return 0; } - virtual int disk_sectors() = 0; - + + FATFS _fs; // Work area (file system object) for logical drive + static FATFileSystem *_ffs[_VOLUMES]; // FATFileSystem objects, as parallel to FatFs drives array + int _fsid; + + virtual int disk_initialize() { return 0; } + virtual int disk_status() { return 0; } + virtual int disk_read(char *buffer, int sector) = 0; + virtual int disk_write(const char *buffer, int sector) = 0; + virtual int disk_sync() { return 0; } + virtual int disk_sectors() = 0; + }; - + } #endif