temp

Dependencies:   mbed SDFileSystem MS5607 ADXL345_I2C FATFileSystem

Committer:
IKobayashi
Date:
Mon Mar 16 23:37:42 2020 +0900
Revision:
0:c88c3b616c00
copy

Who changed what in which revision?

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