Main Content

target.ExternalMode class

Package: target

Represent external mode protocol stack

Description

Use the target.ExternalMode class, which is a subclass of target.CommunicationProtocolStack, to specify the external mode protocol stack for your target hardware.

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

Properties

expand all

Provide connectivity options for the external mode protocol stack. The array can contain only one target.ExternalModeConnectivity object for a specific transport protocol. For example, the array can contain one object for XCP on TCP/IP and another object for XCP on Serial.

Attributes:

GetAccess
public
SetAccess
public

Examples

collapse all

This code snippet from Customise Connectivity for XCP External Mode Simulations shows how to specify the external mode protocol stack for your target hardware.

extModeTCPConnectivity = ... 
             target.create('XCPExternalModeConnectivity', ...                
             'Name', 'External Mode TCP Connectivity', ...
             'XCP', xcpTCPIPConfiguration);

externalMode = target.create('ExternalMode', ...
                'Name', 'External Mode', ...
                'Connectivities', extModeTCPConnectivity);

board.CommunicationProtocolStacks = externalMode;
Introduced in R2021a