ロケット用プログラム

Dependencies:   mbed

Committer:
ishiyamayuto
Date:
Wed Sep 11 06:37:20 2019 +0000
Revision:
0:d58274531d38
BMP180,MPU6050

Who changed what in which revision?

UserRevisionLine numberNew contents of line
ishiyamayuto 0:d58274531d38 1 /* mbed Microcontroller Library
ishiyamayuto 0:d58274531d38 2 * Copyright (c) 2006-2012 ARM Limited
ishiyamayuto 0:d58274531d38 3 *
ishiyamayuto 0:d58274531d38 4 * Permission is hereby granted, free of charge, to any person obtaining a copy
ishiyamayuto 0:d58274531d38 5 * of this software and associated documentation files (the "Software"), to deal
ishiyamayuto 0:d58274531d38 6 * in the Software without restriction, including without limitation the rights
ishiyamayuto 0:d58274531d38 7 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
ishiyamayuto 0:d58274531d38 8 * copies of the Software, and to permit persons to whom the Software is
ishiyamayuto 0:d58274531d38 9 * furnished to do so, subject to the following conditions:
ishiyamayuto 0:d58274531d38 10 *
ishiyamayuto 0:d58274531d38 11 * The above copyright notice and this permission notice shall be included in
ishiyamayuto 0:d58274531d38 12 * all copies or substantial portions of the Software.
ishiyamayuto 0:d58274531d38 13 *
ishiyamayuto 0:d58274531d38 14 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
ishiyamayuto 0:d58274531d38 15 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
ishiyamayuto 0:d58274531d38 16 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
ishiyamayuto 0:d58274531d38 17 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
ishiyamayuto 0:d58274531d38 18 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
ishiyamayuto 0:d58274531d38 19 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
ishiyamayuto 0:d58274531d38 20 * SOFTWARE.
ishiyamayuto 0:d58274531d38 21 */
ishiyamayuto 0:d58274531d38 22 #ifndef MBED_FATFILEHANDLE_H
ishiyamayuto 0:d58274531d38 23 #define MBED_FATFILEHANDLE_H
ishiyamayuto 0:d58274531d38 24
ishiyamayuto 0:d58274531d38 25 #include "FileHandle.h"
ishiyamayuto 0:d58274531d38 26
ishiyamayuto 0:d58274531d38 27 using namespace mbed;
ishiyamayuto 0:d58274531d38 28
ishiyamayuto 0:d58274531d38 29 class FATFileHandle : public FileHandle {
ishiyamayuto 0:d58274531d38 30 public:
ishiyamayuto 0:d58274531d38 31
ishiyamayuto 0:d58274531d38 32 FATFileHandle(FIL fh);
ishiyamayuto 0:d58274531d38 33 virtual int close();
ishiyamayuto 0:d58274531d38 34 virtual ssize_t write(const void* buffer, size_t length);
ishiyamayuto 0:d58274531d38 35 virtual ssize_t read(void* buffer, size_t length);
ishiyamayuto 0:d58274531d38 36 virtual int isatty();
ishiyamayuto 0:d58274531d38 37 virtual off_t lseek(off_t position, int whence);
ishiyamayuto 0:d58274531d38 38 virtual int fsync();
ishiyamayuto 0:d58274531d38 39 virtual off_t flen();
ishiyamayuto 0:d58274531d38 40
ishiyamayuto 0:d58274531d38 41 protected:
ishiyamayuto 0:d58274531d38 42
ishiyamayuto 0:d58274531d38 43 FIL _fh;
ishiyamayuto 0:d58274531d38 44
ishiyamayuto 0:d58274531d38 45 };
ishiyamayuto 0:d58274531d38 46
ishiyamayuto 0:d58274531d38 47 #endif