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.
FATFileHandle.h
00001 /* mbed Microcontroller Library - FATFileHandle 00002 Copyright (c) 2008, sford */ 00003 00004 //Modified by Thomas Hamilton, Copyright 2010 00005 00006 #ifndef MBED_FATFILEHANDLE_H 00007 #define MBED_FATFILEHANDLE_H 00008 00009 #include "stdint.h" 00010 #include "ff.h" 00011 #include "mbed.h" 00012 #include "FileHandle.h" 00013 #include <stdio.h> 00014 00015 class FATFileHandle : public FileHandle 00016 { 00017 private: 00018 FAT_FIL FileObject; 00019 00020 public: 00021 FATFileHandle(FAT_FIL InputFilStr); 00022 virtual ssize_t write(const void* buffer, size_t length); 00023 virtual int close(); 00024 virtual ssize_t read(void* buffer, size_t length); 00025 virtual int isatty(); 00026 virtual off_t lseek(off_t offset, int whence); 00027 virtual int fsync(); 00028 virtual off_t flen(); 00029 }; 00030 00031 #endif
Generated on Wed Jul 13 2022 08:04:37 by
1.7.2