Main Content

XCP CAN Transport Layer

Generate and consume XCP messages that are transported by CAN hardware

  • Library:
  • Simulink Real-Time / XCP

  • XCP CAN Transport Layer block

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.

Introduced in R2020b