target.XCPExternalModeConnectivity クラス
パッケージ: target
説明
target.ExternalModeConnectivity
から派生する target.XCPExternalModeConnectivity
クラスを使用して、エクスターナル モード プロトコル スタックの XCP 接続性オプションを表します。
target.XCPExternalModeConnectivity
オブジェクトを作成するには、関数 target.create
を使用します。オブジェクトを作成してから、別のステップを使用してプロパティを指定します。または、名前と値の引数を使用して、オブジェクトの作成とプロパティの指定を単一のステップで行います。
プロパティ
XCP
— XCP 構成
target.XCP オブジェクト
ターゲット ハードウェアの XCP プロトコル スタックを指定します。
例
ターゲット ハードウェアのエクスターナル モード プロトコル スタックの指定
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.XCPExternalModeConnectivity
オブジェクトは単一のステップで作成できます。
extModeTCPConnectivity = target.create('XCPExternalModeConnectivity', ... 'Name', 'External Mode TCP Connectivity', ... '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)