191 uint32_t state_downloading_val,
Annotation-attribute framework macros for ra8-firmware.
#define RA8_PRIV
Module-private helper: shared across TUs but only inside one library.
Error Code Definitions for ra8-firmware.
ra8_err_codes_t ra8_err_t
Canonical error-return type used by every ra8-firmware API.
bool g_ra8_ota_initialized
True once ra8_ota_init succeeded (shared; contract in ra8_ota_internal.h).
ra8_ota_state_t g_ra8_ota_state
Current state-machine value (shared; contract in ra8_ota_internal.h).
uint8_t g_ra8_ota_buf[k_ra8_ota_chunk_bytes]
Streaming buffer (shared; contract in ra8_ota_internal.h).
ra8_ota_cfg_t g_ra8_ota_cfg
Configuration captured at init time (shared; contract in ra8_ota_internal.h).
Phase-5 OTA firmware-update orchestration for the RA8D2.
ra8_ota_state_t
Cooperative state-machine states.
@ k_ra8_ota_chunk_bytes
Download streaming chunk size in bytes.
bool priv_ota_char_in_range(char c, char lo, char hi)
Pure predicate: ASCII char is in inclusive range [lo, hi].
ra8_err_t priv_ota_manifest_decode(const char *json, ra8_ota_manifest_t *out)
Decode every field of a JSON manifest into an ra8_ota_manifest_t.
void priv_ota_set_state(ra8_ota_state_t new_state, ra8_err_t err)
Set the OTA state-machine value and fire the progress callback.
ra8_err_t priv_ota_validate_cfg(const ra8_ota_cfg_t *cfg)
Validate the entire OTA configuration descriptor.
ra8_err_t priv_ota_json_u32(const char *json, const char *key, uint32_t *out_v)
Parse a JSON-style "key": <decimal> field into a u32.
bool priv_ota_download_state_invalid(uint32_t state_idle_val, uint32_t state_downloading_val, uint32_t state)
Pure predicate: state is neither IDLE nor DOWNLOADING.
Initialisation descriptor for ra8_ota_init.
Decoded representation of the server manifest.