ra8-firmware 0.1.0
Bare-metal firmware for the Renesas RA8 family (RA8D2 / RA8P1)
Loading...
Searching...
No Matches
ra8_mdl_chunk_t Struct Reference

One correlated bounded raw-byte response. More...

#include <ra8_c6link_mdl.h>

Collaboration diagram for ra8_mdl_chunk_t:

Data Fields

uint32_t job_id
 Correlated remote job identifier.
uint32_t sequence
 Zero-based response sequence.
uint64_t offset
 Offset of data in the complete body.
uint64_t total_bytes
 Advertised or independently counted total.
ra8_mdl_state_t state
 DOWNLOADING or terminal state.
ra8_err_t status
 Failure status in FAILED state.
uint16_t data_len
 Valid bytes in data.
uint8_t data [k_ra8_mdl_chunk_data_max]
 Bounded raw body bytes.
bool has_sha256
 Whether sha256 is valid.
uint8_t sha256 [k_ra8_mdl_sha256_bytes]
 Complete-body SHA-256.
ra8_mdl_http_response_t response
 Terminal HTTP metadata.

Detailed Description

One correlated bounded raw-byte response.

Contains either non-empty DOWNLOADING data or an empty terminal record. COMPLETE alone carries the digest of the entire HTTP body.

Invariant
data_len never exceeds k_ra8_mdl_chunk_data_max.
has_sha256 is true only for a valid COMPLETE record.
ra8_mdl_chunk_t chunk = {};
One correlated bounded raw-byte response.
See also
ra8_c6link_mdl_next
Since
0.1.0

Definition at line 65 of file ra8_c6link_mdl.h.

Field Documentation

◆ data

uint8_t ra8_mdl_chunk_t::data[k_ra8_mdl_chunk_data_max]

Bounded raw body bytes.

Definition at line 73 of file ra8_c6link_mdl.h.

Referenced by internal_mdl_accept_chunk(), and internal_mdl_transfer_store().

◆ data_len

uint16_t ra8_mdl_chunk_t::data_len

Valid bytes in data.

Definition at line 72 of file ra8_c6link_mdl.h.

Referenced by internal_mdl_transfer_store().

◆ has_sha256

bool ra8_mdl_chunk_t::has_sha256

Whether sha256 is valid.

Definition at line 74 of file ra8_c6link_mdl.h.

Referenced by internal_mdl_accept_chunk(), and internal_mdl_transfer_commit().

◆ job_id

uint32_t ra8_mdl_chunk_t::job_id

Correlated remote job identifier.

Definition at line 66 of file ra8_c6link_mdl.h.

◆ offset

uint64_t ra8_mdl_chunk_t::offset

Offset of data in the complete body.

Definition at line 68 of file ra8_c6link_mdl.h.

◆ response

ra8_mdl_http_response_t ra8_mdl_chunk_t::response

Terminal HTTP metadata.

Definition at line 76 of file ra8_c6link_mdl.h.

Referenced by internal_mdl_accept_chunk(), and internal_mdl_transfer_commit().

◆ sequence

uint32_t ra8_mdl_chunk_t::sequence

Zero-based response sequence.

Definition at line 67 of file ra8_c6link_mdl.h.

◆ sha256

uint8_t ra8_mdl_chunk_t::sha256[k_ra8_mdl_sha256_bytes]

Complete-body SHA-256.

Definition at line 75 of file ra8_c6link_mdl.h.

Referenced by internal_mdl_accept_chunk(), and internal_mdl_transfer_commit().

◆ state

ra8_mdl_state_t ra8_mdl_chunk_t::state

DOWNLOADING or terminal state.

Definition at line 70 of file ra8_c6link_mdl.h.

Referenced by ra8_c6link_mdl_transfer().

◆ status

ra8_err_t ra8_mdl_chunk_t::status

Failure status in FAILED state.

Definition at line 71 of file ra8_c6link_mdl.h.

◆ total_bytes

uint64_t ra8_mdl_chunk_t::total_bytes

Advertised or independently counted total.

Definition at line 69 of file ra8_c6link_mdl.h.

Referenced by internal_mdl_transfer_commit().


The documentation for this struct was generated from the following file: