Enumerations
Naming Rules
Section titled “Naming Rules”-
Always start with the uppercase letter
E. -
Subsequent words start with uppercase letters.
-
Do not use underscores
_. -
Numbers from
0to9. -
🐫
Pascal Casewith a small variant, point 2.EName -
The elements of the
enumerationfollow the rules ofconstants. -
❗ If the
enumerationis related toSafety, the name starts withF_:F_EName
Examples
Section titled “Examples”// ✅ Correct:TYPE EStatus: INT // ← Name( IDLE := 0; // ← constant REQUEST := 1; BUSY := 2; DONE := 3; ERROR := 0x8000;) := IDLE;END_TYPE
TYPE ECommand:...TYPE EData:...TYPE EHmiCommand:...TYPE EOperatingMode:...// ❌ Wrong:TYPE E_Status:...TYPE enumStatus:...TYPE e_status:...TYPE EnumStatus:...TYPE ENUM_status:......