target.XCP クラス
パッケージ: target
説明
target.XCP
クラスは、ターゲット ハードウェアの XCP プロトコル スタックを記述するために使用します。
target.XCP
オブジェクトの作成には関数 target.create
を使用します。オブジェクトを作成してから、別のステップを使用してプロパティを指定します。または、名前と値の引数を使用して、オブジェクトの作成とプロパティの指定を単一のステップで行います。
プロパティ
XCPTransport
— XCP トランスポート プロトコル
target.XCPTransport オブジェクト
XCP トランスポート プロトコル層を target.XCPTCPIPTransport
オブジェクトまたは target.XCPSerialTransport
オブジェクトを通じて指定します。
属性:
GetAccess | public |
SetAccess | public |
XCPPlatformAbstraction
— XCP プラットフォーム抽象化
target.XCPPlatformAbstraction オブジェクト
XCP プラットフォーム抽象化レイヤーを指定するオプションのプロパティ。値を指定しない場合、ソフトウェアで既定のプラットフォーム抽象化レイヤーが使用されます。Linux®、Windows®、および Mac の各プラットフォームがサポートされています。
属性:
GetAccess | public |
SetAccess | public |
例
ターゲット ハードウェアの XCP プロトコル スタック
XCP エクスターナル モード シミュレーションの接続性のカスタマイズから抜粋した以下のコードは、ターゲット ハードウェアの XCP プロトコル スタックについて記述するための方法を示しています。
xcpPlatformAbstraction = target.create('XCPPlatformAbstraction', ... 'Name', 'XCP Platform Abstraction'); 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);
メモ
target.XCP
オブジェクトは単一のステップで作成できます。
xcpConfiguration = target.create('XCP', ... 'Name', 'XCP TCP/IP Configuration', ... 'XCPTransportLayer', 'TCP', ... '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)