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

Single (code, name) pair in the ra8_err_to_str() lookup table. More...

Data Fields

ra8_err_t code
 Error code value from ra8_err_t.
const char * name
 Short ASCII name for the code (no spaces).

Detailed Description

Single (code, name) pair in the ra8_err_to_str() lookup table.

The error codes are sparse (0, 0x101..0x10F, 0x201..0x209, 0x301..0x306, 0x401..0x409, 0x501..0x509), so a directly indexed array would waste ~1.2 KB of flash. A linear-scan {code, name} table keeps the table size proportional to the number of codes (~44 entries).

Invariant
Every entry's name is a NUL-terminated string literal in .rodata (no dynamic strings).
Since
0.1.0

Definition at line 622 of file ra8_log.c.

Field Documentation

◆ code

ra8_err_t ra8_err_name_entry_t::code

Error code value from ra8_err_t.

Definition at line 623 of file ra8_log.c.

◆ name

const char* ra8_err_name_entry_t::name

Short ASCII name for the code (no spaces).

Definition at line 624 of file ra8_log.c.


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