K-FSW v1.2.1-59-gcaca356
KFSW: modular flight software on Zephyr, for small satellites
Loading...
Searching...
No Matches
Early boot flash store

Functions

int kfsw_boot_store_open (void)
 
int kfsw_boot_store_read (uint8_t *left, uint8_t *maximum)
 
int kfsw_boot_store_write (uint8_t left, uint8_t maximum)
 

Description

Function Documentation

◆ kfsw_boot_store_open()

int kfsw_boot_store_open ( void  )

#include <boot_store.h>

Open the dedicated early-boot flash record.

No filesystem is required. A store NVS refuses to mount as damaged is erased and mounted empty.

◆ kfsw_boot_store_read()

int kfsw_boot_store_read ( uint8_t *  left,
uint8_t *  maximum 
)

#include <boot_store.h>

Read both budget bytes atomically.

Returns -ENOENT for an empty store.

◆ kfsw_boot_store_write()

int kfsw_boot_store_write ( uint8_t  left,
uint8_t  maximum 
)

#include <boot_store.h>

Persist both budget bytes atomically; negative errno on failure.