141 uint8_t per_sector,
int keep,
174 uint8_t per_sector,
int keep);
int out_store_map_stale_keep(const out_store_rec_t *recs, uint8_t sectors, uint8_t per_sector, int keep)
The same, never offering sector keep while no record is valid (see out_store_map_write_keep()).
Definition out_store_map.c:155
bool out_store_map_write_keep(const out_store_rec_t *recs, uint8_t sectors, uint8_t per_sector, int keep, out_store_write_t *out)
The same, with sector keep never erased while no record is valid: it holds the live record of the lay...
Definition out_store_map.c:77
bool out_store_intact(uint32_t zeros, uint32_t zeros_inv, uint32_t counted)
Whether a record was written whole and has stayed as it was written.
Definition out_store_map.c:175
bool out_store_map_write(const out_store_rec_t *recs, uint8_t sectors, uint8_t per_sector, out_store_write_t *out)
Plan the next save.
Definition out_store_map.c:71
int out_store_map_stale(const out_store_rec_t *recs, uint8_t sectors, uint8_t per_sector)
A sector worth erasing now, ahead of the save that would have to wait for it, or -1 when there is non...
Definition out_store_map.c:149
int out_store_map_newest(const out_store_rec_t *recs, uint8_t sectors, uint8_t per_sector)
The live record: the valid one with the highest sequence number.
Definition out_store_map.c:52
One record slot, as the caller found it in flash.
Definition out_store_map.h:61
bool valid
Definition out_store_map.h:63
uint32_t seq
Definition out_store_map.h:64
bool erased
Definition out_store_map.h:62
Where the next save goes.
Definition out_store_map.h:68
uint32_t seq
Definition out_store_map.h:70
uint8_t at
Definition out_store_map.h:69
uint8_t erase_sector
Definition out_store_map.h:72
bool erase_first
Definition out_store_map.h:71