Main Content

XCP CAN FD Transport Layer

Generate and consume XCP messages that are transported by CAN FD hardware

Since R2022b

  • XCP CAN FD Transport Layer block

Libraries:
Simulink Real-Time / XCP / CAN FD

Description

The XCP CAN FD Transport Layer block handles CAN FD messages that your model transmits or receives by using Simulink® Real-Time™ CAN FD library blocks.

Connect the input side of the block to a block that receives CAN FD messages. Connect the output side of the block to a block that transmits the XCP messages over CAN FD. Set up the transmitting block so that a CAN FD message is sent only when an XCP message is available. Otherwise, the block sends 0 byte data when XCP messages are not available, causing undefined behavior.

Ports

Input

expand all

The block input is a Simulink CAN_FD_MESSAGE_BUS signal. For more information on Simulink bus objects, see Composite Interfaces.

Number of messages in the vector.

Output

expand all

The block output is a Simulink CAN_FD_MESSAGE_BUS signal. For more information on Simulink bus objects, see Composite Interfaces.

Number of messages in the vector.

Extended Capabilities

C/C++ Code Generation
Generate C and C++ code using Simulink® Coder™.

Version History

Introduced in R2022b