55 #ifndef FOXBMS__SYS_H_
56 #define FOXBMS__SYS_H_
enum STD_RETURN_TYPE STD_RETURN_TYPE_e
uint32_t illegalRequestsCounter
SYS_STATE_REQUEST_e stateRequest
SYS_STATEMACH_SUB_e lastSubstate
SYS_STATEMACH_e lastState
uint16_t initializationTimeout
SYS_STATEMACH_SUB_e substate
enum SYS_CHECK SYS_CHECK_e
enum SYS_FSM_STATES SYS_FSM_STATES_e
@ SYS_STATEMACH_INITIALIZE_CAN
@ SYS_STATEMACH_SYSTEM_BIST
@ SYS_STATEMACH_INITIALIZE_SBC
@ SYS_STATEMACH_UNINITIALIZED
@ SYS_STATEMACH_INITIALIZE_ISOGUARD
@ SYS_STATEMACH_INITIALIZE_BALANCING
@ SYS_STATEMACH_INITIALIZATION
@ 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
@ SYS_ALREADY_INITIALIZED
enum SYS_FSM_SUBSTATES SYS_FSM_SUBSTATES_e
@ SYS_FSM_STATE_UNINITIALIZED
@ SYS_FSM_STATE_INITIALIZATION
@ SYS_FSM_STATE_HAS_NEVER_RUN
struct SYS_STATE SYS_STATE_s
enum SYS_RETURN_TYPE SYS_RETURN_TYPE_e
enum SYS_STATEMACH SYS_STATEMACH_e
SYS_RETURN_TYPE_e SYS_SetStateRequest(SYS_STATE_REQUEST_e stateRequest)
sets the current state request of the state variable sys_state.
@ 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
enum SYS_STATEMACH_SUB SYS_STATEMACH_SUB_e
@ SYS_STATE_ERROR_REQUEST
@ SYS_WAIT_FIRST_MEASUREMENT_CYCLE
@ SYS_WAIT_INITIALIZATION_BAL_GLOBAL_ENABLE
@ SYS_WAIT_INITIALIZATION_BMS
@ SYS_WAIT_INITIALIZATION_SBC
@ SYS_WAIT_INITIALIZATION_BAL
@ SYS_WAIT_INITIALIZATION_INTERLOCK
@ SYS_CURRENT_SENSOR_PRESENCE_ERROR
@ SYS_WAIT_CURRENT_SENSOR_PRESENCE
@ SYS_CHECK_STATE_REQUESTS
@ SYS_WAIT_INITIALIZATION_CONT
enum SYS_STATE_REQUEST SYS_STATE_REQUEST_e
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.