Main Content

target.XCP class

Package: target

Describe XCP protocol stack for target hardware

Description

Use the target.XCP class to describe the XCP protocol stack for the target hardware.

To create a target.XCP object, use the target.create function.

Properties

expand all

Specify the XCP transport protocol layer through a target.XCPTCPIPTransport or a target.XCPSerialTransport object.

Attributes:

GetAccess
public
SetAccess
public

Optional property to specify the XCP platform abstraction layer. If you do not specify a value, the software uses the default platform abstraction layer.

Attributes:

GetAccess
public
SetAccess
public

Examples

collapse all

This code snippet from Customise Connectivity for XCP External Mode Simulations shows how you can provide a description of the XCP protocol stack for your target hardware.

xcpTCPIPConfiguration = target.create('XCP', ...
                'Name', 'XCP TCP/IP Configuration', ...
                'XCPTransport', xcpTCPIPTransport, ...
                'XCPPlatformAbstraction', xcpPlatformAbstraction);
Introduced in R2021a