LCD1289Serial_Ethenet
Dependencies: EthernetInterface FatFileSystemCpp SDFileSystem mbed-rtos mbed
FatFileSystemCpp/FATFileHandle.h@0:a5367e4d8591, 2012-11-07 (annotated)
- Committer:
- shindo
- Date:
- Wed Nov 07 06:42:34 2012 +0000
- Revision:
- 0:a5367e4d8591
LCD1289Serial_Ethenet
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
shindo | 0:a5367e4d8591 | 1 | /* mbed Microcontroller Library - FATFileHandle |
shindo | 0:a5367e4d8591 | 2 | * Copyright (c) 2008, sford |
shindo | 0:a5367e4d8591 | 3 | */ |
shindo | 0:a5367e4d8591 | 4 | |
shindo | 0:a5367e4d8591 | 5 | #ifndef MBED_FATFILEHANDLE_H |
shindo | 0:a5367e4d8591 | 6 | #define MBED_FATFILEHANDLE_H |
shindo | 0:a5367e4d8591 | 7 | |
shindo | 0:a5367e4d8591 | 8 | #include "FileHandle.h" |
shindo | 0:a5367e4d8591 | 9 | #include "ff.h" |
shindo | 0:a5367e4d8591 | 10 | |
shindo | 0:a5367e4d8591 | 11 | namespace mbed { |
shindo | 0:a5367e4d8591 | 12 | |
shindo | 0:a5367e4d8591 | 13 | class FATFileHandle : public FileHandle { |
shindo | 0:a5367e4d8591 | 14 | public: |
shindo | 0:a5367e4d8591 | 15 | |
shindo | 0:a5367e4d8591 | 16 | FATFileHandle(FIL fh); |
shindo | 0:a5367e4d8591 | 17 | virtual int close(); |
shindo | 0:a5367e4d8591 | 18 | virtual ssize_t write(const void* buffer, size_t length); |
shindo | 0:a5367e4d8591 | 19 | virtual ssize_t read(void* buffer, size_t length); |
shindo | 0:a5367e4d8591 | 20 | virtual int isatty(); |
shindo | 0:a5367e4d8591 | 21 | virtual off_t lseek(off_t position, int whence); |
shindo | 0:a5367e4d8591 | 22 | virtual int fsync(); |
shindo | 0:a5367e4d8591 | 23 | virtual off_t flen(); |
shindo | 0:a5367e4d8591 | 24 | |
shindo | 0:a5367e4d8591 | 25 | protected: |
shindo | 0:a5367e4d8591 | 26 | |
shindo | 0:a5367e4d8591 | 27 | FIL _fh; |
shindo | 0:a5367e4d8591 | 28 | |
shindo | 0:a5367e4d8591 | 29 | }; |
shindo | 0:a5367e4d8591 | 30 | |
shindo | 0:a5367e4d8591 | 31 | } |
shindo | 0:a5367e4d8591 | 32 | |
shindo | 0:a5367e4d8591 | 33 | #endif |