Renesas / USBHost_custom

Dependents:   GR-PEACH_HVC-P2_sample_client mbed-os-storage-access GR-PEACH_Digital_Signage GR-PEACH_Audio_Playback_Sample ... more

Fork of USBHost by mbed official

Committer:
dkato
Date:
Tue Feb 28 02:51:39 2017 +0000
Revision:
37:22e8f744bbad
Tentative change for FATFileSystem revision error.

Who changed what in which revision?

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