Skip to content

Struct SYN_FwUpdate

ClassList > SYN_FwUpdate

Firmware update context - manages streaming writes to flash.

  • #include <syn_fwupdate.h>

Public Attributes

Type Name
bool active
uint32_t bytes_written
uint32_t crc_state
uint32_t data_addr
bool error
uint32_t max_size
uint8_t * page_buf
uint16_t page_buf_size
uint16_t page_buf_used
uint32_t slot_addr

Public Attributes Documentation

variable active

bool SYN_FwUpdate::active;

Update in progress?


variable bytes_written

uint32_t SYN_FwUpdate::bytes_written;

Total bytes written so far


variable crc_state

uint32_t SYN_FwUpdate::crc_state;

Running CRC-32 state


variable data_addr

uint32_t SYN_FwUpdate::data_addr;

Flash address for image data (after hdr)


variable error

bool SYN_FwUpdate::error;

Error occurred?


variable max_size

uint32_t SYN_FwUpdate::max_size;

Maximum image size (excl. header)


variable page_buf

uint8_t* SYN_FwUpdate::page_buf;

Caller-provided write buffer


variable page_buf_size

uint16_t SYN_FwUpdate::page_buf_size;

Buffer size (flash page granularity)


variable page_buf_used

uint16_t SYN_FwUpdate::page_buf_used;

Bytes currently buffered


variable slot_addr

uint32_t SYN_FwUpdate::slot_addr;

Flash base address of target slot



The documentation for this class was generated from the following file src/syntropic/system/syn_fwupdate.h