JEK changes enabling proper recording of IMU/GPS datastrams - 02-APR-2013
Fork of GPS_Incremental by
FatFileSystem/FATFileHandle.h@9:b45feb91ba38, 2013-04-19 (annotated)
- Committer:
- jekain314
- Date:
- Fri Apr 19 16:21:27 2013 +0000
- Revision:
- 9:b45feb91ba38
- Parent:
- 0:c746ee34feae
update to allow better imu gps data collection
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
dannyman939 | 0:c746ee34feae | 1 | /* mbed Microcontroller Library - FATFileHandle |
dannyman939 | 0:c746ee34feae | 2 | * Copyright (c) 2008, sford |
dannyman939 | 0:c746ee34feae | 3 | */ |
dannyman939 | 0:c746ee34feae | 4 | |
dannyman939 | 0:c746ee34feae | 5 | #ifndef MBED_FATFILEHANDLE_H |
dannyman939 | 0:c746ee34feae | 6 | #define MBED_FATFILEHANDLE_H |
dannyman939 | 0:c746ee34feae | 7 | |
dannyman939 | 0:c746ee34feae | 8 | #include "FileHandle.h" |
dannyman939 | 0:c746ee34feae | 9 | #include "ff.h" |
dannyman939 | 0:c746ee34feae | 10 | |
dannyman939 | 0:c746ee34feae | 11 | namespace mbed { |
dannyman939 | 0:c746ee34feae | 12 | |
dannyman939 | 0:c746ee34feae | 13 | class FATFileHandle : public FileHandle { |
dannyman939 | 0:c746ee34feae | 14 | public: |
dannyman939 | 0:c746ee34feae | 15 | |
dannyman939 | 0:c746ee34feae | 16 | FATFileHandle(FIL fh); |
dannyman939 | 0:c746ee34feae | 17 | virtual int close(); |
dannyman939 | 0:c746ee34feae | 18 | virtual ssize_t write(const void* buffer, size_t length); |
dannyman939 | 0:c746ee34feae | 19 | virtual ssize_t read(void* buffer, size_t length); |
dannyman939 | 0:c746ee34feae | 20 | virtual int isatty(); |
dannyman939 | 0:c746ee34feae | 21 | virtual off_t lseek(off_t position, int whence); |
dannyman939 | 0:c746ee34feae | 22 | virtual int fsync(); |
dannyman939 | 0:c746ee34feae | 23 | virtual off_t flen(); |
dannyman939 | 0:c746ee34feae | 24 | |
dannyman939 | 0:c746ee34feae | 25 | protected: |
dannyman939 | 0:c746ee34feae | 26 | |
dannyman939 | 0:c746ee34feae | 27 | FIL _fh; |
dannyman939 | 0:c746ee34feae | 28 | |
dannyman939 | 0:c746ee34feae | 29 | }; |
dannyman939 | 0:c746ee34feae | 30 | |
dannyman939 | 0:c746ee34feae | 31 | } |
dannyman939 | 0:c746ee34feae | 32 | |
dannyman939 | 0:c746ee34feae | 33 | #endif |