change the order of Autosar Caller function arguments

조회 수: 9 (최근 30일)
선주
선주 2024년 11월 6일
답변: Kilsu Kim 2024년 11월 26일
Hi!
I have a problem when I generate Autosar Code.
I wanted to generate RTE caller for IoHwAb.
IoHwAb Rte function form is 'Rte_Call_XXX_XXX_ReadDirect(&DataVal, Length)'
So I set interface in Autosar Architecture Interface Dictionary as below
But Code output is like 'Rte_Call_XXX_XXX_ReadDirect(Length, &DataVal)'
When I create Autosar interface in each model. I can change arrguments order.
How to change arrguments order in Architecture Interface Data ?

답변 (2개)

Kilsu Kim
Kilsu Kim 2024년 11월 26일
This issue was resolved by using 'Configure order of arguments.'

Mr. Pavl M.
Mr. Pavl M. 2024년 11월 6일
Correction found: arrguments must be arguments (1 r).
What is the rationale and a motivation for doing so?
According to OOD, OOP encapsulation principles, interfaces must disambiguously define (drive) further functions implementations signatures.
Can you click by a right button of a moving ball (mouse) connected device and use the right click menu or can you add/delete arguments in diagram/blockscheme menu (graphically) by your an arbitrary order and keep it consistent with further invocations of a function of an interest.

카테고리

Help CenterFile Exchange에서 AUTOSAR Blockset에 대해 자세히 알아보기

태그

제품


릴리스

R2024b

Community Treasure Hunt

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

Start Hunting!

Translated by