Simon Ford
/
fat
FATDirHandle.h@1:208803a150b2, 2012-01-12 (annotated)
- Committer:
- simon
- Date:
- Thu Jan 12 12:59:33 2012 +0000
- Revision:
- 1:208803a150b2
- Parent:
- 0:560a6744936c
fix on line 61 of diskio, sector -> s
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
simon | 0:560a6744936c | 1 | /* mbed Microcontroller Library - FATDirHandle |
simon | 0:560a6744936c | 2 | * Copyright (c) 2008, sford |
simon | 0:560a6744936c | 3 | */ |
simon | 0:560a6744936c | 4 | |
simon | 0:560a6744936c | 5 | #ifndef MBED_FATDIRHANDLE_H |
simon | 0:560a6744936c | 6 | #define MBED_FATDIRHANDLE_H |
simon | 0:560a6744936c | 7 | |
simon | 0:560a6744936c | 8 | #include "DirHandle.h" |
simon | 0:560a6744936c | 9 | #include "ff.h" |
simon | 0:560a6744936c | 10 | |
simon | 0:560a6744936c | 11 | namespace mbed { |
simon | 0:560a6744936c | 12 | |
simon | 0:560a6744936c | 13 | class FATDirHandle : public DirHandle { |
simon | 0:560a6744936c | 14 | |
simon | 0:560a6744936c | 15 | public: |
simon | 0:560a6744936c | 16 | FATDirHandle(const FATFS_DIR &the_dir); |
simon | 0:560a6744936c | 17 | virtual int closedir(); |
simon | 0:560a6744936c | 18 | virtual struct dirent *readdir(); |
simon | 0:560a6744936c | 19 | virtual void rewinddir(); |
simon | 0:560a6744936c | 20 | virtual off_t telldir(); |
simon | 0:560a6744936c | 21 | virtual void seekdir(off_t location); |
simon | 0:560a6744936c | 22 | |
simon | 0:560a6744936c | 23 | private: |
simon | 0:560a6744936c | 24 | FATFS_DIR dir; |
simon | 0:560a6744936c | 25 | struct dirent cur_entry; |
simon | 0:560a6744936c | 26 | |
simon | 0:560a6744936c | 27 | }; |
simon | 0:560a6744936c | 28 | |
simon | 0:560a6744936c | 29 | } |
simon | 0:560a6744936c | 30 | |
simon | 0:560a6744936c | 31 | #endif |