|
ra8-firmware 0.1.0
Bare-metal firmware for the Renesas RA8 family (RA8D2 / RA8P1)
|
Stable command-line help rendering for mdl. More...
Go to the source code of this file.
Functions | |
| static ra8_err_t | internal_cli_usage_discovery (ra8_io_stream_t *diagnostic, const char *a0) |
| Write series, discovery, and library help sections. | |
| static ra8_err_t | internal_cli_usage_actions (ra8_io_stream_t *diagnostic, const char *a0) |
| Write verify, init, pack, artifact, and direct-page help sections. | |
| static ra8_err_t | internal_cli_usage_network_options (ra8_io_stream_t *diagnostic) |
| Write the identity, politeness, and network CLI options. | |
| ra8_err_t | mdl_cli_usage (ra8_io_stream_t *diagnostic, const char *a0) |
| Write the complete usage block to an injected byte stream. | |
Stable command-line help rendering for mdl.
Owns only process-edge usage text so the parser translation unit stays below the repository size cap without sharing parser state.
Definition in file mdl_cli_usage.c.
|
static |
Write verify, init, pack, artifact, and direct-page help sections.
| [in,out] | diagnostic | Bound destination for the usage text. |
| [in] | a0 | NUL-terminated program name displayed in examples. |
| k_ra8_ok | Every section was accepted completely. |
| other | The stream rejected one fragment. |
diagnostic and a0 are non-NULL. a0 is NUL-terminated. Writes fixed help fragments in order through the injected stream. The first sink error stops later output and is returned unchanged.
Definition at line 81 of file mdl_cli_usage.c.
References priv_mdl_cli_put_parts(), and RA8_INTERNAL.
Referenced by mdl_cli_usage().
|
static |
Write series, discovery, and library help sections.
| [in,out] | diagnostic | Bound destination for the usage text. |
| [in] | a0 | NUL-terminated program name displayed in usage examples. |
| k_ra8_ok | The section was accepted completely. |
| other | The stream rejected one fragment. |
diagnostic and a0 are non-NULL and a0 is NUL-terminated. Writes fixed help fragments in order through the injected stream. The first sink error stops later output and is returned unchanged.
Definition at line 30 of file mdl_cli_usage.c.
References priv_mdl_cli_put_parts(), and RA8_INTERNAL.
Referenced by mdl_cli_usage().
|
static |
Write the identity, politeness, and network CLI options.
| [in,out] | diagnostic | Bound destination for the usage text. |
| k_ra8_ok | The complete section was accepted. |
| other | The stream rejected the section. |
diagnostic is non-NULL and bound. Writes fixed help fragments in order through the injected stream. The first sink error stops later output and is returned unchanged.
Definition at line 131 of file mdl_cli_usage.c.
References RA8_INTERNAL, and ra8_io_stream_puts().
Referenced by mdl_cli_usage().
|
nodiscard |
Write the complete usage block to an injected byte stream.
| [in,out] | diagnostic | Bound stream receiving the help text. |
| [in] | a0 | argv[0], the program name shown in the usage lines. |
| k_ra8_ok | The complete usage block was accepted. |
| k_ra8_err_null_ptr | A required pointer was null. |
| other | The injected stream rejected a write. |
diagnostic is bound and exclusively owned for the call. a0 is a NUL-terminated string. Definition at line 153 of file mdl_cli_usage.c.
References internal_cli_usage_actions(), internal_cli_usage_discovery(), internal_cli_usage_network_options(), k_ra8_err_null_ptr, k_ra8_ok, and priv_mdl_cli_put_parts().
Referenced by main().