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.
PreferenceWriter/PreferenceWriter.h
- Committer:
- benkatz
- Date:
- 2017-04-05
- Revision:
- 23:2adf23ee0305
File content as of revision 23:2adf23ee0305:
#ifndef __PREFERENCE_WRITER_H
#define __PREFERENCE_WRITER_H
#include "mbed.h"
#include "FlashWriter.h"
class PreferenceWriter {
public:
PreferenceWriter(uint32_t sector);
void open();
bool ready();
void write(int x, int index);
void write(float x, int index);
void flush();
void load();
void close();
private:
FlashWriter *writer;
uint32_t __sector;
bool __ready;
};
#endif