Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed-dev-f303 FastPWM3
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 Wed Jul 13 2022 07:21:26 by
