hh
Embed:
(wiki syntax)
Show/hide line numbers
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
Generated on Fri Jul 22 2022 01:43:47 by 1.7.2