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

Bounded typed-artifact source seam implemented by the C6 port. More...

#include <ra8_c6link_mdl_msg.h>

Data Fields

ra8_err_t(* begin )(void *ctx, const ra8_mdl_request_t *request)
 Validate and begin one bounded typed HTTPS request.
ra8_err_t(* read )(void *ctx, uint8_t *out, uint16_t cap, uint16_t *got, uint64_t *total_bytes, bool *complete, uint8_t sha256[k_ra8_mdl_sha256_bytes], ra8_mdl_http_response_t *response)
 Pull bytes or terminal metadata.
ra8_err_t(* cancel )(void *ctx)
 Cancel and release the active backend job.
void * ctx
 Backend callback context.

Detailed Description

Bounded typed-artifact source seam implemented by the C6 port.

Separates protobuf/job orchestration from the concrete HTTPS and SHA-256 mechanism. Implementations own all network and digest state.

Invariant
Every callback and ctx is non-null after service initialisation.
At most one job is active because the portable service serialises it.
Since
0.1.0

Definition at line 69 of file ra8_c6link_mdl_msg.h.

Field Documentation

◆ begin

ra8_err_t(* ra8_mdl_service_backend::begin) (void *ctx, const ra8_mdl_request_t *request)

Validate and begin one bounded typed HTTPS request.

Definition at line 70 of file ra8_c6link_mdl_msg.h.

Referenced by ra8_mdl_service_init().

◆ cancel

ra8_err_t(* ra8_mdl_service_backend::cancel) (void *ctx)

Cancel and release the active backend job.

Definition at line 80 of file ra8_c6link_mdl_msg.h.

Referenced by internal_mdl_dispatch_cancel(), internal_mdl_fail_job(), and ra8_mdl_service_init().

◆ ctx

void* ra8_mdl_service_backend::ctx

Backend callback context.

Definition at line 81 of file ra8_c6link_mdl_msg.h.

Referenced by internal_mdl_dispatch_cancel(), internal_mdl_fail_job(), and internal_mdl_read_next().

◆ read

ra8_err_t(* ra8_mdl_service_backend::read) (void *ctx, uint8_t *out, uint16_t cap, uint16_t *got, uint64_t *total_bytes, bool *complete, uint8_t sha256[k_ra8_mdl_sha256_bytes], ra8_mdl_http_response_t *response)

Pull bytes or terminal metadata.

Definition at line 72 of file ra8_c6link_mdl_msg.h.

Referenced by internal_mdl_read_next(), and ra8_mdl_service_init().


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