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

Caller-owned one-job portable service state. More...

#include <ra8_c6link_mdl_msg.h>

Collaboration diagram for ra8_mdl_service:

Data Fields

ra8_mdl_service_backend_t backend
 Injected typed-artifact source mechanism.
uint32_t next_job_id
 Monotonic id candidate for the next Start.
uint32_t active_job_id
 Correlation id of the current job.
uint32_t next_sequence
 Sequence required from the next pull.
uint64_t next_offset
 Byte offset required from the next pull.
mdl_format_t active_format
 Artifact identity of the active job.
bool active
 Whether Next or Cancel is currently valid.
ra8_mdl_decode_arena_t arena
 Decode storage for the running dispatch.

Detailed Description

Caller-owned one-job portable service state.

Correlates Start, Next, and Cancel independently of the concrete C6 HTTPS backend and retains no request/response pointers.

Invariant
An active service has non-zero active_job_id.
next_sequence and next_offset advance only after a successful read.
Since
0.1.0

Definition at line 134 of file ra8_c6link_mdl_msg.h.

Field Documentation

◆ active

bool ra8_mdl_service::active

Whether Next or Cancel is currently valid.

Definition at line 141 of file ra8_c6link_mdl_msg.h.

Referenced by internal_mdl_dispatch_cancel(), internal_mdl_dispatch_next(), internal_mdl_dispatch_start(), and internal_mdl_fail_job().

◆ active_format

mdl_format_t ra8_mdl_service::active_format

Artifact identity of the active job.

Definition at line 140 of file ra8_c6link_mdl_msg.h.

◆ active_job_id

uint32_t ra8_mdl_service::active_job_id

Correlation id of the current job.

Definition at line 137 of file ra8_c6link_mdl_msg.h.

Referenced by internal_mdl_build_chunk(), internal_mdl_dispatch_cancel(), and internal_mdl_dispatch_next().

◆ arena

ra8_mdl_decode_arena_t ra8_mdl_service::arena

Decode storage for the running dispatch.

Definition at line 142 of file ra8_c6link_mdl_msg.h.

Referenced by ra8_mdl_service_dispatch().

◆ backend

ra8_mdl_service_backend_t ra8_mdl_service::backend

Injected typed-artifact source mechanism.

Definition at line 135 of file ra8_c6link_mdl_msg.h.

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

◆ next_job_id

uint32_t ra8_mdl_service::next_job_id

Monotonic id candidate for the next Start.

Definition at line 136 of file ra8_c6link_mdl_msg.h.

Referenced by internal_mdl_dispatch_start().

◆ next_offset

uint64_t ra8_mdl_service::next_offset

Byte offset required from the next pull.

Definition at line 139 of file ra8_c6link_mdl_msg.h.

Referenced by internal_mdl_build_chunk(), internal_mdl_dispatch_next(), and internal_mdl_read_next().

◆ next_sequence

uint32_t ra8_mdl_service::next_sequence

Sequence required from the next pull.

Definition at line 138 of file ra8_c6link_mdl_msg.h.

Referenced by internal_mdl_build_chunk(), internal_mdl_dispatch_next(), and internal_mdl_read_next().


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