Main Content

target.CommunicationProtocolStack Class

Namespace: target

Describe communication protocol parameters

Since R2020b

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 Framework (Embedded Coder) shows how to specify the information.

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

Version History

Introduced in R2020b