How to generate code with enum in Embedded Coder (autosar.tlc)
4 次查看(过去 30 天)
显示 更早的评论
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 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 AUTOSAR Blockset 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!