ECE 2035 Homework

Dependencies:   mbed wave_player 4DGL-uLCD-SE MMA8452

Committer:
zkang0729
Date:
Thu Nov 14 17:14:37 2019 +0000
Revision:
4:e3fbc74a3783
Parent:
0:35660d7952f7
Initial Commit;

Who changed what in which revision?

UserRevisionLine numberNew contents of line
rconnorlawson 0:35660d7952f7 1 /* mbed Microcontroller Library
rconnorlawson 0:35660d7952f7 2 * Copyright (c) 2006-2012 ARM Limited
rconnorlawson 0:35660d7952f7 3 *
rconnorlawson 0:35660d7952f7 4 * Permission is hereby granted, free of charge, to any person obtaining a copy
rconnorlawson 0:35660d7952f7 5 * of this software and associated documentation files (the "Software"), to deal
rconnorlawson 0:35660d7952f7 6 * in the Software without restriction, including without limitation the rights
rconnorlawson 0:35660d7952f7 7 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
rconnorlawson 0:35660d7952f7 8 * copies of the Software, and to permit persons to whom the Software is
rconnorlawson 0:35660d7952f7 9 * furnished to do so, subject to the following conditions:
rconnorlawson 0:35660d7952f7 10 *
rconnorlawson 0:35660d7952f7 11 * The above copyright notice and this permission notice shall be included in
rconnorlawson 0:35660d7952f7 12 * all copies or substantial portions of the Software.
rconnorlawson 0:35660d7952f7 13 *
rconnorlawson 0:35660d7952f7 14 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
rconnorlawson 0:35660d7952f7 15 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
rconnorlawson 0:35660d7952f7 16 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
rconnorlawson 0:35660d7952f7 17 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
rconnorlawson 0:35660d7952f7 18 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
rconnorlawson 0:35660d7952f7 19 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
rconnorlawson 0:35660d7952f7 20 * SOFTWARE.
rconnorlawson 0:35660d7952f7 21 */
rconnorlawson 0:35660d7952f7 22 #ifndef MBED_FATDIRHANDLE_H
rconnorlawson 0:35660d7952f7 23 #define MBED_FATDIRHANDLE_H
rconnorlawson 0:35660d7952f7 24
rconnorlawson 0:35660d7952f7 25 #include "DirHandle.h"
rconnorlawson 0:35660d7952f7 26
rconnorlawson 0:35660d7952f7 27 using namespace mbed;
rconnorlawson 0:35660d7952f7 28
rconnorlawson 0:35660d7952f7 29 class FATDirHandle : public DirHandle {
rconnorlawson 0:35660d7952f7 30
rconnorlawson 0:35660d7952f7 31 public:
rconnorlawson 0:35660d7952f7 32 FATDirHandle(const FATFS_DIR &the_dir);
rconnorlawson 0:35660d7952f7 33 virtual int closedir();
rconnorlawson 0:35660d7952f7 34 virtual struct dirent *readdir();
rconnorlawson 0:35660d7952f7 35 virtual void rewinddir();
rconnorlawson 0:35660d7952f7 36 virtual off_t telldir();
rconnorlawson 0:35660d7952f7 37 virtual void seekdir(off_t location);
rconnorlawson 0:35660d7952f7 38
rconnorlawson 0:35660d7952f7 39 private:
rconnorlawson 0:35660d7952f7 40 FATFS_DIR dir;
rconnorlawson 0:35660d7952f7 41 struct dirent cur_entry;
rconnorlawson 0:35660d7952f7 42
rconnorlawson 0:35660d7952f7 43 };
rconnorlawson 0:35660d7952f7 44
rconnorlawson 0:35660d7952f7 45 #endif