James Heavey / Mbed 2 deprecated EL17JH

Dependencies:   mbed

Committer:
jamesheavey
Date:
Thu May 09 14:36:51 2019 +0000
Revision:
140:d8634e76ecce
Parent:
129:b47c28c7eaaf
Final Submission. I have read and agreed with Statement of Academic Integrity.

Who changed what in which revision?

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