USBMSD SD card Hello World for Mbed platforms
Dependencies: mbed USBMSD_SD USBDevice
Diff: ChaNFS/FATDirHandle.h
- Revision:
- 7:6494da2a5c60
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/ChaNFS/FATDirHandle.h Mon Nov 14 12:08:32 2011 +0000 @@ -0,0 +1,31 @@ +/* mbed Microcontroller Library - FATDirHandle + * Copyright (c) 2008, sford + */ + +#ifndef MBED_FATDIRHANDLE_H +#define MBED_FATDIRHANDLE_H + +#include "DirHandle.h" +#include "ff.h" + +namespace mbed { + +class FATDirHandle : public DirHandle { + + public: + FATDirHandle(const DIR_t &the_dir); + virtual int closedir(); + virtual struct dirent *readdir(); + virtual void rewinddir(); + virtual off_t telldir(); + virtual void seekdir(off_t location); + + private: + DIR_t dir; + struct dirent cur_entry; + +}; + +} + +#endif