|
int | fcb_init (int f_area_id, struct fcb *fcb) |
| Initialize FCB instance.
|
|
int | fcb_append (struct fcb *fcb, uint16_t len, struct fcb_entry *loc) |
| Appends an entry to circular buffer.
|
|
int | fcb_append_finish (struct fcb *fcb, struct fcb_entry *append_loc) |
| Finishes entry append operation.
|
|
int | fcb_walk (struct fcb *fcb, struct flash_sector *sector, fcb_walk_cb cb, void *cb_arg) |
| Walk over all entries in the FCB sector.
|
|
int | fcb_getnext (struct fcb *fcb, struct fcb_entry *loc) |
| Get next fcb entry location.
|
|
int | fcb_rotate (struct fcb *fcb) |
| Rotate fcb sectors.
|
|
int | fcb_append_to_scratch (struct fcb *fcb) |
| Start using the scratch block.
|
|
int | fcb_free_sector_cnt (struct fcb *fcb) |
| Get free sector count.
|
|
int | fcb_is_empty (struct fcb *fcb) |
| Check whether FCB has any data.
|
|
int | fcb_offset_last_n (struct fcb *fcb, uint8_t entries, struct fcb_entry *last_n_entry) |
| Finds the fcb entry that gives back up to n entries at the end.
|
|
int | fcb_clear (struct fcb *fcb) |
| Clear fcb instance storage.
|
|
int | fcb_flash_read (const struct fcb *fcb, const struct flash_sector *sector, off_t off, void *dst, size_t len) |
| Read raw data from the fcb flash sector.
|
|
int | fcb_flash_write (const struct fcb *fcb, const struct flash_sector *sector, off_t off, const void *src, size_t len) |
| Write raw data to the fcb flash sector.
|
|