How to generate code with enum in Embedded Coder (autosar.tlc)
이전 댓글 표시
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
댓글 수: 1
Hailin Ren
2020년 12월 9일
It looks like some other users asked a similar question in this thread, Enumeration Code Generation with Embedded Coder (autosar.tlc) - MATLAB Answers - MATLAB Central (mathworks.com)
답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 AUTOSAR Blockset에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!