![](/media/cache/group/default_image.jpg.50x50_q85.jpg)
主導機 mbed用のプログラムです 改良しました
Dependencies: mbed
Fork of F3RC_syudou_master by
FatFileSystem/FATDirHandle.h@19:a3f57c9833b6, 2017-08-23 (annotated)
- Committer:
- yuto17320508
- Date:
- Wed Aug 23 10:10:26 2017 +0000
- Revision:
- 19:a3f57c9833b6
- Parent:
- 0:736c76a75def
a
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 |