AUTOSAR code generation: Configuring a server interface with a standard return value (E_OK and E_NOT_OK)

4 次查看(过去 30 天)
Hello,
We are using the embedded code generation for AUTOSAR components which are imported into MATLAB as arxml files. After the import, the configuration of the AUTOSAR atomic software component looks as defined in the arxml file. Yet, after that, when we generate the code, all server functions (assuming client/server interface) are generated without return argument like "void MyFunction (InArg1, *OutArg)" although it is defined in the respective interface (as enumeration of errors; E_OK, E_NOT_OK ). In other words we would like to generate the functions like "Std_ReturnType MyFunction (InArg, *OutArg)". How can we configure the functions that returns a value e.g. in Std_ReturnType.
Thanks in advance.
Kind regards, Ugur

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 AUTOSAR Blockset 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by