-
Notifications
You must be signed in to change notification settings - Fork 0
docs: replace interface tables with sub-paragraph format; add module meta-info; expand param format #2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
docs: replace interface tables with sub-paragraph format; add module meta-info; expand param format #2
Changes from 3 commits
873cd4c
596d5a3
c8b6443
70174d6
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 也要增加一些 模块的 meta 信息,如支持的系统版本,labview版本, 是否支持 RT 等
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 在 ## 模块信息
| 属性 | 值 |
| --- | --- |
| LabVIEW 版本 | ≥ [版本号,例如 2019] |
| 支持的操作系统 | [Windows / Linux / macOS] |
| 支持 RT | [✅ 支持 / ❌ 不支持] |
| 支持 64-bit | [✅ 支持 / ❌ 不支持] |
|
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -16,16 +16,28 @@ | |
|
|
||
| --- | ||
|
|
||
| ## 模块信息 | ||
|
|
||
| | 属性 | 值 | | ||
| | --- | --- | | ||
| | LabVIEW 版本 | ≥ [版本号,例如 2019] | | ||
| | 支持的操作系统 | [Windows / Linux / macOS] | | ||
| | 支持 RT | [✅ 支持 / ❌ 不支持] | | ||
| | 支持 64-bit | [✅ 支持 / ❌ 不支持] | | ||
|
|
||
| --- | ||
|
|
||
| ## 依赖项 | ||
|
|
||
| | 依赖 | 类型 | 链接 | | ||
| | --- | --- | --- | | ||
| | Communicable State Machine (CSM) | 必须 | [GitHub](https://github.com/NEVSTOP-LAB/Communicable-State-Machine) | | ||
| | CSM API String Arguments Support | 可选 | [GitHub](https://github.com/NEVSTOP-LAB/CSM-API-String-Arguments-Support) | | ||
| | CSM MassData Parameter Support | 可选 | [GitHub](https://github.com/NEVSTOP-LAB/CSM-MassData-Parameter-Support) | | ||
| | CSM INI Static Variable Support | 可选 | [GitHub](https://github.com/NEVSTOP-LAB/CSM-INI-Static-Variable-Support) | | ||
| | CSM Mermaid Plugin | 可选 | [GitHub](https://github.com/NEVSTOP-LAB/CSM-Mermaid-Plugin) | | ||
| | CSM TCP Router | 可选 | [GitHub](https://github.com/NEVSTOP-LAB/CSM-TCP-Router-App) | | ||
| **必须** | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 保留表格,删除最后一列即可
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @copilot 修改这个
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 已恢复为 2 列表格,链接嵌入依赖名称列,移除单独的链接列(提交:70174d6): | 依赖 | 类型 |
| --- | --- |
| [Communicable-State-Machine](https://github.com/NEVSTOP-LAB/Communicable-State-Machine) | 必须 |
| [CSM-API-String-Arguments-Support](...) | 可选 | |
||
| - [Communicable-State-Machine](https://github.com/NEVSTOP-LAB/Communicable-State-Machine) | ||
|
|
||
| **可选**(根据所用功能选择) | ||
| - [CSM-API-String-Arguments-Support](https://github.com/NEVSTOP-LAB/CSM-API-String-Arguments-Support) | ||
| - [CSM-MassData-Parameter-Support](https://github.com/NEVSTOP-LAB/CSM-MassData-Parameter-Support) | ||
| - [CSM-INI-Static-Variable-Support](https://github.com/NEVSTOP-LAB/CSM-INI-Static-Variable-Support) | ||
| - [CSM-Mermaid-Plugin](https://github.com/NEVSTOP-LAB/CSM-Mermaid-Plugin) | ||
| - [CSM-TCP-Router-App](https://github.com/NEVSTOP-LAB/CSM-TCP-Router-App) | ||
|
|
||
| > 删除不需要的行。 | ||
|
|
||
|
|
@@ -35,16 +47,55 @@ | |
|
|
||
| 以下是外部调用者可以发送给本模块的消息。 | ||
|
|
||
| | API | 描述 | 参数数据类型 | 参数描述 | 响应数据类型 | 响应描述 | | ||
| | --- | --- | --- | --- | --- | --- | | ||
| | `API: Initialize` | 初始化内部资源。必须在其他 API 之前调用。 | `APIString` | 配置文件路径 | N/A | N/A | | ||
| | `API: Start` | 启动模块的主要操作。 | N/A | N/A | N/A | N/A | | ||
| | `API: Stop` | 优雅地停止主要操作。 | N/A | N/A | N/A | N/A | | ||
| | `API: [示例:传递结构体数据]` | [描述] | `HexStr` | 配置簇 | N/A | N/A | | ||
| | `API: [示例:传递大块数据]` | [描述] | `MassData` | 一维波形数组 | N/A | N/A | | ||
| | `API: Get Status` | 查询当前状态。 | N/A | N/A | `APIString` | 状态描述 | | ||
| ### `API: Initialize` | ||
|
nevstop marked this conversation as resolved.
|
||
|
|
||
| 初始化内部资源。必须在其他 API 之前调用。 | ||
|
|
||
| - **调用方式**:异步 (`->`) | ||
| - **参数**:`APIString` — 配置文件路径 | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 参数/响应都应该要有 CSM参数类型(APIString/MassData/HexStr等)和数据描述。 CSM参数类型:APIString
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 已更新参数/响应格式,同时标注 CSM 参数类型和数据类型+描述(提交:70174d6)。简单值: - **参数**:`APIString` — `String`:配置文件路径复合数据(Cluster)展开字段: - **参数**:`HexStr` — `Cluster`:
- `Flag`:Boolean
- `Level`:DBL |
||
| - **响应**:N/A | ||
|
|
||
| ### `API: Start` | ||
|
|
||
| 启动模块的主要操作。 | ||
|
|
||
| - **调用方式**:异步 (`->`) | ||
| - **参数**:N/A | ||
| - **响应**:N/A | ||
|
|
||
| ### `API: Stop` | ||
|
|
||
| 优雅地停止主要操作。 | ||
|
|
||
| - **调用方式**:异步 (`->`) | ||
| - **参数**:N/A | ||
| - **响应**:N/A | ||
|
|
||
| ### `API: [示例:传递结构体数据]` | ||
|
|
||
| > 根据需要增减行。请记录每一个对外可调用的 `API:` 消息。 | ||
| [描述] | ||
|
|
||
| - **调用方式**:异步 (`->`) | ||
| - **参数**:`HexStr` — 配置簇 | ||
| - **响应**:N/A | ||
|
|
||
| ### `API: [示例:传递大块数据]` | ||
|
|
||
| [描述] | ||
|
|
||
| - **调用方式**:异步 (`->`) | ||
| - **参数**:`MassData` — 一维波形数组 | ||
| - **响应**:N/A | ||
|
|
||
| ### `API: Get Status` | ||
|
|
||
| 查询当前状态。 | ||
|
|
||
| - **调用方式**:同步 (`-@`) | ||
| - **参数**:N/A | ||
| - **响应**:`APIString` — 状态描述 | ||
|
|
||
| > 根据需要增减段落。请记录每一个对外可调用的 `API:` 消息。 | ||
|
|
||
| ### 参数类型说明 | ||
|
|
||
|
|
@@ -62,10 +113,21 @@ | |
|
|
||
| 以下是本模块**发出**的消息,用于通知订阅者内部状态变化。 | ||
|
|
||
| | 状态 | 广播类型 | 描述 | 参数数据类型 | 参数描述 | | ||
| | --- | --- | --- | --- | --- | | ||
| | `[状态名称 A]` | `Status` | [发生了什么 / 哪些数据已就绪] | `HexStr` | 数据内容 | | ||
| | `[状态名称 B]` | `Interrupt` | [错误或需要立即处理的中断事件描述] | `APIString` | 错误信息 | | ||
| ### `[状态名称 A]` | ||
|
|
||
| **广播类型**:`Status` | ||
|
|
||
| [发生了什么 / 哪些数据已就绪] | ||
|
|
||
| - **参数**:`HexStr` — 数据内容 | ||
|
|
||
| ### `[状态名称 B]` | ||
|
|
||
| **广播类型**:`Interrupt` | ||
|
|
||
| [错误或需要立即处理的中断事件描述] | ||
|
|
||
| - **参数**:`APIString` — 错误信息 | ||
|
|
||
| > - 使用 **`Status`** 表示正常的、预期中的状态转换。 | ||
| > - 使用 **`Interrupt`** 表示需要立即关注的错误或事件。 | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
不需要调用方式,因为任何消息都可以被当作同步和异步调用
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
已从所有 API 段落和 skill 文档规范中移除
**调用方式**字段(提交:70174d6)。