package yabl const ( CONVERTERS_MAX = 18 + 1 CONTACTOR_MAX = 18 + 1 CONNECTOR_COUNT = 6 CONNECTOR_MAX = CONNECTOR_COUNT + 1 ALL_BITS = 0xFFFFFFFFFFFFFFFF UNIT_ID_OFFSET = 12 UNIT_ID_MASK = 0b111111111111 << UNIT_ID_OFFSET ACTION_ID_MASK = 0b111111111111 BOARD_READY_OK BoardReadyType = 0 BOARD_READY_INFO BoardReadyType = 1 BOARD_READY_WARNING BoardReadyType = 2 BOARD_READY_DEBUG BoardReadyType = 3 BOARD_READY_DEP_ERROR BoardReadyType = 4 BOARD_READY_ERROR BoardReadyType = 5 BOARD_READY_CRITICAL BoardReadyType = 6 OFF BooleanType = 0 ON BooleanType = 1 NO_ERROR ErrorType = 0 ERROR ErrorType = 1 OTHER_NO_ERROR ContactorInternalOtherErrorType = 0 NO_PENDING_CHANGES ContactorGroupChangedType = 0 INITIALIZED_CHANGE ContactorGroupChangedType = 1 CHANGE_IN_PROGRESS ContactorGroupChangedType = 2 V2G_MODE_G2V V2GModeType = 0 V2G_MODE_V2G V2GModeType = 1 V2G_MODE_INV V2GModeType = 2 NOT_ENABLE CpLineLevelType = 0 TWELVE CpLineLevelType = 1 NINE CpLineLevelType = 2 SIX CpLineLevelType = 3 THREE CpLineLevelType = 4 MINUS_TWELVE CpLineLevelType = 5 ISOLATION_STATE_UNKNOWN IsolationStateType = 0 ONGOING IsolationStateType = 1 PASSED IsolationStateType = 2 WARNING IsolationStateType = 3 FAILED IsolationStateType = 4 AUTH AuthModeType = 0 PNC AuthModeType = 1 AUTH_STATE_UNKNOWN AuthStateType = 0 AUTH_STATE_ALLOW AuthStateType = 1 AUTH_STATE_DENY AuthStateType = 2 CONTACTOR_NO_MODE ContactorModeType = 0 CONTACTOR_TRANSACTION_PROCESS ContactorModeType = 1 CONTACTOR_CUSTOM_MODE ContactorModeType = 2 CONTACTOR_ONLY_ONE_OUT_MODE ContactorModeType = 3 CONTACTOR_ONE_TO_ONE_OUT_MODE ContactorModeType = 4 CONTACTOR_SIMPLE_DYNAMIC_MODE ContactorModeType = 5 DEBUG_SWITCH_MODE_AUTO DebugSwitchModeType = 0 DEBUG_SWITCH_MODE_OFF DebugSwitchModeType = 1 DEBUG_SWITCH_MODE_ON DebugSwitchModeType = 2 DEBUG_SWITCH_MODE_PERMANENT_OFF DebugSwitchModeType = 4 DEBUG_SWITCH_MODE_PERMANENT_ON DebugSwitchModeType = 5 PCpuPresentEnergy AName = "CpuPresentEnergy" PCpuPeriphery AName = "CpuPeriphery" PCpuEnergySettings AName = "CpuEnergySettings" PCpuErrors AName = "CpuErrors" PCpuDebug AName = "CpuDebug" PPuPresentEnergy AName = "PuPresentEnergy" PPuPeriphery AName = "PuPeriphery" PPuErrors AName = "PuErrors" PPuDebug AName = "PuDebug" PSeccTargetEnergy AName = "SeccTargetEnergy" PSeccErrors AName = "SeccErrors" PLogicAuth AName = "LogicAuth" PLogicEnergyMode AName = "LogicEnergyMode" PLogicErrors AName = "LogicErrors" PLogicWorkingMode AName = "LogicWorkingMode" PContactorInternalState AName = "ContactorInternalState" PContactorInternalErrors AName = "ContactorInternalErrors" PContactorsInternalForce AName = "ContactorsInternalForce" PContactorInternalDebug AName = "ContactorInternalDebug" PPeripheryState AName = "PeripheryState" PPeripheryInfo AName = "PeripheryInfo" PPeripheryDebug AName = "PeripheryDebug" PConverterPresentEnergy AName = "ConverterPresentEnergy" PConverterErrors AName = "ConverterErrors" PConverterDebug AName = "ConverterDebug" FContactorReady FName = "ContactorReady" FContactorOn FName = "ContactorOn" FUnexpectedState FName = "UnexpectedState" FIsolated FName = "Isolated" FDebugEnabled FName = "DebugEnabled" FBoardReady FName = "BoardReady" FOtherError FName = "OtherError" FContactorGroupChanged FName = "ContactorGroupChanged" FUnexpectedFormation FName = "UnexpectedFormation" FCpuNotReady FName = "CpuNotReady" FPuNotReady FName = "PuNotReady" FDebug FName = "Debug" FPresentContactorMode FName = "PresentContactorMode" FForceModeEnabled FName = "ForceModeEnabled" FForceModeValue FName = "ForceModeValue" FDebugModeOn FName = "DebugModeOn" FDebugContactorOn FName = "DebugContactorOn" FV2GMode FName = "V2GMode" FVoltageBefore FName = "VoltageBefore" FVoltageAfter FName = "VoltageAfter" FPresentCurrent FName = "PresentCurrent" FConnectorInsert FName = "ConnectorInsert" // FContactorOn FName = "ContactorOn" FConnectorLocked FName = "ConnectorLocked" FCpLineLevel FName = "CpLineLevel" FIsolationState FName = "IsolationState" FChargingAllowed FName = "ChargingAllowed" FPwmEnabled FName = "PwmEnabled" FCpLineVoltage FName = "CpLineVoltage" FAuthMode FName = "AuthMode" FAuthState FName = "AuthState" FV2gMode FName = "V2gMode" FCurrentMax FName = "CurrentMax" FVoltageMax FName = "VoltageMax" FPowerMax FName = "PowerMax" // FBoardReady FName = "BoardReady" FNotReadySettings FName = "NotReadySettings" FTargetContactorMode FName = "TargetContactorMode" FAvailability FName = "Availability" FPowerDirectionMode FName = "PowerDirectionMode" // FPresentCurrent FName = "PresentCurrent" FPresentVoltage FName = "PresentVoltage" FContactorInput FName = "ContactorInput" FCircuitBreakerInput FName = "CircuitBreakerInput" FCircuitBreakerPowerCBInput FName = "CircuitBreakerPowerCBInput" // FCurrentMax FName = "CurrentMax" // FVoltageMax FName = "VoltageMax" // FPowerMax FName = "PowerMax" FTargetBatteryVoltage FName = "TargetBatteryVoltage" FTargetGoalVoltage FName = "TargetGoalVoltage" // FBoardReady FName = "BoardReady" // FOtherError FName = "OtherError" FRedButtonHard FName = "RedButtonHard" FRedButtonSoft FName = "RedButtonSoft" FModulesGone FName = "ModulesGone" FGridVoltageHighErr FName = "GridVoltageHighErr" FGridVoltageHighWarn FName = "GridVoltageHighWarn" FGridVoltageLowWarn FName = "GridVoltageLowWarn" FGridVoltageLowErr FName = "GridVoltageLowErr" FGridVoltageLow FName = "GridVoltageLow" FGridVoltageHigh FName = "GridVoltageHigh" FGridVoltageEmpty FName = "GridVoltageEmpty" FNotReadySecc FName = "NotReadySecc" FNotReadyPu FName = "NotReadyPu" FNotReadyContactors FName = "NotReadyContactors" FDebugConvertersEnabled FName = "DebugConvertersEnabled" FContactorInputError FName = "ContactorInputError" FNotReadyPeriphery FName = "NotReadyPeriphery" // FDebugModeOn FName = "DebugModeOn" FDebugContactorInputOn FName = "DebugContactorInputOn" FDebugCircuitBreakerOn FName = "DebugCircuitBreakerOn" FDebugRedButtonSoftware FName = "DebugRedButtonSoftware" // FBoardReady FName = "BoardReady" // FOtherError FName = "OtherError" FIncorrectVoltage FName = "IncorrectVoltage" FIncorrectVoltageValue FName = "IncorrectVoltageValue" FIncorrectCurrent FName = "IncorrectCurrent" FIncorrectCurrentValue FName = "IncorrectCurrentValue" FIsolationBroken FName = "IsolationBroken" FCpLineBroken FName = "CpLineBroken" FCpLineGap69 FName = "CpLineGap69" FCableReady FName = "CableReady" FNotReadyCpu FName = "NotReadyCpu" // FNotReadySecc FName = "NotReadySecc" FContactorOutputError FName = "ContactorOutputError" FDebugContactorOutputEnabled FName = "DebugContactorOutputEnabled" FOutputCircuitBreakerEnabled FName = "OutputCircuitBreakerEnabled" FOutputCircuitBreakerEnabledValue FName = "OutputCircuitBreakerEnabledValue" // FDebugModeOn FName = "DebugModeOn" FDebugContactorOutputOn FName = "DebugContactorOutputOn" FTargetChargingAllow FName = "TargetChargingAllow" // FTargetBatteryVoltage FName = "TargetBatteryVoltage" // FTargetGoalVoltage FName = "TargetGoalVoltage" FTargetCurrent FName = "TargetCurrent" // FBoardReady FName = "BoardReady" FNotReadyLogic FName = "NotReadyLogic" FOtherErrorSeverity FName = "OtherErrorSeverity" // FOtherError FName = "OtherError" FErrorShakeSensor FName = "ErrorShakeSensor" FErrorCoolingGroup FName = "ErrorCoolingGroup" FPeripheryErrorCoolingGroup FName = "PeripheryErrorCoolingGroup" FErrorFireEmergency FName = "ErrorFireEmergency" FErrorFireEmergencyRun FName = "ErrorFireEmergencyRun" FErrorFireEmergencyControl FName = "ErrorFireEmergencyControl" FErrorOvervoltageIn FName = "ErrorOvervoltageIn" FPeripheryErrorPowerSupply FName = "PeripheryErrorPowerSupply" FErrorFan FName = "ErrorFan" FErrorOvervoltageOut FName = "ErrorOvervoltageOut" FErrorStateRemoteMode FName = "ErrorStateRemoteMode" FDebugShsnFanEnabled FName = "DebugShsnFanEnabled" FDebugShptFanEnabled FName = "DebugShptFanEnabled" FDebugIoBoardTestLampEnabled FName = "DebugIoBoardTestLampEnabled" FErrorFireEmergencyCircuitBreaker FName = "ErrorFireEmergencyCircuitBreaker" FErrorExtLightCircuitBreaker FName = "ErrorExtLightCircuitBreaker" FErrorIndicationCircuitBreaker FName = "ErrorIndicationCircuitBreaker" FErrorLowVoltagePowerCircuitBreaker FName = "ErrorLowVoltagePowerCircuitBreaker" FErrorContactorsInternalCircuitBreaker FName = "ErrorContactorsInternalCircuitBreaker" FErrorPlcCircuitBreaker FName = "ErrorPlcCircuitBreaker" FInfoDoorOpen FName = "InfoDoorOpen" FTempAirIn FName = "TempAirIn" FTempAirOut FName = "TempAirOut" FStateShsnFan FName = "StateShsnFan" FStateShptFan FName = "StateShptFan" // FDebugModeOn FName = "DebugModeOn" FDebugShsnFan FName = "DebugShsnFan" FDebugShptFan FName = "DebugShptFan" FDebugIoBoardTestLamp FName = "DebugIoBoardTestLamp" // FV2gMode FName = "V2gMode" // FPresentVoltage FName = "PresentVoltage" // FPresentCurrent FName = "PresentCurrent" FConnectedOut FName = "ConnectedOut" // FBoardReady FName = "BoardReady" // FOtherError FName = "OtherError" FNotConnectedOut FName = "NotConnectedOut" FNoCommunicationConverter FName = "NoCommunicationConverter" FNoCommunicationPuConverter FName = "NoCommunicationPuConverter" FInputGridVoltageHigh FName = "InputGridVoltageHigh" FInputGridVoltageLow FName = "InputGridVoltageLow" FOutputGridVoltageHigh FName = "OutputGridVoltageHigh" FOutputGridVoltageLow FName = "OutputGridVoltageLow" FInputGridVoltage FName = "InputGridVoltage" FOutputGridVoltage FName = "OutputGridVoltage" FShortCircuit FName = "ShortCircuit" FOverHeat FName = "OverHeat" FFanBroken FName = "FanBroken" FOtherHardwareError FName = "OtherHardwareError" FDebugConvEnabled FName = "DebugConvEnabled" FDebugConvDisabled FName = "DebugConvDisabled" // FDebugModeOn FName = "DebugModeOn" FDebugEnergyOn FName = "DebugEnergyOn" FDebugTargetVoltage FName = "DebugTargetVoltage" FDebugTargetCurrent FName = "DebugTargetCurrent" )