You are viewing documentation for version:
Switch record stored at the beginning of each switch page.
CRC32 is computed over magic, seq, app_id, and version (first 8 bytes).
Public Attributes#
uint32_t
Must be BTL_SMP_RECORD_MAGIC.
uint16_t
Monotonic sequence counter (higher = newer). uint16_t wrap handled via epoch reset in the Flash API.
uint8_t
Target application ID (e.g. app 1 or app 2).
uint8_t
Record format version (BTL_SMP_RECORD_VERSION).
uint32_t
CRC32 over (magic, seq, app_id, version).
Public Attribute Documentation#
magic#
uint32_t btl_smp_switch_record_t::magic
Must be BTL_SMP_RECORD_MAGIC.
seq#
uint16_t btl_smp_switch_record_t::seq
Monotonic sequence counter (higher = newer). uint16_t wrap handled via epoch reset in the Flash API.
app_id#
uint8_t btl_smp_switch_record_t::app_id
Target application ID (e.g. app 1 or app 2).
version#
uint8_t btl_smp_switch_record_t::version
Record format version (BTL_SMP_RECORD_VERSION).
crc32#
uint32_t btl_smp_switch_record_t::crc32
CRC32 over (magic, seq, app_id, version).