enableCAN
Syntax
Description
enableCAN(enables
CAN interface for the specified device. The CAN controller can only be set to
raspiObj,devicename)MCP2515. To disable CAN, use the disableCAN function.
enableCAN(
enables the CAN object for the specified interface and device. To disable CAN, use
the raspiObj,devicename,interfacename)disableCAN function.
enableCAN(
enables the CAN object when the interface name, device name, and oscillator
frequency is set. To disable CAN, use the raspiObj,devicename,interfacename, oscillatorFrequency)disableCAN function.
enableCAN(
enables the CAN object for the specified interrupt pin, interface, device, and
oscillator frequency. To disable CAN, use the raspiObj,devicename,interfacename, oscillatorFrequency,interruptPin)disableCAN function.
Note
To generate C/C++ code for this function, you must have an Embedded Coder® license.
Examples
Input Arguments
Extended Capabilities
Version History
Introduced in R2021b