CAN FD Receive
R2026bLibraries:
Raspberry Pi Blockset /
Communication
Description
The CAN FD Receive block receives messages from a Controller Area Network Flexible Data Rate (CAN FD) interface and outputs the received data for processing in a Simulink® model. Use this block to read CAN FD frames from a configured CAN interface on Raspberry Pi® hardware. The block supports both raw CAN FD output and structured message output enabling workflows for direct data processing or message-based applications.
The block supports two output workflows:
In the
Raw datamode, the block outputs received message bytes as auint8vector.In the
CAN Msgmode, the block outputs a Simulink bus signal representing a CAN FD message. To extract individual fields from this message, use the CAN FD Unpack (Embedded Coder) block.
The block supports CAN FD message sizes up to 64 bytes and enables reception of CAN FD frames that use higher data rates during the data phase when bit rate switching is enabled.
Note
To generate C/C++ code for this block, you must have an Embedded Coder® license.
The CAN FD Receive block also supports reception of classical CAN messages when the CAN interface is configured for CAN FD. To receive classical CAN messages, do not use bit rate switching and make sure the message size is 8 bytes or less.
For more information on how to enable the SPI interface and configure the MCP2518FD CAN FD controller for CAN FD configuration, see Enable and Configure Raspberry Pi for SPI and CAN FD Communication Using Waveshare 2-CH CAN FD HAT.
Examples
Extended Examples
Ports
Output
Parameters
Extended Capabilities
Version History
Introduced in R2026b



