SDK สำหรับ TESAIoT Dev Kit
คู่มืออ้างอิง API และ Tutorial (MTB & µPython)
Toggle main menu visibility
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
20
extern
"C"
{
21
#endif
22
25
bool
deepcraft_task_init
(
void
);
26
32
void
deepcraft_task_request
(
bool
start);
33
37
void
deepcraft_task_select
(uint32_t n);
38
39
#ifdef __cplusplus
40
}
41
#endif
42
46
void
deepcraft_task_watchdog
(
void
);
47
48
#endif
/* DEEPCRAFT_TASK_H */
deepcraft_task_request
void deepcraft_task_request(bool start)
สั่งให้ model link เริ่มหรือหยุด เหมือนกับที่ไคลเอนต์ MicroPython สั่งทุกประการ
deepcraft_task_select
void deepcraft_task_select(uint32_t n)
เปิดใช้งานโมเดล n ใน registry เหมือน edge_ai.select(n) ทุกประการ; ไม่มีผู้เรียกเลยทั้ง workspace
deepcraft_task_init
bool deepcraft_task_init(void)
เรียกหลัง cm55_ipc_communication_setup(); ตัวควบคุมจอแสดงผลที่อยู่ใน archive เรียกให้อยู่แล้ว
deepcraft_task_watchdog
void deepcraft_task_watchdog(void)
พา model-link task กลับสู่สถานะ Ready; เรียกที่ประมาณ 1 Hz จาก context ที่ไม่บล็อกเลย
dist
cm55_core
include
deepcraft_task.h
Generated by
1.18.0