Main Content

CAN Interface

Read and write CAN messages to CAN shields on Raspberry Pi® hardware

Write and read CAN messages via CAN channel. Create the raspi object before you use CAN shield functions. The canChannel object, and the read, write, enableCAN, and disableCAN functions are only supported on the installed version of MATLAB®.

Objects

canChannelConnection to CAN channel through specified device (Since R2021b)

Functions

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