Why does the generated code for a Simulink Function returns an argument instead of void when using the autosar.tlc target?
Afficher commentaires plus anciens
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;
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur AUTOSAR Blockset dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
