Adding a Return Value to an SWC Method
- Open the signature editor for the method.
- Go to the Return tab of the signature editor.
- Activate the Return Value option, if the method is to have a return value.
Specify the data type of the return value.
Note
Since ASCET V6.3, composite and complex return values are always explicit references, even though they are not marked with the overlay icon
. If you selected an array or matrix of enumeration or record type,
the following happens.To edit the size of an array or matrix selected as return value,
do the following.- Type in a comment and a unit.
- If you selected an array, matrix, or component as type, use the Read for Referenced Element and Write for Referenced Element options to set internal access to the referenced element to Read, Write, or both.
Note |
|---|
If you use matrices as interrunnable variables, make sure that the Number of dimensions for fixed matrixestarget option is set to Two-dimensional. Otherwise, a warning WMdl653 is issued during AUTOSAR code generation. By default, this warning is promoted to an error. |
See also
Editing the Signature of a Runnable or Method
Introduction – Variant Size of Arrays and Matrices
Introduction – Variable Size for Arrays and Matrices