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

One row of the drop-in block-device swap table. More...

Collaboration diagram for swap_backend_t:

Data Fields

ra8_io_blockdev_tbd
 Pre-bound block-device handle (RAM or xSPI).
const char * name
 VFS volume name, e.g.
const char * label
 11-char-max FAT volume label literal.
const char * file
 Full "<name>:/DATA.BIN" VFS path.

Detailed Description

One row of the drop-in block-device swap table.

Describes a single pre-bound block device plus the FAT/VFS identity the engine uses to mount and address it. The engine (internal_swap_run_one) consumes only these fields, so adding a third medium (SD, SDRAM, MRAM) is one more row – the engine body never changes.

Invariant
bd points at a block device already bound by its _init helper.
name is a non-empty VFS volume name with no ':' or '/'.
See also
internal_swap_run_one
Since
0.1.0

Definition at line 124 of file main.c.

Field Documentation

◆ bd

ra8_io_blockdev_t* swap_backend_t::bd

Pre-bound block-device handle (RAM or xSPI).

Definition at line 125 of file main.c.

◆ file

const char* swap_backend_t::file

Full "<name>:/DATA.BIN" VFS path.

Definition at line 128 of file main.c.

◆ label

const char* swap_backend_t::label

11-char-max FAT volume label literal.

Definition at line 127 of file main.c.

◆ name

const char* swap_backend_t::name

VFS volume name, e.g.

"ram" or "xs".

Definition at line 126 of file main.c.

Referenced by internal_swap_run_all().


The documentation for this struct was generated from the following file:
  • examples/ek_ra8d2/hw_pending/ra8_io_swap_demo/src/main.c