56 #ifndef FOXBMS__SYS_H_
57 #define FOXBMS__SYS_H_
uint16_t initializationTimeout
uint32_t illegalRequestsCounter
SYS_STATE_REQUEST_e stateRequest
SYS_STATEMACH_SUB_e lastSubstate
SYS_STATEMACH_SUB_e substate
SYS_STATEMACH_e lastState
@ SYS_BAL_INITIALIZATION_ERROR
@ SYS_WAIT_FIRST_MEASUREMENT_CYCLE
@ SYS_WAIT_INITIALIZATION_IMD
@ SYS_SBC_INITIALIZATION_ERROR
@ SYS_WAIT_INITIALIZATION_BAL_GLOBAL_ENABLE
@ SYS_BMS_INITIALIZATION_ERROR
@ SYS_WAIT_INITIALIZATION_BMS
@ SYS_WAIT_INITIALIZATION_SBC
@ SYS_WAIT_INITIALIZATION_BAL
@ SYS_WAIT_INITIALIZATION_INTERLOCK
@ SYS_CURRENT_SENSOR_PRESENCE_ERROR
@ SYS_MEAS_INITIALIZATION_ERROR
@ SYS_WAIT_CURRENT_SENSOR_PRESENCE
@ SYS_CONT_INITIALIZATION_ERROR
@ SYS_IMD_INITIALIZATION_ERROR
@ SYS_ILCK_INITIALIZATION_ERROR
@ SYS_CHECK_STATE_REQUESTS
@ SYS_WAIT_INITIALIZATION_CONT
@ SYS_ALREADY_INITIALIZED
@ SYS_STATE_INITIALIZATION_REQUEST
@ SYS_STATE_ERROR_REQUEST
@ SYS_FSM_SUBSTATE_INITIALIZATION_INTERLOCK
@ SYS_FSM_SUBSTATE_INITIALIZATION_MISC
@ SYS_FSM_SUBSTATE_INITIALIZATION_FIRST_MEASUREMENT_CYCLE
@ SYS_FSM_SUBSTATE_INITIALIZATION_BOOT_MESSAGE
@ SYS_FSM_SUBSTATE_INITIALIZATION_INSULATION_GUARD
@ SYS_FSM_SUBSTATE_INITIALIZATION_CONTACTORS
@ SYS_FSM_SUBSTATE_INITIALIZATION_BALANCING
@ SYS_FSM_SUBSTATE_INITIALIZATION_CHECK_CURRENT_SENSOR
@ SYS_FSM_SUBSTATE_RUNNING
@ SYS_FSM_SUBSTATE_INITIALIZATION_SBC
@ SYS_FSM_SUBSTATE_INITIALIZATION_BMS
SYS_RETURN_TYPE_e SYS_SetStateRequest(SYS_STATE_REQUEST_e stateRequest)
sets the current state request of the state variable sys_state.
@ SYS_FSM_STATE_UNINITIALIZED
@ SYS_FSM_STATE_INITIALIZATION
@ SYS_FSM_STATE_HAS_NEVER_RUN
@ SYS_STATEMACH_INITIALIZE_CAN
@ SYS_STATEMACH_SYSTEM_BIST
@ SYS_STATEMACH_INITIALIZE_SBC
@ SYS_STATEMACH_UNINITIALIZED
@ SYS_STATEMACH_INITIALIZE_BALANCING
@ SYS_STATEMACH_INITIALIZATION
@ SYS_STATEMACH_INITIALIZE_IMD
@ SYS_STATEMACH_INITIALIZE_MISC
@ SYS_STATEMACH_INITIALIZED
@ SYS_STATEMACH_INITIALIZE_CONTACTORS
@ SYS_STATEMACH_FIRST_MEASUREMENT_CYCLE
@ SYS_STATEMACH_INITIALIZE_BMS
@ SYS_STATEMACH_CHECK_CURRENT_SENSOR_PRESENCE
@ SYS_STATEMACH_INITIALIZE_INTERLOCK
STD_RETURN_TYPE_e SYS_Trigger(SYS_STATE_s *pSystemState)
tick function, call this to advance the state machine
void SYS_GeneralMacroBist(void)
Sys driver configuration header.