Changes to allow hardware camera trigger
Fork of GPS_Incremental by
FatFileSystem/FATFileHandle.h@10:078891935385, 2013-04-18 (annotated)
- Committer:
- dannyman939
- Date:
- Thu Apr 18 00:59:49 2013 +0000
- Revision:
- 10:078891935385
- Parent:
- 0:c746ee34feae
Hardware trigger camera using the DigitalOut of Pin 2
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 |