CANBus 函式库
86Duino IDE 从 Coding 103 开始加入此函式库,用于存取 86Duino One 提供的 CAN bus (Controller Area Network) 通讯介面。
CAN 是一种常见的工业通讯协定,可以支持高安全等级及有效率的即时控制,常被用于各种车辆与自动化设备上。86Duino 内建的 CAN Bus 控制器主要特色如下:
- 支援 CAN 2.0A 及 2.0B 规范
- 传输速率最高可达 1 Mbps
- 支援 standard (11-bit) 和 extended (29-bit) 的 data/remote frame 传输
- 提供三组 frame buffer
- 丰富的错误检测及处理机制
为了让 Arduino 使用者更容易上手此函式库,我们在函式库 API 的设计上已尽量与 Wire 函式库 以及 Seeed Studio 的 CAN Bus 函式库 相近。下面说明各函式的使用方式。
Functions
- begin()
- init_Mask()
- init_Filt()
- beginTransmission()
- endTransmission()
- write()
- requestFrom()
- read()
- available()
- remoteExt()
- remoteID()
- sendMsgBuf()
- readMsgBuf()
- checkReceive()
- getCanId()
The text of the 86Duino reference is licensed under a Creative Commons Attribution-ShareAlike 3.0 License. Code samples in the reference are released into the public domain.