LCD1289Serial_Ethenet
Dependencies: EthernetInterface FatFileSystemCpp SDFileSystem mbed-rtos mbed
FatFileSystemCpp/FATDirHandle.h@0:a5367e4d8591, 2012-11-07 (annotated)
- Committer:
- shindo
- Date:
- Wed Nov 07 06:42:34 2012 +0000
- Revision:
- 0:a5367e4d8591
LCD1289Serial_Ethenet
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
shindo | 0:a5367e4d8591 | 1 | /* mbed Microcontroller Library - FATDirHandle |
shindo | 0:a5367e4d8591 | 2 | * Copyright (c) 2008, sford |
shindo | 0:a5367e4d8591 | 3 | */ |
shindo | 0:a5367e4d8591 | 4 | |
shindo | 0:a5367e4d8591 | 5 | #ifndef MBED_FATDIRHANDLE_H |
shindo | 0:a5367e4d8591 | 6 | #define MBED_FATDIRHANDLE_H |
shindo | 0:a5367e4d8591 | 7 | |
shindo | 0:a5367e4d8591 | 8 | #include "DirHandle.h" |
shindo | 0:a5367e4d8591 | 9 | #include "ff.h" |
shindo | 0:a5367e4d8591 | 10 | |
shindo | 0:a5367e4d8591 | 11 | namespace mbed { |
shindo | 0:a5367e4d8591 | 12 | |
shindo | 0:a5367e4d8591 | 13 | class FATDirHandle : public DirHandle { |
shindo | 0:a5367e4d8591 | 14 | |
shindo | 0:a5367e4d8591 | 15 | public: |
shindo | 0:a5367e4d8591 | 16 | FATDirHandle(const FATFS_DIR &the_dir); |
shindo | 0:a5367e4d8591 | 17 | virtual int closedir(); |
shindo | 0:a5367e4d8591 | 18 | virtual struct dirent *readdir(); |
shindo | 0:a5367e4d8591 | 19 | virtual void rewinddir(); |
shindo | 0:a5367e4d8591 | 20 | virtual off_t telldir(); |
shindo | 0:a5367e4d8591 | 21 | virtual void seekdir(off_t location); |
shindo | 0:a5367e4d8591 | 22 | |
shindo | 0:a5367e4d8591 | 23 | private: |
shindo | 0:a5367e4d8591 | 24 | FATFS_DIR dir; |
shindo | 0:a5367e4d8591 | 25 | struct dirent cur_entry; |
shindo | 0:a5367e4d8591 | 26 | |
shindo | 0:a5367e4d8591 | 27 | }; |
shindo | 0:a5367e4d8591 | 28 | |
shindo | 0:a5367e4d8591 | 29 | } |
shindo | 0:a5367e4d8591 | 30 | |
shindo | 0:a5367e4d8591 | 31 | #endif |