|
Revision 16, 506 bytes
(checked in by rolf.meyer@…, 2 years ago)
|
|
Finaly the FATFileSystem works on both targets ;-)
Sorry for the delay.
|
| Line | |
|---|
| 1 | /* Copyright 2008 ARM Limited. All rights reserved. */ |
|---|
| 2 | |
|---|
| 3 | #ifndef MBED_FATDIRHANDLE_H |
|---|
| 4 | #define MBED_FATDIRHANDLE_H |
|---|
| 5 | |
|---|
| 6 | #include "DirHandle.h" |
|---|
| 7 | #include "ff.h" |
|---|
| 8 | |
|---|
| 9 | namespace mbed { |
|---|
| 10 | |
|---|
| 11 | class FATDirHandle : public DirHandle { |
|---|
| 12 | |
|---|
| 13 | public: |
|---|
| 14 | FATDirHandle(const FATFS_DIR &the_dir); |
|---|
| 15 | virtual int closedir(); |
|---|
| 16 | virtual struct dirent *readdir(); |
|---|
| 17 | virtual void rewinddir(); |
|---|
| 18 | virtual off_t telldir(); |
|---|
| 19 | virtual void seekdir(off_t location); |
|---|
| 20 | |
|---|
| 21 | private: |
|---|
| 22 | FATFS_DIR dir; |
|---|
| 23 | struct dirent cur_entry; |
|---|
| 24 | |
|---|
| 25 | }; |
|---|
| 26 | |
|---|
| 27 | } |
|---|
| 28 | |
|---|
| 29 | #endif |
|---|