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
canChannel | Connection to CAN channel through specified device (Since R2021b) |
Functions
read | Read messages from CAN channel (Since R2021b) |
write | Write messages to CAN channel (Since R2021b) |
enableCAN | Enable CAN interface (Since R2021b) |
disableCAN | Disable CAN interface (Since R2021b) |