Expand description
Power-loss-safe BLE security snapshot encoding.
Fixed-size snapshots (pairing PIN, local IRK, bonds) written through
the shared record engine. Which two pages the
journal owns is the firmware’s memory-map decision.
Structs§
Enums§
- Bond
Upsert - Outcome of
upsert_bond.
Constants§
Functions§
- consider_
snapshot - Consider one journal slot while mounting without retaining its flash buffer.
- touch_
bond - Move the bond matching
address_kind+addressto the MRU end, if present and not already there. Returnstruewhen the order changed (and the caller should persist),falsewhen the bond was already MRU or is not stored at all. - upsert_
bond - Insert or refresh
bondinbonds, which is kept ordered least-recently-used-first / most-recently-used-last (index 0 is the eviction candidate). A bond matching byaddress_kind+addressis refreshed in place and moved to the MRU end; a new bond is appended at the MRU end, evicting the current LRU entry first if the list is full.