Nexus Embedded Platform 0.1.0
Statically assembled reusable embedded mechanisms
Loading...
Searching...
No Matches
nx_storage_t Struct Reference

Instance metadata with caller-sized workspace. More...

#include <storage.h>

Data Fields

nx_storage_port_t flash
size_t offset
size_t bank_size
size_t payload_offset
uint64_t generation
size_t payload_size
int active_bank
bool opened
uint8_t * workspace
size_t workspace_bytes

Detailed Description

Instance metadata with caller-sized workspace.

Note
Two independently erasable banks commit whole blobs. No heap, global registry, maximum pool or default product reservation. Wire format v1 is explicit little-endian and CRC-protected, not authenticated. Keep instance, port context and workspace alive through close/quiescence. A mutating I/O error invalidates opened; reopen to establish which commit actually survived.

Definition at line 61 of file storage.h.

Field Documentation

◆ active_bank

int nx_storage_t::active_bank

Definition at line 68 of file storage.h.

◆ bank_size

size_t nx_storage_t::bank_size

Definition at line 64 of file storage.h.

◆ flash

nx_storage_port_t nx_storage_t::flash

Definition at line 62 of file storage.h.

◆ generation

uint64_t nx_storage_t::generation

Definition at line 66 of file storage.h.

◆ offset

size_t nx_storage_t::offset

Definition at line 63 of file storage.h.

◆ opened

bool nx_storage_t::opened

Definition at line 69 of file storage.h.

◆ payload_offset

size_t nx_storage_t::payload_offset

Definition at line 65 of file storage.h.

◆ payload_size

size_t nx_storage_t::payload_size

Definition at line 67 of file storage.h.

◆ workspace

uint8_t* nx_storage_t::workspace

Definition at line 70 of file storage.h.

◆ workspace_bytes

size_t nx_storage_t::workspace_bytes

Definition at line 71 of file storage.h.


The documentation for this struct was generated from the following file:
  • components/storage/include/nexus/components/storage.h