James Heavey / Mbed 2 deprecated 2665-Breakout-Game

Dependencies:   mbed

Committer:
jamesheavey
Date:
Tue Jan 05 01:14:11 2021 +0000
Revision:
0:92b180c8d407
test

Who changed what in which revision?

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