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

11 views (last 30 days)
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

Answers (0)

Categories

Find more on AUTOSAR Blockset in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!