Error codes are constants, not enum. That fixes another MISRA violation.
Most enums were replaced with constants, according to MISRA
Removed enum constants from generated types
Stupid condition swap to eliminate a false positive from static analyzer