フィルターのクリア

P2VAR(uint8, AUTOMATIC, xxx_VAR_INIT) Data but i need yyy(P2VAR(uint8, AUTOMATIC, RTE_APPL_DATA) Data

26 ビュー (過去 30 日間)
Darshan H R
Darshan H R 2023 年 1 月 31 日
回答済み: Kartik 2023 年 5 月 15 日
Iam working on Function calls, where I need to change Pointer classes as per the requirement, but Pointer class is getting defined by function name init, how to change for RTE_APPL_DATA

回答 (1 件)

Kartik
Kartik 2023 年 5 月 15 日
Hi,
To change the pointer class for `Data` to `RTE_APPL_DATA`, you can modify the declaration of `Data` as follows:
P2VAR(uint8, AUTOMATIC, RTE_APPL_DATA) Data;
You will need to update all references to `Data` accordingly in your code to reflect this change.
The main difference between `xxx_VAR_INIT` and `RTE_APPL_DATA` is the context in which they are used. The former is typically used for variables that are initialized by `xxx_Init()` functions, whereas the latter is used for variables that are part of the application program interface (API) of a software component.

カテゴリ

Help Center および File ExchangeAUTOSAR Blockset についてさらに検索

タグ

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by