docs.rs failed to build canlink-cli-0.3.2
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Visit the last successful build:
canlink-cli-0.3.3
CANLink CLI
Command-line interface for interacting with CAN hardware through the CANLink HAL.
Features
- List available backends
- Query backend capabilities
- Send CAN messages (single-shot or periodic)
- Receive CAN messages
- Validate configuration files
- Human-readable and JSON output
Installation
From Source
From Crates.io
Requirements
Real hardware usage requires:
- Windows
- LibTSCAN runtime (TSMaster installation or a standalone LibTSCAN bundle)
Quick Start
# List available backends
# Query backend capabilities
# Send a CAN message
# Receive messages
Configuration File
Create a canlink.toml file:
[]
= "tscan"
= 3
= 1000
JSON Output
All commands support JSON output with the --json flag:
Exit Codes
0: Success2: Backend not found3: Backend error4: Configuration error5: Invalid argument6: I/O error7: Parse error8: Timeout9: No messages received
Related Crates
- canlink-hal - Core HAL
- canlink-tscan-sys - LibTSCAN FFI bindings
- canlink-tscan - LibTSCAN backend
Documentation
License
MIT OR Apache-2.0
CANLink HAL 的命令行工具,用于与 CAN 硬件交互。
功能
- 列出可用后端
- 查询后端能力
- 发送 CAN 消息(单次或周期)
- 接收 CAN 消息
- 校验配置文件
- 人类可读与 JSON 输出
安装
从源码安装
从 Crates.io 安装
环境要求
真实硬件模式需要:
- Windows
- LibTSCAN 运行库(完整安装 TSMaster 或独立 LibTSCAN 包)
快速开始
# 列出可用后端
# 查询后端能力
# 发送 CAN 消息
# 接收消息
配置文件
创建 canlink.toml:
[]
= "tscan"
= 3
= 1000
JSON 输出
所有命令支持 --json:
退出码
0: 成功2: 未找到后端3: 后端错误4: 配置错误5: 参数无效6: I/O 错误7: 解析错误8: 超时9: 未收到消息
相关包
- canlink-hal - 核心 HAL
- canlink-tscan-sys - LibTSCAN FFI 绑定
- canlink-tscan - LibTSCAN 后端
文档
许可证
MIT OR Apache-2.0