Main Content

XCP CAN Transport Layer

Generate and consume XCP messages that are transported by CAN hardware

Since R2020b

  • XCP CAN Transport Layer block

Libraries:
Simulink Real-Time / XCP / CAN FD

Description

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

Connect the input side of the block to a block that receives CAN messages. Connect the output side of the block to a block that transmits the XCP messages over CAN. Set up the transmitting block so that a CAN 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

Vector of CAN MESSAGE structures being consumed.

Number of messages in the vector.

Output

expand all

Vector of CAN MESSAGE structures being generated.

Number of messages in the vector.

Extended Capabilities

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

Version History

Introduced in R2020b