How to generate code with enum in Embedded Coder (autosar.tlc)

16 Ansichten (letzte 30 Tage)
Don Matteo
Don Matteo am 23 Sep. 2020
Kommentiert: Hailin Ren am 9 Dez. 2020
Adding an enum definition in Data Dictionary the result of code generation with System target file set to autosar.tlc in Rte_Type.h is
typedef sint32 wizards;
#ifndef GANDALF
#define GANDALF (0)
#endif
#ifndef MERLINO
#define MERLINO (1)
#endif
#ifndef GESU
#define GESU (2)
#endif
is there a way to generate typedef enum insted?
typedef enum {
..
} wizards

Antworten (0)

Kategorien

Mehr zu AUTOSAR Blockset finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by