44typedef enum : uint8_t {
62typedef enum : uint8_t {
cache_store_demo_stage_t
Furthest sequence stage the demo reached (for diagnostics on failure).
@ k_cache_store_demo_stage_closed
Checkpointed + clean-closed.
@ k_cache_store_demo_stage_none
Nothing ran yet.
@ k_cache_store_demo_stage_persisted
Survivors + pin confirmed on media.
@ k_cache_store_demo_stage_reused
Re-put into the reclaimed sectors.
@ k_cache_store_demo_stage_mounted
Store formatted + mounted.
@ k_cache_store_demo_stage_seeded
Entries put + read-verified.
@ k_cache_store_demo_stage_remounted
Re-opened over the same media.
@ k_cache_store_demo_stage_evicted
Pinned one, forced an eviction.
cache_store_demo_status_t
Granular verdict for one cache_store_demo_run.
@ k_cache_store_demo_err_remount
Re-mount over the same media failed.
@ k_cache_store_demo_err_evict
Eviction / survivor / pin-guard failed.
@ k_cache_store_demo_err_seed
A put or its read-back verify failed.
@ k_cache_store_demo_err_persist
A survivor / eviction / pin did not.
@ k_cache_store_demo_err_arg
NULL config / result / buffer.
@ k_cache_store_demo_ok
All stages passed.
@ k_cache_store_demo_err_mount
Format + mount failed.
@ k_cache_store_demo_err_reuse
Re-put into reclaimed sectors failed.
@ k_cache_store_demo_err_close
Checkpoint + close failed.
ra8_err_t cache_store_demo_run(const cache_store_demo_cfg_t *cfg, cache_store_demo_result_t *out)
Run the full ra8_cache_store on-media cache demonstration, end to end.
Persistent key(CRC32)->blob cache for compiled .rabook containers,built on the vendored,...
unsigned int(* ra8_cache_store_nor_init_fn)(struct LX_NOR_FLASH_STRUCT *nor_flash)
LevelX NOR driver-initialise seam (the injected physical-flash bind).
Error Code Definitions for ra8-firmware.
ra8_err_codes_t ra8_err_t
Canonical error-return type used by every ra8-firmware API.
Injected dependencies + caller-owned buffers for cache_store_demo_run.
ra8_cache_store_entry_t * index
Caller-owned index array.
uint32_t scratch_bytes
Bytes at scratch.
struct LX_NOR_FLASH_STRUCT * nor_flash
Caller-owned LevelX control block.
uint16_t index_cap
Index slots (max live entries).
uint8_t * scratch
Read-back scratch (>= largest blob).
ra8_cache_store_nor_init_fn nor_driver_init
Injected physical-flash bind.
uint32_t staging_bytes
Bytes at staging (>= sector).
uint32_t logical_sectors
Usable LevelX logical-sector span.
uint8_t * staging
Caller-owned >=1-sector scratch.
Outcome + observable facts of one demo run (for the banner / asserts).
bool pin_survived
Pinned entry still refuses eviction.
cache_store_demo_status_t status
Overall verdict.
bool evicted_stayed_gone
Evicted key still absent post-remount.
uint32_t survivors
Live entries after the remount.
cache_store_demo_stage_t last_stage
Furthest stage reached.
uint32_t evicted_key
Key dropped by the forced eviction.
One RAM index slot: key -> {header sector, run length, payload len}.