ra8-firmware 0.1.0
Bare-metal firmware for the Renesas RA8 family (RA8D2 / RA8P1)
Loading...
Searching...
No Matches
cache_store_demo_cfg_t Struct Reference

Injected dependencies + caller-owned buffers for cache_store_demo_run. More...

#include <cache_store_demo.h>

Collaboration diagram for cache_store_demo_cfg_t:

Data Fields

struct LX_NOR_FLASH_STRUCT * nor_flash
 Caller-owned LevelX control block.
ra8_cache_store_nor_init_fn nor_driver_init
 Injected physical-flash bind.
ra8_cache_store_entry_tindex
 Caller-owned index array.
uint8_t * staging
 Caller-owned >=1-sector scratch.
uint8_t * scratch
 Read-back scratch (>= largest blob).
uint32_t staging_bytes
 Bytes at staging (>= sector).
uint32_t scratch_bytes
 Bytes at scratch.
uint32_t logical_sectors
 Usable LevelX logical-sector span.
uint16_t index_cap
 Index slots (max live entries).

Detailed Description

Injected dependencies + caller-owned buffers for cache_store_demo_run.

Open/Closed seam: the demo owns no globals. The LevelX control block, the physical-flash driver bind, the store index array, the one-sector staging buffer, and a read-back scratch buffer are all passed in, so the ARM app (RAM driver over SRAM) and the host test (RAM driver on the host) drive the same core through different buffers.

Invariant
nor_flash, nor_driver_init, index, staging, and scratch are non-NULL; index_cap > 0; scratch_bytes covers the largest demo blob.
Since
0.1.0

Definition at line 106 of file cache_store_demo.h.

Field Documentation

◆ index

ra8_cache_store_entry_t* cache_store_demo_cfg_t::index

Caller-owned index array.

Definition at line 109 of file cache_store_demo.h.

Referenced by internal_demo_build_cfg(), and internal_demo_phase_remount().

◆ index_cap

uint16_t cache_store_demo_cfg_t::index_cap

Index slots (max live entries).

Definition at line 115 of file cache_store_demo.h.

Referenced by internal_demo_build_cfg(), and internal_demo_phase_remount().

◆ logical_sectors

uint32_t cache_store_demo_cfg_t::logical_sectors

Usable LevelX logical-sector span.

Definition at line 114 of file cache_store_demo.h.

Referenced by internal_demo_build_cfg().

◆ nor_driver_init

ra8_cache_store_nor_init_fn cache_store_demo_cfg_t::nor_driver_init

Injected physical-flash bind.

Definition at line 108 of file cache_store_demo.h.

Referenced by internal_demo_build_cfg().

◆ nor_flash

struct LX_NOR_FLASH_STRUCT* cache_store_demo_cfg_t::nor_flash

Caller-owned LevelX control block.

Definition at line 107 of file cache_store_demo.h.

Referenced by internal_demo_build_cfg().

◆ scratch

uint8_t* cache_store_demo_cfg_t::scratch

Read-back scratch (>= largest blob).

Definition at line 111 of file cache_store_demo.h.

Referenced by internal_demo_get_and_verify(), and internal_demo_put_and_verify().

◆ scratch_bytes

uint32_t cache_store_demo_cfg_t::scratch_bytes

Bytes at scratch.

Definition at line 113 of file cache_store_demo.h.

Referenced by internal_demo_put_and_verify().

◆ staging

uint8_t* cache_store_demo_cfg_t::staging

Caller-owned >=1-sector scratch.

Definition at line 110 of file cache_store_demo.h.

Referenced by internal_demo_build_cfg(), and internal_demo_phase_remount().

◆ staging_bytes

uint32_t cache_store_demo_cfg_t::staging_bytes

Bytes at staging (>= sector).

Definition at line 112 of file cache_store_demo.h.

Referenced by internal_demo_build_cfg(), and internal_demo_phase_remount().


The documentation for this struct was generated from the following file: