test
Dependencies: Nanopb iSerial mbed BaseJpegDecode FatFileSystem SDFileSystem RingBuffer Camera_LS_Y201
extlib/FATFileSystem/FATFileHandle.h@0:d69efd0ee139, 2014-09-18 (annotated)
- Committer:
- cgraham
- Date:
- Thu Sep 18 15:21:47 2014 +0000
- Revision:
- 0:d69efd0ee139
test
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
cgraham | 0:d69efd0ee139 | 1 | /* mbed Microcontroller Library - FATFileHandle |
cgraham | 0:d69efd0ee139 | 2 | * Copyright (c) 2008, sford |
cgraham | 0:d69efd0ee139 | 3 | */ |
cgraham | 0:d69efd0ee139 | 4 | |
cgraham | 0:d69efd0ee139 | 5 | #ifndef MBED_FATFILEHANDLE_H |
cgraham | 0:d69efd0ee139 | 6 | #define MBED_FATFILEHANDLE_H |
cgraham | 0:d69efd0ee139 | 7 | |
cgraham | 0:d69efd0ee139 | 8 | #include "FileHandle.h" |
cgraham | 0:d69efd0ee139 | 9 | #include "ff.h" |
cgraham | 0:d69efd0ee139 | 10 | |
cgraham | 0:d69efd0ee139 | 11 | namespace mbed { |
cgraham | 0:d69efd0ee139 | 12 | |
cgraham | 0:d69efd0ee139 | 13 | class FATFileHandle : public FileHandle { |
cgraham | 0:d69efd0ee139 | 14 | public: |
cgraham | 0:d69efd0ee139 | 15 | |
cgraham | 0:d69efd0ee139 | 16 | FATFileHandle(FIL fh); |
cgraham | 0:d69efd0ee139 | 17 | virtual int close(); |
cgraham | 0:d69efd0ee139 | 18 | virtual ssize_t write(const void* buffer, size_t length); |
cgraham | 0:d69efd0ee139 | 19 | virtual ssize_t read(void* buffer, size_t length); |
cgraham | 0:d69efd0ee139 | 20 | virtual int isatty(); |
cgraham | 0:d69efd0ee139 | 21 | virtual off_t lseek(off_t position, int whence); |
cgraham | 0:d69efd0ee139 | 22 | virtual int fsync(); |
cgraham | 0:d69efd0ee139 | 23 | virtual off_t flen(); |
cgraham | 0:d69efd0ee139 | 24 | |
cgraham | 0:d69efd0ee139 | 25 | protected: |
cgraham | 0:d69efd0ee139 | 26 | |
cgraham | 0:d69efd0ee139 | 27 | FIL _fh; |
cgraham | 0:d69efd0ee139 | 28 | |
cgraham | 0:d69efd0ee139 | 29 | }; |
cgraham | 0:d69efd0ee139 | 30 | |
cgraham | 0:d69efd0ee139 | 31 | } |
cgraham | 0:d69efd0ee139 | 32 | |
cgraham | 0:d69efd0ee139 | 33 | #endif |