|
SDK for TESAIoT Dev Kit
API reference & tutorials (ModusToolbox)
|
Functions | |
| void | ai_engine_unload (uint32_t idx) |
| Asynchronous unload request — refused unless the engine is idle. | |
| uint32_t | ai_engine_unload_done (void) |
| Cumulative count of completed unloads; read as a pair with refused. | |
| uint32_t | ai_engine_unload_refused (void) |
| Cumulative count of refused unloads; read with ai_engine_unload_done(). | |
| int | ai_model_staged_load (uint32_t header_addr) |
| Build and register a model CM33 staged in shared memory; task context only. | |
| uint32_t | ai_model_staged_count (void) |
| Models built this boot — the ack-by-observation signal for staged_load. | |
| uint32_t | ai_model_staged_rejects (void) |
| Loads refused this boot; pair with ai_model_staged_last_rc(). | |
| int32_t | ai_model_staged_last_rc (void) |
| The loader's last return code (-1..-7, or the registry index on success). | |
| uint32_t | ai_model_staged_heap_free (void) |
| Free bytes on the CM55 heap; the one ISR-safe read on this topic. | |
Eight functions: the asynchronous unload request and its two counters, and the run-time loader (ai_model_staged.h) with its four counters. Both halves share one design: no ack event — confirmation is by observation of a counter.
| void ai_engine_unload | ( | uint32_t | idx | ) |
Asynchronous unload request — refused unless the engine is idle.
Release a run-time model and free what it owns. Asynchronous: the request is serviced in the inference task and REFUSED unless the engine is idle, because a parallel set dequeues every member on every pass. The two counters below are how a caller learns which happened.
| uint32_t ai_engine_unload_done | ( | void | ) |
Cumulative count of completed unloads; read as a pair with refused.
| uint32_t ai_engine_unload_refused | ( | void | ) |
Cumulative count of refused unloads; read with ai_engine_unload_done().
| int ai_model_staged_load | ( | uint32_t | header_addr | ) |
Build and register a model CM33 staged in shared memory; task context only.
| uint32_t ai_model_staged_count | ( | void | ) |
Models built this boot — the ack-by-observation signal for staged_load.
| uint32_t ai_model_staged_rejects | ( | void | ) |
Loads refused this boot; pair with ai_model_staged_last_rc().
| int32_t ai_model_staged_last_rc | ( | void | ) |
The loader's last return code (-1..-7, or the registry index on success).
| uint32_t ai_model_staged_heap_free | ( | void | ) |
Free bytes on the CM55 heap; the one ISR-safe read on this topic.