Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: FatFileSystem MSCFileSystem SPI_TFTx2 TFT_fonts TOUCH_TFTx2 beep mbed
Fork of CANary_corrupt by
FatFileSystem/FATFileHandle.h
- Committer:
- TickTock
- Date:
- 2012-11-19
- Revision:
- 0:1596b8644523
File content as of revision 0:1596b8644523:
/* mbed Microcontroller Library - FATFileHandle
* Copyright (c) 2008, sford
*/
#ifndef MBED_FATFILEHANDLE_H
#define MBED_FATFILEHANDLE_H
#include "FileHandle.h"
#include "ff.h"
namespace mbed {
class FATFileHandle : public FileHandle {
public:
FATFileHandle(FIL fh);
virtual int close();
virtual ssize_t write(const void* buffer, size_t length);
virtual ssize_t read(void* buffer, size_t length);
virtual int isatty();
virtual off_t lseek(off_t position, int whence);
virtual int fsync();
virtual off_t flen();
protected:
FIL _fh;
};
}
#endif
