MRD Lab / SpindleBot_1_5b

Dependencies:   MX12 ServoRingBuffer mbed-src

Fork of SpindleBot by MRD Lab

Committer:
labmrd
Date:
Mon Apr 06 21:23:36 2015 +0000
Revision:
4:e44ac08027bd
This is the state of the art before Rod busted in, Kool Aid Man Style, and blew the whole shebang wigitty-wide open.  From now on, we worship at the alter of the Two State Solution as proposed by Dr. Rod Dockter Master of Science.

Who changed what in which revision?

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