classdef ENUM_EMB < Simulink.IntEnumType % MATLAB enumeration class definition generated from template enumeration CMD_IDLE(0), CMD_CLEAR_ERR(1), CMD_WRITE_SETTINGS(2), CMD_CALIBRATION(3), CMD_CTRL_VABC(4), CMD_CTRL_FOC(5), CMD_CTRL_SPD(6), CMD_CTRL_POS(7), ERR_NORMAL(8), ERR_PWR_OVERVOLTAGE(9), ERR_PWR_UNDERVOLTAGE(10), ERR_PWR_OVERCURRENT(11), ERR_BLDC_DRVFAULT(12), ERR_BLDC_OVERVOLTAGE(13), ERR_BLDC_OVERCURRENT(14), ERR_BLDC_OVERHEAT(15), ERR_BLDC_ENC(16), ERR_BRAKE_OVERVOLTAGE(17), ERR_BRAKE_OVERCURRENT(18), ERR_BRAKE_OVERHEAT(19), CMD_BRAKE_OPEN(20), ERR_TIMEOUT_OP(536870963), ERR_RAY_DEBUG_RANDOM(1192227) end methods (Static) function defaultValue = getDefaultValue() % GETDEFAULTVALUE Returns the default enumerated value. % If this method is not defined, the first enumeration is used. defaultValue = ENUM_EMB.CMD_IDLE; end function dScope = getDataScope() % GETDATASCOPE Specifies whether the data type definition should be imported from, % or exported to, a header file during code generation. dScope = 'Imported'; end function desc = getDescription() % GETDESCRIPTION Returns a description of the enumeration. desc = ''; end function headerFile = getHeaderFile() % GETHEADERFILE Specifies the name of a header file. headerFile = 'emb_typedefs.h'; end function flag = addClassNameToEnumNames() % ADDCLASSNAMETOENUMNAMES Indicate whether code generator applies the class name as a prefix % to the enumeration. flag = false; end end end