|
K-FSW v1.2.1-59-gcaca356
KFSW: modular flight software on Zephyr, for small satellites
|
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) |
| 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.
| void kfsw_boot_budget_get | ( | uint8_t * | left, |
| uint8_t * | maximum | ||
| ) |
#include <boot_budget.h>
Read the early flash budget; UINT8_MAX means unavailable.
| int kfsw_boot_budget_mark_stable | ( | void | ) |
#include <boot_budget.h>
Refill after a stable run.
Writes only when an attempt has been spent.
| int kfsw_boot_budget_refill | ( | void | ) |
#include <boot_budget.h>
Refill after FWU has installed an image.
Returns a store error on failure.
| int kfsw_boot_budget_set_left | ( | uint8_t | left | ) |
#include <boot_budget.h>
Validate and persist the ground's remaining-attempt write.
| 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.
| bool kfsw_boot_budget_spent | ( | void | ) |
#include <boot_budget.h>
Whether the last startup found the budget already empty and owes Golden.
| int kfsw_boot_budget_start | ( | bool | commanded | ) |
#include <boot_budget.h>
Consume one early startup.
Commanded must already be backed by reset evidence.