SD Card Interface class. Log raw data bytes to memory addresses of your choice, or format the card and use the FAT file system to write files.
FATFileSystem/Interface/FATDirHandle.h@6:ddf09d859ed7, 2011-01-16 (annotated)
- Committer:
- Blaze513
- Date:
- Sun Jan 16 09:20:30 2011 +0000
- Revision:
- 6:ddf09d859ed7
- Parent:
- 4:9a5878d316d5
gave access to Initialization function to FAT module.
added disk formatting functionality.
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
Blaze513 | 4:9a5878d316d5 | 1 | /* mbed Microcontroller Library - FATDirHandle |
Blaze513 | 4:9a5878d316d5 | 2 | Copyright (c) 2008, sford */ |
Blaze513 | 4:9a5878d316d5 | 3 | |
Blaze513 | 4:9a5878d316d5 | 4 | //Modified by Thomas Hamilton, Copyright 2010 |
Blaze513 | 4:9a5878d316d5 | 5 | |
Blaze513 | 4:9a5878d316d5 | 6 | #ifndef MBED_FATDIRHANDLE_H |
Blaze513 | 4:9a5878d316d5 | 7 | #define MBED_FATDIRHANDLE_H |
Blaze513 | 4:9a5878d316d5 | 8 | |
Blaze513 | 4:9a5878d316d5 | 9 | #include "stdint.h" |
Blaze513 | 4:9a5878d316d5 | 10 | #include "ff.h" |
Blaze513 | 4:9a5878d316d5 | 11 | #include "mbed.h" |
Blaze513 | 4:9a5878d316d5 | 12 | #include "DirHandle.h" |
Blaze513 | 4:9a5878d316d5 | 13 | #include <stdio.h> |
Blaze513 | 4:9a5878d316d5 | 14 | |
Blaze513 | 4:9a5878d316d5 | 15 | class FATDirHandle : public DirHandle |
Blaze513 | 4:9a5878d316d5 | 16 | { |
Blaze513 | 4:9a5878d316d5 | 17 | private: |
Blaze513 | 4:9a5878d316d5 | 18 | FAT_DIR DirectoryObject; |
Blaze513 | 4:9a5878d316d5 | 19 | struct dirent CurrentEntry; |
Blaze513 | 4:9a5878d316d5 | 20 | |
Blaze513 | 4:9a5878d316d5 | 21 | public: |
Blaze513 | 4:9a5878d316d5 | 22 | FATDirHandle(FAT_DIR InputDirStr); |
Blaze513 | 4:9a5878d316d5 | 23 | virtual int closedir(); |
Blaze513 | 4:9a5878d316d5 | 24 | virtual struct dirent* readdir(); |
Blaze513 | 4:9a5878d316d5 | 25 | virtual void rewinddir(); |
Blaze513 | 4:9a5878d316d5 | 26 | virtual off_t telldir(); |
Blaze513 | 4:9a5878d316d5 | 27 | virtual void seekdir(off_t location); |
Blaze513 | 4:9a5878d316d5 | 28 | }; |
Blaze513 | 4:9a5878d316d5 | 29 | |
Blaze513 | 1:94c648931f84 | 30 | #endif |