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