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

The validated numeric CLI scalars, parsed once before any run mode. More...

#include <mdl_cli.h>

Data Fields

uint64_t seed
 –seed (default 1).
uint32_t timeout
 –timeout ms (default k_req_timeout_def).
size_t chapters
 –chapters window (clamped to >= 1).
uint32_t max_imgs
 –max page images (0 = all).
bool from_present
 Whether –from was supplied.
double from_num
 –from chapter number, including decimals.
size_t pick
 –pick discovery hit (1-based; 0 = list).

Detailed Description

The validated numeric CLI scalars, parsed once before any run mode.

Parsing the string fields in one strict place means every run mode sees the same rejection of non-numeric input rather than a silent 0.

Invariant
chapters >= 1 after mdl_cli_parse_nums succeeds.
See also
mdl_cli_parse_nums()
Since
0.1.0

Definition at line 162 of file mdl_cli.h.

Field Documentation

◆ chapters

size_t mdl_nums_t::chapters

–chapters window (clamped to >= 1).

Definition at line 165 of file mdl_cli.h.

Referenced by mdl_cli_parse_nums(), and priv_mdl_compose_build_run().

◆ from_num

double mdl_nums_t::from_num

–from chapter number, including decimals.

Definition at line 168 of file mdl_cli.h.

Referenced by internal_cli_parse_chapter_pick(), and priv_mdl_compose_build_run().

◆ from_present

bool mdl_nums_t::from_present

Whether –from was supplied.

Definition at line 167 of file mdl_cli.h.

Referenced by internal_cli_parse_chapter_pick(), and priv_mdl_compose_build_run().

◆ max_imgs

uint32_t mdl_nums_t::max_imgs

–max page images (0 = all).

Definition at line 166 of file mdl_cli.h.

Referenced by mdl_cli_parse_nums(), and priv_mdl_compose_dispatch().

◆ pick

size_t mdl_nums_t::pick

–pick discovery hit (1-based; 0 = list).

Definition at line 169 of file mdl_cli.h.

Referenced by mdl_cli_parse_nums(), and priv_mdl_compose_dispatch().

◆ seed

uint64_t mdl_nums_t::seed

–seed (default 1).

Definition at line 163 of file mdl_cli.h.

Referenced by internal_cli_parse_num_values(), priv_mdl_compose_build_run(), and priv_mdl_compose_dispatch().

◆ timeout

uint32_t mdl_nums_t::timeout

–timeout ms (default k_req_timeout_def).

Definition at line 164 of file mdl_cli.h.

Referenced by mdl_cli_parse_nums(), priv_mdl_compose_build_run(), and priv_mdl_compose_dispatch().


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