|
ra8-firmware 0.1.0
Bare-metal firmware for the Renesas RA8 family (RA8D2 / RA8P1)
|
Fixed policy and injected mechanisms for one transfer. More...
#include <ra8_c6link_mdl_transfer.h>
Data Fields | |
| ra8_mdl_storage_iface_t | storage |
| Transactional RA8-local destination. | |
| ra8_mdl_sha256_iface_t | sha256 |
| Independent running digest. | |
| mdl_format_t | format |
| Requested and validated artifact. | |
| ra8_mdl_http_policy_t | http |
| Forwarded downloader request policy. | |
| ra8_mdl_cancel_requested_fn | cancel_requested |
| Optional cooperative cancel query. | |
| void * | cancel_ctx |
| Context for cancel_requested. | |
| uint16_t | chunk_bytes |
| Maximum bytes requested per pull. | |
| uint32_t | max_chunks |
| Absolute number of permitted pulls. | |
Fixed policy and injected mechanisms for one transfer.
chunk_bytes controls backpressure and max_chunks is the hard loop bound. Their product may not exceed k_ra8_mdl_transfer_bytes_max. A non-loose format requires storage.validate; this prevents a caller from relabelling arbitrary bytes as RABOOK or another container. The optional cancellation callback is the only policy hook. Storage and SHA implementations remain independently substitutable.
Definition at line 161 of file ra8_c6link_mdl_transfer.h.
| void* ra8_mdl_transfer_config::cancel_ctx |
Context for cancel_requested.
Definition at line 167 of file ra8_c6link_mdl_transfer.h.
Referenced by ra8_c6link_mdl_transfer().
| ra8_mdl_cancel_requested_fn ra8_mdl_transfer_config::cancel_requested |
Optional cooperative cancel query.
Definition at line 166 of file ra8_c6link_mdl_transfer.h.
Referenced by ra8_c6link_mdl_transfer().
| uint16_t ra8_mdl_transfer_config::chunk_bytes |
Maximum bytes requested per pull.
Definition at line 168 of file ra8_c6link_mdl_transfer.h.
Referenced by internal_mdl_transfer_validate(), internal_publish(), and ra8_c6link_mdl_transfer().
| mdl_format_t ra8_mdl_transfer_config::format |
Requested and validated artifact.
Definition at line 164 of file ra8_c6link_mdl_transfer.h.
Referenced by internal_mdl_transfer_begin(), internal_mdl_transfer_commit(), internal_mdl_transfer_validate(), and priv_media_download_image_run().
| ra8_mdl_http_policy_t ra8_mdl_transfer_config::http |
Forwarded downloader request policy.
Definition at line 165 of file ra8_c6link_mdl_transfer.h.
Referenced by internal_mdl_transfer_begin().
| uint32_t ra8_mdl_transfer_config::max_chunks |
Absolute number of permitted pulls.
Definition at line 169 of file ra8_c6link_mdl_transfer.h.
Referenced by internal_mdl_transfer_validate(), and ra8_c6link_mdl_transfer().
| ra8_mdl_sha256_iface_t ra8_mdl_transfer_config::sha256 |
Independent running digest.
Definition at line 163 of file ra8_c6link_mdl_transfer.h.
Referenced by internal_check_transfer(), internal_mdl_transfer_begin(), internal_mdl_transfer_commit(), internal_mdl_transfer_store(), internal_mdl_transfer_validate(), internal_publish(), and internal_publish_fragment().
| ra8_mdl_storage_iface_t ra8_mdl_transfer_config::storage |
Transactional RA8-local destination.
Definition at line 162 of file ra8_c6link_mdl_transfer.h.
Referenced by internal_check_transfer(), internal_mdl_transfer_abort(), internal_mdl_transfer_begin(), internal_mdl_transfer_commit(), internal_mdl_transfer_store(), internal_mdl_transfer_validate(), internal_publish(), internal_publish_fragment(), and priv_media_download_image_run().