Dependencies:   PinDetect TextLCD mbed mRotaryEncoder

Committer:
cicklaus
Date:
Mon Feb 13 02:11:20 2012 +0000
Revision:
0:afb2650fb49a

        

Who changed what in which revision?

UserRevisionLine numberNew contents of line
cicklaus 0:afb2650fb49a 1 /* mbed Microcontroller Library - FATDirHandle
cicklaus 0:afb2650fb49a 2 Copyright (c) 2008, sford */
cicklaus 0:afb2650fb49a 3
cicklaus 0:afb2650fb49a 4 //Modified by Thomas Hamilton, Copyright 2010
cicklaus 0:afb2650fb49a 5
cicklaus 0:afb2650fb49a 6 #ifndef MBED_FATDIRHANDLE_H
cicklaus 0:afb2650fb49a 7 #define MBED_FATDIRHANDLE_H
cicklaus 0:afb2650fb49a 8
cicklaus 0:afb2650fb49a 9 #include "stdint.h"
cicklaus 0:afb2650fb49a 10 #include "ff.h"
cicklaus 0:afb2650fb49a 11 #include "mbed.h"
cicklaus 0:afb2650fb49a 12 #include "DirHandle.h"
cicklaus 0:afb2650fb49a 13 #include <stdio.h>
cicklaus 0:afb2650fb49a 14
cicklaus 0:afb2650fb49a 15 class FATDirHandle : public DirHandle
cicklaus 0:afb2650fb49a 16 {
cicklaus 0:afb2650fb49a 17 private:
cicklaus 0:afb2650fb49a 18 FAT_DIR DirectoryObject;
cicklaus 0:afb2650fb49a 19 struct dirent CurrentEntry;
cicklaus 0:afb2650fb49a 20
cicklaus 0:afb2650fb49a 21 public:
cicklaus 0:afb2650fb49a 22 FATDirHandle(FAT_DIR InputDirStr);
cicklaus 0:afb2650fb49a 23 virtual int closedir();
cicklaus 0:afb2650fb49a 24 virtual struct dirent* readdir();
cicklaus 0:afb2650fb49a 25 virtual void rewinddir();
cicklaus 0:afb2650fb49a 26 virtual off_t telldir();
cicklaus 0:afb2650fb49a 27 virtual void seekdir(off_t location);
cicklaus 0:afb2650fb49a 28 };
cicklaus 0:afb2650fb49a 29
cicklaus 0:afb2650fb49a 30 #endif