FATFileSystem

Dependents:   SDFileSystem

Fork of FatFileSystem by mbed unsupported

Committer:
robt
Date:
Fri May 24 22:12:43 2013 +0000
Revision:
4:52a829edb754
Parent:
0:97df4125f18d
by Rob Toulson and Tim Wilmshurst from textbook "Fast and Effective Embedded Systems Design: Applying the ARM mbed"

Who changed what in which revision?

UserRevisionLine numberNew contents of line
mbed_unsupported 0:97df4125f18d 1 /* Copyright 2008 ARM Limited. All rights reserved. */
mbed_unsupported 0:97df4125f18d 2
mbed_unsupported 0:97df4125f18d 3 #ifndef MBED_FATDIRHANDLE_H
mbed_unsupported 0:97df4125f18d 4 #define MBED_FATDIRHANDLE_H
mbed_unsupported 0:97df4125f18d 5
mbed_unsupported 0:97df4125f18d 6 #include "DirHandle.h"
mbed_unsupported 0:97df4125f18d 7 #include "ff.h"
mbed_unsupported 0:97df4125f18d 8
mbed_unsupported 0:97df4125f18d 9 namespace mbed {
mbed_unsupported 0:97df4125f18d 10
mbed_unsupported 0:97df4125f18d 11 class FATDirHandle : public DirHandle {
mbed_unsupported 0:97df4125f18d 12
mbed_unsupported 0:97df4125f18d 13 public:
mbed_unsupported 0:97df4125f18d 14 FATDirHandle(const FATFS_DIR &the_dir);
mbed_unsupported 0:97df4125f18d 15 virtual int closedir();
mbed_unsupported 0:97df4125f18d 16 virtual struct dirent *readdir();
mbed_unsupported 0:97df4125f18d 17 virtual void rewinddir();
mbed_unsupported 0:97df4125f18d 18 virtual off_t telldir();
mbed_unsupported 0:97df4125f18d 19 virtual void seekdir(off_t location);
mbed_unsupported 0:97df4125f18d 20
mbed_unsupported 0:97df4125f18d 21 private:
mbed_unsupported 0:97df4125f18d 22 FATFS_DIR dir;
mbed_unsupported 0:97df4125f18d 23 struct dirent cur_entry;
mbed_unsupported 0:97df4125f18d 24
mbed_unsupported 0:97df4125f18d 25 };
mbed_unsupported 0:97df4125f18d 26
mbed_unsupported 0:97df4125f18d 27 }
mbed_unsupported 0:97df4125f18d 28
mbed_unsupported 0:97df4125f18d 29 #endif