Flash status: scan PICOBIN blocks for per-slot validity and version

This commit is contained in:
Ian Gulliver
2026-04-12 22:22:54 +09:00
parent 819632a7ea
commit 11c101c235
4 changed files with 62 additions and 10 deletions

View File

@@ -128,12 +128,21 @@ struct RequestFlashStatus {
auto as_tuple() { return std::tie(); }
};
struct SlotInfo {
bool valid;
uint32_t version;
bool hash_ok;
auto as_tuple() const { return std::tie(valid, version, hash_ok); }
auto as_tuple() { return std::tie(valid, version, hash_ok); }
};
struct ResponseFlashStatus {
static constexpr int8_t ext_id = 15;
int8_t boot_partition;
uint8_t boot_type;
auto as_tuple() const { return std::tie(boot_partition, boot_type); }
auto as_tuple() { return std::tie(boot_partition, boot_type); }
SlotInfo slot_a;
SlotInfo slot_b;
auto as_tuple() const { return std::tie(boot_partition, slot_a, slot_b); }
auto as_tuple() { return std::tie(boot_partition, slot_a, slot_b); }
};
struct RequestListTests {