#include <nz_appConfig.h>
Data Fields | |
BYTE | IncNum |
WORD | Address |
BYTE | Size |
BYTE | CRC |
BYTE | Data [26] |
BYTE | IncNumPlusOne |
Each time a setting is updated, it is first written to the CFG_COPY structure. On startup, appConfig will check if the last entry(s) in this area is(are) consistent with value in EEPROM. Only whole 32 byte blocks are used. The format of each 32 byte block is:
On startup, appConfig will look for 32 byte block with last "Incrementing number". To confirm contents is valid, last byte of block must be "Incrementing number + 1" - this indicates that whole block was successfully written. Maximum data is 26 bytes. If more is required, consecutive blocks are used. Following is possible:
--— Single Block -—
--— Multiple Blocks, Non-Contiguous data -—