Main Content

CAN 接口

在 Raspberry Pi® 硬件上读取 CAN 报文并将其写入 CAN 扩展板

通过 CAN 通道写入和读取 CAN 报文。在使用 CAN 扩展板函数之前,请创建 raspi 对象。

对象

canChannelConnection to CAN channel connected to a specified device (自 R2021b 起)

函数

readRead messages from CAN channel (自 R2021b 起)
writeWrite messages to CAN channel (自 R2021b 起)
enableCANEnable CAN interface (自 R2021b 起)
disableCANDisable CAN interface (自 R2021b 起)