SDFileSystem Library

Dependents:   ECE2035_SUM17_Project

Committer:
kennyainny
Date:
Fri Jul 14 21:42:13 2017 +0000
Revision:
0:71be9322f4eb
no changes

Who changed what in which revision?

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