Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: MX12 ServoRingBuffer mbed-src
Fork of SpindleBot by
SDFileSystem/FATFileSystem/FATDirHandle.h@14:7c5beaa9fb01, 2015-08-13 (annotated)
- Committer:
- labmrd
- Date:
- Thu Aug 13 17:55:40 2015 +0000
- Revision:
- 14:7c5beaa9fb01
- Parent:
- 4:e44ac08027bd
This revision marks Mark's mark of resignation from the labmrd mbed account.
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
labmrd | 4:e44ac08027bd | 1 | /* mbed Microcontroller Library |
labmrd | 4:e44ac08027bd | 2 | * Copyright (c) 2006-2012 ARM Limited |
labmrd | 4:e44ac08027bd | 3 | * |
labmrd | 4:e44ac08027bd | 4 | * Permission is hereby granted, free of charge, to any person obtaining a copy |
labmrd | 4:e44ac08027bd | 5 | * of this software and associated documentation files (the "Software"), to deal |
labmrd | 4:e44ac08027bd | 6 | * in the Software without restriction, including without limitation the rights |
labmrd | 4:e44ac08027bd | 7 | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell |
labmrd | 4:e44ac08027bd | 8 | * copies of the Software, and to permit persons to whom the Software is |
labmrd | 4:e44ac08027bd | 9 | * furnished to do so, subject to the following conditions: |
labmrd | 4:e44ac08027bd | 10 | * |
labmrd | 4:e44ac08027bd | 11 | * The above copyright notice and this permission notice shall be included in |
labmrd | 4:e44ac08027bd | 12 | * all copies or substantial portions of the Software. |
labmrd | 4:e44ac08027bd | 13 | * |
labmrd | 4:e44ac08027bd | 14 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
labmrd | 4:e44ac08027bd | 15 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
labmrd | 4:e44ac08027bd | 16 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE |
labmrd | 4:e44ac08027bd | 17 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER |
labmrd | 4:e44ac08027bd | 18 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, |
labmrd | 4:e44ac08027bd | 19 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE |
labmrd | 4:e44ac08027bd | 20 | * SOFTWARE. |
labmrd | 4:e44ac08027bd | 21 | */ |
labmrd | 4:e44ac08027bd | 22 | #ifndef MBED_FATDIRHANDLE_H |
labmrd | 4:e44ac08027bd | 23 | #define MBED_FATDIRHANDLE_H |
labmrd | 4:e44ac08027bd | 24 | |
labmrd | 4:e44ac08027bd | 25 | #include "DirHandle.h" |
labmrd | 4:e44ac08027bd | 26 | |
labmrd | 4:e44ac08027bd | 27 | using namespace mbed; |
labmrd | 4:e44ac08027bd | 28 | |
labmrd | 4:e44ac08027bd | 29 | class FATDirHandle : public DirHandle { |
labmrd | 4:e44ac08027bd | 30 | |
labmrd | 4:e44ac08027bd | 31 | public: |
labmrd | 4:e44ac08027bd | 32 | FATDirHandle(const FATFS_DIR &the_dir); |
labmrd | 4:e44ac08027bd | 33 | virtual int closedir(); |
labmrd | 4:e44ac08027bd | 34 | virtual struct dirent *readdir(); |
labmrd | 4:e44ac08027bd | 35 | virtual void rewinddir(); |
labmrd | 4:e44ac08027bd | 36 | virtual off_t telldir(); |
labmrd | 4:e44ac08027bd | 37 | virtual void seekdir(off_t location); |
labmrd | 4:e44ac08027bd | 38 | |
labmrd | 4:e44ac08027bd | 39 | private: |
labmrd | 4:e44ac08027bd | 40 | FATFS_DIR dir; |
labmrd | 4:e44ac08027bd | 41 | struct dirent cur_entry; |
labmrd | 4:e44ac08027bd | 42 | |
labmrd | 4:e44ac08027bd | 43 | }; |
labmrd | 4:e44ac08027bd | 44 | |
labmrd | 4:e44ac08027bd | 45 | #endif |