|
SDK สำหรับ TESAIoT Dev Kit
คู่มืออ้างอิง API และ Tutorial (ModusToolbox)
|
Functions | |
| bool | ai_engine_snapshot (ai_result_t *out) |
| คัดลอกผลลัพธ์ล่าสุดที่เผยแพร่ไว้; เป็นแบบ last-writer-wins — ใช้ไม่ได้ภายใน set | |
| bool | ai_engine_snapshot_model (uint32_t index, ai_result_t *out) |
| ผลตัดสินล่าสุดของโมเดลหนึ่งตัว — เป็นตัวอ่านที่ต้องใช้ภายใน parallel set | |
| uint32_t | ai_engine_model_count (void) |
| มีโมเดลลงทะเบียนไว้กี่ตัว; ค่านับนำหน้าแถวจริง | |
| const ai_model_desc_t * | ai_engine_model (uint32_t index) |
| รายการใน registry คืน NULL หากอยู่นอกช่วง — และคืน NULL สำหรับดัชนีเทียมของ set | |
| bool | ai_engine_mic_settling (void) |
| เป็น true ตราบใดที่ parallel set ยังเติมหน้าต่างข้อมูลไม่เต็ม; ผลตัดสินจะถูกระงับไว้ | |
| uint32_t | ai_engine_mic_settle_pct (void) |
| ความคืบหน้าของการ settle 0..100; มีความหมายเฉพาะภายใน set เท่านั้น (นอกนั้นได้ 100) | |
ฟังก์ชัน 6 ตัว: ตัวอ่านผลลัพธ์ 2 ตัว (พร้อมเงื่อนไขว่าแต่ละตัวใช้ได้เมื่อใด) คู่ฟังก์ชันไล่รายการใน registry และค่าอ่านการ settle 2 ค่าที่ parallel set เปิดให้ใช้
| bool ai_engine_snapshot | ( | ai_result_t * | out | ) |
คัดลอกผลลัพธ์ล่าสุดที่เผยแพร่ไว้; เป็นแบบ last-writer-wins — ใช้ไม่ได้ภายใน set
Copy the latest result. Returns false if nothing has been published yet.
| bool ai_engine_snapshot_model | ( | uint32_t | index, |
| ai_result_t * | out ) |
ผลตัดสินล่าสุดของโมเดลหนึ่งตัว — เป็นตัวอ่านที่ต้องใช้ภายใน parallel set
One model's last verdict. Use this, not ai_engine_snapshot(), whenever several models may be publishing: that one reports whoever wrote most recently, so three quiet models can bury a detection before it is read. False if that model has never published.
| uint32_t ai_engine_model_count | ( | void | ) |
มีโมเดลลงทะเบียนไว้กี่ตัว; ค่านับนำหน้าแถวจริง
| const ai_model_desc_t * ai_engine_model | ( | uint32_t | index | ) |
รายการใน registry คืน NULL หากอยู่นอกช่วง — และคืน NULL สำหรับดัชนีเทียมของ set
Registry entry (NULL if out of range).
| bool ai_engine_mic_settling | ( | void | ) |
เป็น true ตราบใดที่ parallel set ยังเติมหน้าต่างข้อมูลไม่เต็ม; ผลตัดสินจะถูกระงับไว้
True while the parallel set is still filling its windows. Verdicts are withheld until then; show it rather than four silent zero bars.
| uint32_t ai_engine_mic_settle_pct | ( | void | ) |
ความคืบหน้าของการ settle 0..100; มีความหมายเฉพาะภายใน set เท่านั้น (นอกนั้นได้ 100)
Settle progress, 0..100, for a caller that wants to show it moving.