James Heavey / Mbed 2 deprecated 2665-Breakout-Game

Dependencies:   mbed

Committer:
jamesheavey
Date:
Tue Jan 05 01:14:11 2021 +0000
Revision:
0:92b180c8d407
test

Who changed what in which revision?

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