defines
Defines API
Classes:
-
ModuleType–Enum representing the type of exported module.
Copyright 2025 Ambiq. All Rights Reserved.
Classes
AnyCaseStrEnum
Case-insensitive string enumeration.
This is useful for parsing user input in a flexible manner.
LowerCaseStrEnum
Lowercase string enumeration.
UpperCaseStrEnum
Uppercase string enumeration.
ModuleType
ScheduleMode
Operator dispatch shape emitted into <prefix>_model.c.
Selects how model_init / model_run invoke each operator. Both modes
preserve the public ABI (signatures, status enum, lifecycle latch and
constant hydration); only the internal dispatch differs.
Attributes:
-
table(str) –Runtime function-pointer table iterated by a
forloop, with the per-nodectx->callbackinstrumentation seam preserved. The integration shape for RTOS scheduling / PMU sampling. -
static(str) –A straight-line sequence of direct calls to each operator's
_run(and_init) symbol. No function-pointer table, no loop, no indirect dispatch — the AOT-correct shape that is fully optimizer-visible. The per-node callback seam is omitted.