Appearance
struct cw_ota_status_t
Live snapshot of the HW-slot-0 (Coldwave SW-OTA) firmware update. More...
#include <ota/ota.h>
Public Attributes
| Name | |
|---|---|
| uint32_t | code latest OTA_FLG_* status (OTA_FLG_IDLE when none) |
| uint32_t | bytes_done bytes written to flash so far |
| uint32_t | bytes_total total image size in bytes (0 if unknown) |
Detailed Description
cpp
struct cw_ota_status_t;Live snapshot of the HW-slot-0 (Coldwave SW-OTA) firmware update.
Single-writer snapshot maintained by the OTA execution path (ota_thread and the main target handler, both on the OTA thread) and read lock-free by the connection-loop poller — the platform/device_info.cpp HW-slot-0 overrides map code onto CW_FU_* / CW_FU_ERR_*. The three fields are 32-bit and updated independently, so a reader may briefly observe a new code alongside a not-yet-updated byte count; that is acceptable for progress reporting.
Public Attributes Documentation
variable code
cpp
uint32_t cw_ota_status_t::codelatest OTA_FLG_* status (OTA_FLG_IDLE when none)
variable bytes_done
cpp
uint32_t cw_ota_status_t::bytes_donebytes written to flash so far
variable bytes_total
cpp
uint32_t cw_ota_status_t::bytes_totaltotal image size in bytes (0 if unknown)