Shared persist save and restore helpers for the stores. More...
Go to the source code of this file.
Functions | |
| static bool | store_restore (uint32_t key, void *state, size_t size, uint8_t tag) |
Restore a saved blob into state, but only when it is this store's own current layout. | |
| static bool | store_save (uint32_t key, void *state, size_t size, uint8_t tag) |
| Save a store's blob with its tag stamped in, so the next restore can recognize it. | |
| bool | store_save_changed (uint32_t key, void *state, size_t size, size_t reading_size, uint8_t tag, uint32_t *saved_sum) |
| Save a store's blob only when its reading is different from what is already on flash. | |
| bool | store_restore_reading (uint32_t key, void *state, size_t size, size_t reading_size, uint8_t tag, uint32_t *saved_sum) |
| Restore a saved blob as store_restore does, and record the sum of the reading it holds. | |
Shared persist save and restore helpers for the stores.