87 #ifndef _HSK_PERSIST_H_ 88 #define _HSK_PERSIST_H_ 94 #include "../hsk_isr/hsk_isr.isr" 103 #if !defined XC878_16FF && !defined XC878_13FF 125 #define FLASH_STRUCT_FACTORY(members) \ 130 volatile struct hsk_flash_struct {\ 136 ubyte hsk_flash_prefix;\ 145 ubyte hsk_flash_chksum;\ 159 #define FLASH_PWR_FIRST 0 172 #define FLASH_PWR_RESET 1 182 #define FLASH_PWR_ON 2 209 const ubyte __xdata version);
uword size
The size of the data structure to persist.
Definition: hsk_flash.c:430
ubyte hsk_flash_init(void *const ptr, const uword size, const ubyte version)
Recovers a struct from a previous session and sets everything up for storage of changes.
Definition: hsk_flash.c:980
bool hsk_flash_write(void)
Writes the current data to the D-Flash.
Definition: hsk_flash.c:1116
ubyte * ptr
The pointer to the data structure to persist.
Definition: hsk_flash.c:425