Main Content

target.CommunicationProtocolStack class

Package: target

Describe communication protocol parameters

Description

To describe target-specific parameters for different protocols, you can associate a target.CommunicationProtocolStack object with a target.Board object. One example of target.CommunicationProtocolStack is target.PILProtocol.

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

Properties

expand all

Name of the API.

Attributes:

GetAccess
public
SetAccess
public

Examples

collapse all

Specify PIL protocol information. This code snippet from Set Up PIL Connectivity by Using target Package shows how to specify the information.

pilProtocol = target.create('PILProtocol');
pilProtocol.Name = 'Linux PIL Protocol';
pilProtocol.SendBufferSize = 50000;
pilProtocol.ReceiveBufferSize = 50000;
hostTarget.CommunicationProtocolStacks = pilProtocol;
Introduced in R2020b