The single integration boundary between this firmware and the ESP32-C6.
struct ra8_c6link ra8_c6link_t
ra8_err_t ra8_c6link_mdl_next(ra8_c6link_t *link, ra8_mdl_session_t *session, uint16_t max_bytes, ra8_mdl_chunk_t *chunk)
Pull the next bounded chunk while acknowledging the prior offset.
ra8_err_t ra8_c6link_mdl_start(ra8_c6link_t *link, const char *url, mdl_format_t format, ra8_mdl_session_t *session)
Start retrieval of one selected artifact and receive its job identifier.
ra8_err_t ra8_c6link_mdl_cancel(ra8_c6link_t *link, ra8_mdl_session_t *session)
Cancel one active remote job and invalidate its local session.
ra8_err_t ra8_c6link_mdl_start_request(ra8_c6link_t *link, const ra8_mdl_request_t *request, ra8_mdl_session_t *session)
Start one typed request while preserving downloader HTTP policy.
Error Code Definitions for ra8-firmware.
ra8_err_codes_t ra8_err_t
Canonical error-return type used by every ra8-firmware API.
Wire-neutral media HTTP request and response records.
@ k_ra8_mdl_chunk_data_max
Maximum raw body bytes in one chunk.
@ k_ra8_mdl_sha256_bytes
SHA-256 digest size in bytes.
ra8_mdl_state_t
Remote job state.
One correlated bounded raw-byte response.
ra8_mdl_http_response_t response
Terminal HTTP metadata.
uint8_t data[k_ra8_mdl_chunk_data_max]
Bounded raw body bytes.
ra8_err_t status
Failure status in FAILED state.
uint16_t data_len
Valid bytes in data.
uint64_t total_bytes
Advertised or independently counted total.
uint8_t sha256[k_ra8_mdl_sha256_bytes]
Complete-body SHA-256.
uint32_t job_id
Correlated remote job identifier.
uint64_t offset
Offset of data in the complete body.
uint32_t sequence
Zero-based response sequence.
ra8_mdl_state_t state
DOWNLOADING or terminal state.
bool has_sha256
Whether sha256 is valid.
HTTP status and selected response headers proven by the C6 backend.
Complete typed HTTPS request accepted by protocol version 3.
RA8-local state for one accepted remote artifact job.
uint64_t next_offset
Exact byte offset required from the next response.
uint32_t job_id
Remote-generated non-zero identifier.
bool active
Whether next/cancel is currently valid.
uint32_t next_sequence
Exact sequence required from the next response.
uint32_t max_chunk_bytes
Maximum accepted pull size negotiated at start.
mdl_format_t format
Requested format echoed by the C6.