ももいくん
Dependencies: mbed
Fork of 2016_Sp_momoi_0611 by
FatFileSystem/FATDirHandle.h@0:736c76a75def, 2015-04-30 (annotated)
- Committer:
- hirokimineshita
- Date:
- Thu Apr 30 05:59:05 2015 +0000
- Revision:
- 0:736c76a75def
2015/04/30 PM 2 upload
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
hirokimineshita | 0:736c76a75def | 1 | /* Copyright 2008 ARM Limited. All rights reserved. */ |
hirokimineshita | 0:736c76a75def | 2 | |
hirokimineshita | 0:736c76a75def | 3 | #ifndef MBED_FATDIRHANDLE_H |
hirokimineshita | 0:736c76a75def | 4 | #define MBED_FATDIRHANDLE_H |
hirokimineshita | 0:736c76a75def | 5 | |
hirokimineshita | 0:736c76a75def | 6 | #include "DirHandle.h" |
hirokimineshita | 0:736c76a75def | 7 | #include "ff.h" |
hirokimineshita | 0:736c76a75def | 8 | |
hirokimineshita | 0:736c76a75def | 9 | namespace mbed { |
hirokimineshita | 0:736c76a75def | 10 | |
hirokimineshita | 0:736c76a75def | 11 | class FATDirHandle : public DirHandle { |
hirokimineshita | 0:736c76a75def | 12 | |
hirokimineshita | 0:736c76a75def | 13 | public: |
hirokimineshita | 0:736c76a75def | 14 | FATDirHandle(const FATFS_DIR &the_dir); |
hirokimineshita | 0:736c76a75def | 15 | virtual int closedir(); |
hirokimineshita | 0:736c76a75def | 16 | virtual struct dirent *readdir(); |
hirokimineshita | 0:736c76a75def | 17 | virtual void rewinddir(); |
hirokimineshita | 0:736c76a75def | 18 | virtual off_t telldir(); |
hirokimineshita | 0:736c76a75def | 19 | virtual void seekdir(off_t location); |
hirokimineshita | 0:736c76a75def | 20 | |
hirokimineshita | 0:736c76a75def | 21 | private: |
hirokimineshita | 0:736c76a75def | 22 | FATFS_DIR dir; |
hirokimineshita | 0:736c76a75def | 23 | struct dirent cur_entry; |
hirokimineshita | 0:736c76a75def | 24 | |
hirokimineshita | 0:736c76a75def | 25 | }; |
hirokimineshita | 0:736c76a75def | 26 | |
hirokimineshita | 0:736c76a75def | 27 | } |
hirokimineshita | 0:736c76a75def | 28 | |
hirokimineshita | 0:736c76a75def | 29 | #endif |