ra8-firmware 0.1.0
Bare-metal firmware for the Renesas RA8 family (RA8D2 / RA8P1)
Loading...
Searching...
No Matches
ra8_fmt_portable_main_internal.h
Go to the documentation of this file.
1
9
10#pragma once
11
12#include <stddef.h>
13#include <stdint.h>
14
15#include "ra8_attributes.h"
16#include "ra8_fmt_stream.h"
17
34
44typedef struct {
45 alignas(max_align_t) uint8_t bytes[k_ra8_fmt_cli_workspace_bytes];
47
60RA8_PRIV [[nodiscard]] int priv_fmt_try_portable_convert(int argc,
61 char** argv,
62 uint8_t* arena,
63 size_t arena_cap,
64 bool* handled);
65
74RA8_PRIV [[nodiscard]] int priv_fmt_try_portable_inspect(int argc,
75 char** argv,
76 ra8_fmt_cli_workspace_t* workspace,
77 bool* handled);
78
92RA8_PRIV [[nodiscard]] int priv_fmt_try_portable_verify(int argc,
93 char** argv,
94 ra8_fmt_cli_workspace_t* workspace,
95 bool* handled);
Annotation-attribute framework macros for ra8-firmware.
#define RA8_PRIV
Module-private helper: shared across TUs but only inside one library.
int priv_fmt_try_portable_convert(int argc, char **argv, uint8_t *arena, size_t arena_cap, bool *handled)
Try the caller-workspace JOF-convert command path.
ra8_fmt_cli_limit_t
Explicit composition-root RAM budget for image-to-JOF conversion.
@ k_ra8_fmt_cli_workspace_bytes
Existing shared high-water.
@ k_ra8_fmt_cli_record_cap
All legal JOF audit records.
@ k_ra8_fmt_cli_scratch_cap
Stored-tile bound bytes.
@ k_ra8_fmt_cli_rbkc_scratch_cap
Strict book work.
@ k_ra8_fmt_cli_rbkc_table_cap
At most 65,536 chunks plus end.
@ k_ra8_fmt_cli_convert_arena_bytes
Convert prefix (8 MiB).
@ k_ra8_fmt_cli_rbkc_compressed_cap
One stored chunk.
@ k_ra8_fmt_cli_tile_cap
Decoded-tile bytes (4 MiB).
@ k_ra8_fmt_cli_rbkc_chunk_cap
One inflated chunk.
int priv_fmt_try_portable_verify(int argc, char **argv, ra8_fmt_cli_workspace_t *workspace, bool *handled)
Try the bounded two-spool JOF-verification command path.
int priv_fmt_try_portable_inspect(int argc, char **argv, ra8_fmt_cli_workspace_t *workspace, bool *handled)
Try strict streamed JOF or RBKC inspection.
Caller-workspace I/O contracts for portable format-tool engines.
One decoded tile's stored window and content evidence.
Definition jof_audit.h:38
One explicit, shared composition-root workspace for portable verbs.
uint8_t bytes[k_ra8_fmt_cli_workspace_bytes]
Shared named storage.