Selecting an Enumerator, Error Code, or Mode

  1. Open the data editor for the enumeration or scalar Std_ReturnTypeClosed a data type that contains the names of AUTOSAR errors; see RTE Access Macros – Error Codes element or mode group.
  2. Click the combo box.
  3. Select the enumerator or error code or mode you want.

    Note

    In a non-AUTOSAR environment, the integer values corresponding to the enum values of a Std_ReturnType element are generated as literals, independent of the value selected for Generation of Enums in the project properties. Elements with model type Std_ReturnType have a unit8 type in the C code.

    In an AUTOSAR environment, the prefix RTE_E_ is added to the enum values of a Std_ReturnType element, to provide compliance to the AUTOSAR standard.

  4. Click OK to confirm your changes.

See also

Opening a Data Editor

Software Component Editors – RTE Access Macros

Project Properties – Code Generation Options