Hi, I am not facing any errors while creating Enumeration members for this class or while calling the methods. Can you provide more information or part of the code that is causing this error?
Enum Rte_Type code generation error
5 次查看(过去 30 天)
显示 更早的评论
I had enum class and i got error given below when i trigger build process. Enum class includes only uint datatype. In 2019a i didnt have error. I started to get this error when i switch to 2020b release. Even, I couldnt solve this issue with deleting Enum class. How can i solve that?
classdef(Enumeration) EN_STATE < Simulink.IntEnumType
% Enumeration class definition
enumeration
STATE_0(0)
STATE_1(1)
STATE_2(2)
end
methods (Static = true)
function retVal = getDescription()
retVal = 'Enumerated class definition ENUM';
end
function retVal = getHeaderFile()
retVal = 'Rte_Type.h';
end
function retVal = getExportHeaderFile()
retVal = 'Rte_Type.h';
end
function retVal = isImport()
retVal = true;
end
function retVal = getDefaultValue()
retVal = EN_STATE.STATE_0;
end
end
end
Error using coder.internal.callMakeHook
The call to autosar_make_rtw_hook, during the after_tlc hook generated the following error:
Expected true or false not STATE_0
The build process will terminate as a result.
回答(0 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!