|
ra8-firmware 0.1.0
Bare-metal firmware for the Renesas RA8 family (RA8D2 / RA8P1)
|
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). | |
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).
| ra8_err_t ra8_err_name_entry_t::code |
| const char* ra8_err_name_entry_t::name |