Why does the generated code for a Simulink Function returns an argument instead of void when using the autosar.tlc target?
이전 댓글 표시
It is sought to generate embedded code using the autosar.tlc target from a Simulink model that uses a Simulink Function Caller block. The function prototype provided to the function is as follows,
myoutp = myfunc()
It is expected that the generated embedded code when using the autosar.tlc target for this Simulink Function Caller block has no output argument and the signature looks as follows,
void Rte_Call_CP_myfunc(UInt8* myoutp);
However, the generated embedded code when using the autosar.tlc from this Simulink Function has in fact the following signature,
Std_ReturnType Rte_Call_CP_myfunc(UInt8* State);
Why does the generated code for a Simulink Function returns an argument instead of void when using the autosar.tlc target?
where as it can be see the return type 'Std_ReturnType', which is defined under Std_Types.h is an alias to uint8:
typedef uint8 Std_ReturnType;
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 AUTOSAR Blockset에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
