01 Overview
TWAI is CAN-compatible. The example sends and receives frames.
- Use when: vehicle or industrial hosts.
- Skip when: you only need USB debug.
Industrial bus
Industrial and automotive bus. The chip is a controller; you still need a transceiver.
Official path: examples/peripherals/twai
TWAI is CAN-compatible. The example sends and receives frames.
1. Bitrate and acceptance filter.
2. Install driver, send std/ext frames.
3. Recover from error counters and bus-off.
中文
工业总线
工业与汽车总线。芯片是 TWAI 控制器,外面还要收发器。
官方路径: examples/peripherals/twai
TWAI 兼容 CAN。官方示例收发帧。
1. 配比特率、验收滤波。
2. 装驱动,发标准/扩展帧。
3. 错误计数和总线关闭要有恢复策略。