|
ra8-firmware 0.1.0
Bare-metal firmware for the Renesas RA8 family (RA8D2 / RA8P1)
|
On-flash entry header at a run's first logical sector. More...
#include <ra8_cache_store_internal.h>
Data Fields | |
| uint32_t | magic |
| k_ra8_cs_entry_magic. | |
| uint32_t | seq |
| Append sequence number (monotonic). | |
| uint32_t | key |
| Content key (source CRC-32). | |
| uint32_t | byte_len |
| Payload length in bytes. | |
| uint32_t | start_sector |
| This header's own logical sector (self-anchor). | |
| uint16_t | sector_count |
| Run length (header + payload sectors). | |
| uint16_t | flags |
| Persisted flags (pinned bit). | |
| uint32_t | hdr_crc |
| CRC-32 over the six fields above. | |
On-flash entry header at a run's first logical sector.
Written last in a put (after the payload sectors), so its presence certifies a complete append. Stores its own start_sector so a stray payload sector cannot masquerade as a header during a scan.
Definition at line 108 of file ra8_cache_store_internal.h.
| uint32_t ra8_cs_entry_hdr_t::byte_len |
Payload length in bytes.
Definition at line 112 of file ra8_cache_store_internal.h.
Referenced by internal_scan_accept().
| uint16_t ra8_cs_entry_hdr_t::flags |
Persisted flags (pinned bit).
Definition at line 115 of file ra8_cache_store_internal.h.
Referenced by internal_scan_accept().
| uint32_t ra8_cs_entry_hdr_t::hdr_crc |
CRC-32 over the six fields above.
Definition at line 116 of file ra8_cache_store_internal.h.
Referenced by internal_hdr_read(), and internal_write_entry().
| uint32_t ra8_cs_entry_hdr_t::key |
Content key (source CRC-32).
Definition at line 111 of file ra8_cache_store_internal.h.
Referenced by internal_scan_accept().
| uint32_t ra8_cs_entry_hdr_t::magic |
Definition at line 109 of file ra8_cache_store_internal.h.
Referenced by internal_hdr_read().
| uint16_t ra8_cs_entry_hdr_t::sector_count |
Run length (header + payload sectors).
Definition at line 114 of file ra8_cache_store_internal.h.
Referenced by internal_hdr_read(), internal_scan_accept(), and internal_scan_log().
| uint32_t ra8_cs_entry_hdr_t::seq |
Append sequence number (monotonic).
Definition at line 110 of file ra8_cache_store_internal.h.
Referenced by internal_scan_accept().
| uint32_t ra8_cs_entry_hdr_t::start_sector |
This header's own logical sector (self-anchor).
Definition at line 113 of file ra8_cache_store_internal.h.
Referenced by internal_hdr_read(), and internal_scan_accept().