test
Dependencies: Nanopb iSerial mbed BaseJpegDecode FatFileSystem SDFileSystem RingBuffer Camera_LS_Y201
extlib/FATFileSystem/FATDirHandle.h@0:d69efd0ee139, 2014-09-18 (annotated)
- Committer:
- cgraham
- Date:
- Thu Sep 18 15:21:47 2014 +0000
- Revision:
- 0:d69efd0ee139
test
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
cgraham | 0:d69efd0ee139 | 1 | /* Copyright 2008 ARM Limited. All rights reserved. */ |
cgraham | 0:d69efd0ee139 | 2 | |
cgraham | 0:d69efd0ee139 | 3 | #ifndef MBED_FATDIRHANDLE_H |
cgraham | 0:d69efd0ee139 | 4 | #define MBED_FATDIRHANDLE_H |
cgraham | 0:d69efd0ee139 | 5 | |
cgraham | 0:d69efd0ee139 | 6 | #include "DirHandle.h" |
cgraham | 0:d69efd0ee139 | 7 | #include "ff.h" |
cgraham | 0:d69efd0ee139 | 8 | |
cgraham | 0:d69efd0ee139 | 9 | namespace mbed { |
cgraham | 0:d69efd0ee139 | 10 | |
cgraham | 0:d69efd0ee139 | 11 | class FATDirHandle : public DirHandle { |
cgraham | 0:d69efd0ee139 | 12 | |
cgraham | 0:d69efd0ee139 | 13 | public: |
cgraham | 0:d69efd0ee139 | 14 | FATDirHandle(const FATFS_DIR &the_dir); |
cgraham | 0:d69efd0ee139 | 15 | virtual int closedir(); |
cgraham | 0:d69efd0ee139 | 16 | virtual struct dirent *readdir(); |
cgraham | 0:d69efd0ee139 | 17 | virtual void rewinddir(); |
cgraham | 0:d69efd0ee139 | 18 | virtual off_t telldir(); |
cgraham | 0:d69efd0ee139 | 19 | virtual void seekdir(off_t location); |
cgraham | 0:d69efd0ee139 | 20 | |
cgraham | 0:d69efd0ee139 | 21 | private: |
cgraham | 0:d69efd0ee139 | 22 | FATFS_DIR dir; |
cgraham | 0:d69efd0ee139 | 23 | struct dirent cur_entry; |
cgraham | 0:d69efd0ee139 | 24 | |
cgraham | 0:d69efd0ee139 | 25 | }; |
cgraham | 0:d69efd0ee139 | 26 | |
cgraham | 0:d69efd0ee139 | 27 | } |
cgraham | 0:d69efd0ee139 | 28 | |
cgraham | 0:d69efd0ee139 | 29 | #endif |