Code for autonomous ground vehicle, Data Bus, 3rd place winner in 2012 Sparkfun AVC.

Dependencies:   Watchdog mbed Schedule SimpleFilter LSM303DLM PinDetect DebounceIn Servo

Committer:
shimniok
Date:
Wed Jun 20 14:57:48 2012 +0000
Revision:
0:826c6171fc1b
Updated documentation

Who changed what in which revision?

UserRevisionLine numberNew contents of line
shimniok 0:826c6171fc1b 1 /* mbed Microcontroller Library - FATFileHandle
shimniok 0:826c6171fc1b 2 Copyright (c) 2008, sford */
shimniok 0:826c6171fc1b 3
shimniok 0:826c6171fc1b 4 //Modified by Thomas Hamilton, Copyright 2010
shimniok 0:826c6171fc1b 5
shimniok 0:826c6171fc1b 6 #ifndef MBED_FATFILEHANDLE_H
shimniok 0:826c6171fc1b 7 #define MBED_FATFILEHANDLE_H
shimniok 0:826c6171fc1b 8
shimniok 0:826c6171fc1b 9 #include "stdint.h"
shimniok 0:826c6171fc1b 10 #include "ff.h"
shimniok 0:826c6171fc1b 11 #include "mbed.h"
shimniok 0:826c6171fc1b 12 #include "FileHandle.h"
shimniok 0:826c6171fc1b 13 #include <stdio.h>
shimniok 0:826c6171fc1b 14
shimniok 0:826c6171fc1b 15 class FATFileHandle : public FileHandle
shimniok 0:826c6171fc1b 16 {
shimniok 0:826c6171fc1b 17 private:
shimniok 0:826c6171fc1b 18 FAT_FIL FileObject;
shimniok 0:826c6171fc1b 19
shimniok 0:826c6171fc1b 20 public:
shimniok 0:826c6171fc1b 21 FATFileHandle(FAT_FIL InputFilStr);
shimniok 0:826c6171fc1b 22 virtual ssize_t write(const void* buffer, size_t length);
shimniok 0:826c6171fc1b 23 virtual int close();
shimniok 0:826c6171fc1b 24 virtual ssize_t read(void* buffer, size_t length);
shimniok 0:826c6171fc1b 25 virtual int isatty();
shimniok 0:826c6171fc1b 26 virtual off_t lseek(off_t offset, int whence);
shimniok 0:826c6171fc1b 27 virtual int fsync();
shimniok 0:826c6171fc1b 28 virtual off_t flen();
shimniok 0:826c6171fc1b 29 };
shimniok 0:826c6171fc1b 30
shimniok 0:826c6171fc1b 31 #endif