target.ExternalMode クラス
パッケージ: target
説明
target.ExternalMode
クラスは、
のサブクラスであり、ターゲット ハードウェアのエクスターナル モード プロトコル スタックを指定するために使用します。target.CommunicationProtocolStack
target.ExternalMode
オブジェクトの作成には関数 target.create
を使用します。オブジェクトを作成してから、別のステップを使用してプロパティを指定します。または、名前と値の引数を使用して、オブジェクトの作成とプロパティの指定を単一のステップで行います。
プロパティ
Connectivities
— エクスターナル モードの接続オプション
target.ExternalModeConnectivity オブジェクトの配列
エクスターナル モード プロトコル スタックの接続オプションを指定します。配列には、特定のトランスポート プロトコルについて target.ExternalModeConnectivity
オブジェクトを 1 つだけ含めることができます。たとえば、配列に XCP on TCP/IP
と XCP on Serial
のそれぞれに対する別々のオブジェクトを 1 つずつ含めることができます。
属性:
GetAccess | public |
SetAccess | public |
例
ターゲット ハードウェアのエクスターナル モード プロトコル スタックの指定
XCP エクスターナル モード シミュレーションの接続性のカスタマイズから抜粋した以下のコードは、ターゲット ハードウェアのエクスターナル モード プロトコル スタックを指定する方法を示しています。
xcpPlatformAbstraction = target.create('XCPPlatformAbstraction', ... 'Name', 'XCP Platform Abstraction'); xcpPlatformAbstraction.BuildDependencies.Defines = {'XCP_CUSTOM_PLATFORM'}; customPlatformAbstractionPath = 'pathToImplementationFolder'; xcpPlatformAbstraction.BuildDependencies.SourceFiles = ... {fullfile(customPlatformAbstractionPath, 'myXCPPlatform.c')}; xcpPlatformAbstraction.BuildDependencies.IncludePaths = ... {customPlatformAbstractionPath}; xcpTransport = target.create('XCPTCPIPTransport', ... 'Name', 'XCP Transport'); xcpConfiguration = target.create('XCP', ... 'Name', 'XCP Configuration', ... 'XCPTransport', xcpTransport, ... 'XCPPlatformAbstraction', xcpPlatformAbstraction); extModeTCPConnectivity = ... target.create('XCPExternalModeConnectivity', ... 'Name', 'External Mode TCP Connectivity', ... 'XCP', xcpConfiguration); externalMode = target.create('ExternalMode', ... 'Name', 'External Mode', ... 'Connectivities', extModeTCPConnectivity); board.CommunicationProtocolStacks = externalMode;
メモ
target.ExternalMode
オブジェクトは単一のステップで作成できます。
externalMode = target.create('ExternalMode', ... 'Name', 'External Mode', ... 'XCPTransportLayer', 'TCP', ... 'Defines', {'XCP_CUSTOM_PLATFORM'}, ... 'SourceFiles', {fullfile('pathToImplementationFolder', 'myXCPPlatform.c'}, ... 'IncludePaths', {'pathToImplementationFolder'});
バージョン履歴
R2021a で導入
MATLAB コマンド
次の MATLAB コマンドに対応するリンクがクリックされました。
コマンドを MATLAB コマンド ウィンドウに入力して実行してください。Web ブラウザーは MATLAB コマンドをサポートしていません。
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- 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)