ra8-firmware 0.1.0
Bare-metal firmware for the Renesas RA8 family (RA8D2 / RA8P1)
Loading...
Searching...
No Matches
ra8_c6link_mdl.h
Go to the documentation of this file.
1
19#pragma once
20
21#include <stdint.h>
22
23#include "ra8_c6link.h"
24#include "ra8_err.h"
25#include "ra8_mdl_http.h"
26
43typedef struct {
44 uint32_t job_id;
45 uint32_t next_sequence;
46 uint64_t next_offset;
47 uint32_t max_chunk_bytes;
49 bool active;
51
78
79#ifdef __cplusplus
80extern "C" {
81#endif
82
109 const char* url,
110 mdl_format_t format,
111 ra8_mdl_session_t* session);
112
135 const ra8_mdl_request_t* request,
136 ra8_mdl_session_t* session);
137
162[[nodiscard]] ra8_err_t ra8_c6link_mdl_next(ra8_c6link_t* link,
163 ra8_mdl_session_t* session,
164 uint16_t max_bytes,
165 ra8_mdl_chunk_t* chunk);
166
188
189#ifdef __cplusplus
190}
191#endif
mdl_format_t
Artifact format selected by a media-download composition root.
Definition mdl_format.h:35
Error Code Definitions for ra8-firmware.
ra8_err_codes_t ra8_err_t
Canonical error-return type used by every ra8-firmware API.
Definition ra8_err.h:546
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.