target.Board 类
命名空间: target
提供硬件板详细信息
描述
使用 target.Board 对象向 MATLAB® 提供有关目标硬件板的数据,例如 CPU、通信和工具信息。
要创建 target.Board 对象,请使用 target.create 函数。
属性
target.Board 对象的名称,target.get 将其用作数据检索中的标识符。
特性:
GetAccess | public |
SetAccess | public |
target.Processor 对象数组,提供该板可用的处理器的描述。
特性:
GetAccess | public |
SetAccess | public |
target.CommunicationInterface 对象数组,提供该板可用的通信接口的描述。
特性:
GetAccess | public |
SetAccess | public |
target.CommunicationProtocolStack 对象数组,提供该板的通信协议的描述。
特性:
GetAccess | public |
SetAccess | public |
target.MainFunction 对象数组,捕获运行时依赖关系,例如 main 函数参量、初始化代码以及 main 函数编译依赖关系。
特性:
GetAccess | public |
SetAccess | public |
与该板关联的工具描述集合。例如,ApplicationExecutionTool 用于启用在目标硬件上执行应用程序。
特性:
GetAccess | public |
SetAccess | public |
示例
创建一个目标硬件板的描述。来自Set Up PIL Connectivity by Using Target Framework (Embedded Coder)的以下代码描述如何创建该描述。
创建一个板对象,向 MATLAB 提供处理器属性的描述。
hostTarget = target.create('Board', 'Name', 'Host Intel processor');
为板指定处理器,例如,通过重用支持的处理器。
hostTarget.Processors = target.get('Processor', ... 'Intel-x86-64 (Linux 64)');
为目标硬件板创建一个通信接口。来自Set Up PIL Connectivity by Using Target Framework (Embedded Coder)的以下代码片段说明如何创建该接口。
comms = target.create('CommunicationInterface'); comms.Name = 'Linux TCP Interface'; comms.Channel = 'TCPChannel'; comms.APIImplementations = target.create('APIImplementation', ... 'Name', 'x86 RTIOStream Implementation'); comms.APIImplementations.API = target.create('API', 'Name', 'RTIO Stream'); ... hostTarget.CommunicationInterfaces = comms;
指定 PIL 协议信息。以下代码片段来自Set Up PIL Connectivity by Using Target Framework (Embedded Coder),显示如何指定信息。
pilProtocol = target.create('PILProtocol'); pilProtocol.Name = 'Linux PIL Protocol'; pilProtocol.SendBufferSize = 50000; pilProtocol.ReceiveBufferSize = 50000; hostTarget.CommunicationProtocolStacks = pilProtocol;
版本历史记录
在 R2020b 中推出
另请参阅
target.create | target.Processor
主题
- Set Up PIL Connectivity by Using Target Framework (Embedded Coder)
MATLAB Command
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
选择网站
选择网站以获取翻译的可用内容,以及查看当地活动和优惠。根据您的位置,我们建议您选择:。
您也可以从以下列表中选择网站:
如何获得最佳网站性能
选择中国网站(中文或英文)以获得最佳网站性能。其他 MathWorks 国家/地区网站并未针对您所在位置的访问进行优化。
美洲
- América Latina (Español)
- Canada (English)
- United States (English)
欧洲
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)