SDK สำหรับ TESAIoT Dev Kit
คู่มืออ้างอิง API และ Tutorial (MTB & µPython)
Loading...
Searching...
No Matches
deepcraft_task.h
Go to the documentation of this file.
1/*******************************************************************************
2 * File Name : deepcraft_task.h
3 *
4 * Description : CM55 model-link peer — v1 STUB runtime for the DEEPCraft
5 * control plane (see common/deepcraft + common/bento_link
6 * in BENTO-TESAIoT-Claw-libraries).
7 *
8 * Per-project file (rule §2): each kit owns its model
9 * runtime; the wire contract lives in the shared header
10 * ipc_model_link_defs.h.
11 *******************************************************************************/
12
13#ifndef DEEPCRAFT_TASK_H
14#define DEEPCRAFT_TASK_H
15
16#include <stdbool.h>
17#include <stdint.h>
18
19#ifdef __cplusplus
20extern "C" {
21#endif
22
26
32void deepcraft_task_request(bool start);
33
37void deepcraft_task_select(uint32_t n);
38
39#ifdef __cplusplus
40}
41#endif
42
47
48#endif /* DEEPCRAFT_TASK_H */
void deepcraft_task_request(bool start)
สั่งให้ model link เริ่มหรือหยุด เหมือนกับที่ไคลเอนต์ MicroPython สั่งทุกประการ
void deepcraft_task_select(uint32_t n)
เปิดใช้งานโมเดล n ใน registry เหมือน edge_ai.select(n) ทุกประการ; ไม่มีผู้เรียกเลยทั้ง workspace
bool deepcraft_task_init(void)
เรียกหลัง cm55_ipc_communication_setup(); ตัวควบคุมจอแสดงผลที่อยู่ใน archive เรียกให้อยู่แล้ว
void deepcraft_task_watchdog(void)
พา model-link task กลับสู่สถานะ Ready; เรียกที่ประมาณ 1 Hz จาก context ที่ไม่บล็อกเลย