Motor control for robots. More compact, less object-oriented revision.

Dependencies:   FastPWM3 mbed-dev-f303

Fork of Hobbyking_Cheetah_V1 by Ben Katz

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers PreferenceWriter.h Source File

PreferenceWriter.h

00001 #ifndef __PREFERENCE_WRITER_H
00002 #define __PREFERENCE_WRITER_H
00003 
00004 #include "mbed.h"
00005 #include "FlashWriter.h"
00006 
00007 class PreferenceWriter {
00008 public:
00009     PreferenceWriter(uint32_t sector);
00010     void open();
00011     bool ready();
00012     void write(int x, int index);
00013     void write(float x, int index);
00014     void flush();
00015     void load();
00016     void close();
00017 private:
00018     FlashWriter *writer;
00019     uint32_t __sector;
00020     bool __ready;
00021 };
00022 
00023 #endif