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

Functions

void kfsw_boot_budget_get (uint8_t *left, uint8_t *maximum)
 
int kfsw_boot_budget_set_left (uint8_t left)
 
int kfsw_boot_budget_set_max (uint8_t maximum)
 
int kfsw_boot_budget_refill (void)
 
int kfsw_boot_budget_mark_stable (void)
 
int kfsw_boot_budget_start (bool commanded)
 
bool kfsw_boot_budget_spent (void)
 
bool kfsw_boot_budget_commanded (uint32_t cause, bool valid_commanded_note)
 

Description

Function Documentation

◆ kfsw_boot_budget_commanded()

bool kfsw_boot_budget_commanded ( uint32_t  cause,
bool  valid_commanded_note 
)

#include <boot_budget.h>

Whether the reset mask and CRC-validated retained note justify an exemption.

◆ kfsw_boot_budget_get()

void kfsw_boot_budget_get ( uint8_t *  left,
uint8_t *  maximum 
)

#include <boot_budget.h>

Read the early flash budget; UINT8_MAX means unavailable.

◆ kfsw_boot_budget_mark_stable()

int kfsw_boot_budget_mark_stable ( void  )

#include <boot_budget.h>

Refill after a stable run.

Writes only when an attempt has been spent.

◆ kfsw_boot_budget_refill()

int kfsw_boot_budget_refill ( void  )

#include <boot_budget.h>

Refill after FWU has installed an image.

Returns a store error on failure.

◆ kfsw_boot_budget_set_left()

int kfsw_boot_budget_set_left ( uint8_t  left)

#include <boot_budget.h>

Validate and persist the ground's remaining-attempt write.

◆ kfsw_boot_budget_set_max()

int kfsw_boot_budget_set_max ( uint8_t  maximum)

#include <boot_budget.h>

Set the live limit (3, 5 or 10), clamping the count without refilling it.

◆ kfsw_boot_budget_spent()

bool kfsw_boot_budget_spent ( void  )

#include <boot_budget.h>

Whether the last startup found the budget already empty and owes Golden.

◆ kfsw_boot_budget_start()

int kfsw_boot_budget_start ( bool  commanded)

#include <boot_budget.h>

Consume one early startup.

Commanded must already be backed by reset evidence.