Fork of Smoothie to port to mbed non-LPC targets.

Dependencies:   mbed

Fork of Smoothie by Stéphane Cachat

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers FATDirHandle.h Source File

FATDirHandle.h

00001 /* mbed Microcontroller Library - FATDirHandle
00002  * Copyright (c) 2008, sford
00003  */
00004 
00005 #ifndef MBED_FATDIRHANDLE_H
00006 #define MBED_FATDIRHANDLE_H
00007 
00008 #include "DirHandle.h"
00009 #include "ff.h"
00010 
00011 namespace mbed {
00012 
00013 class FATDirHandle : public DirHandle {
00014 
00015  public:
00016     FATDirHandle(const DIR_t &the_dir);
00017     virtual int closedir();
00018     virtual struct dirent *readdir();
00019     virtual void rewinddir();
00020     virtual off_t telldir();
00021     virtual void seekdir(off_t location);
00022 
00023  private:
00024     DIR_t dir;
00025     struct dirent cur_entry;
00026 
00027 };
00028 
00029 }
00030 
00031 #endif