J L
/
Neptune_170620
Neptune_170620
Diff: NVM.h
- Revision:
- 0:20b4b057fa7f
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/NVM.h Wed Jun 17 10:11:19 2020 +0000 @@ -0,0 +1,19 @@ + +#ifndef NVM_H +#define NVM_H + +#include "mbed.h" + +extern const char romNVM[]; + +bool writeNVM(uint16_t start_addr,uint8_t len,struct settingsNVM *data); +void clearNVM(void); +bool blkChkEEPROM(void); +bool writeNVMByte(uint16_t addr,uint8_t val); +bool writeNVMfloat(uint16_t addr,float val); +void wrtDefNVM(struct settingsNVM *data); +void initNVM(void); +void loadNVM(struct settingsNVM *data, bool loadDefaults); + + +#endif