|
foxBMS
1.0.0
The foxBMS Battery Management System API Documentation
|
Go to the documentation of this file.
55 #ifndef FOXBMS__SYS_H_
56 #define FOXBMS__SYS_H_
@ SYS_FSM_SUBSTATE_INITIALIZATION_MISC
@ SYS_FSM_SUBSTATE_INITIALIZATION_FIRST_MEASUREMENT_CYCLE
@ SYS_STATEMACH_INITIALIZATION
@ SYS_WAIT_CURRENT_SENSOR_PRESENCE
struct SYS_STATE SYS_STATE_s
SYS_STATEMACH_e lastState
SYS_STATEMACH_SUB_e lastSubstate
@ SYS_FSM_SUBSTATE_RUNNING
STD_RETURN_TYPE_e SYS_Trigger(SYS_STATE_s *pSystemState)
tick function, call this to advance the state machine
@ SYS_STATEMACH_INITIALIZE_MISC
enum SYS_FSM_SUBSTATES SYS_FSM_SUBSTATES_e
enum STD_RETURN_TYPE STD_RETURN_TYPE_e
enum SYS_CHECK SYS_CHECK_e
@ SYS_WAIT_INITIALIZATION_BAL_GLOBAL_ENABLE
@ SYS_FSM_SUBSTATE_INITIALIZATION_INTERLOCK
@ SYS_FSM_SUBSTATE_INITIALIZATION_CONTACTORS
enum SYS_STATE_REQUEST SYS_STATE_REQUEST_e
@ SYS_FSM_SUBSTATE_INITIALIZATION_BALANCING
@ SYS_FSM_SUBSTATE_INITIALIZATION_SBC
SYS_STATEMACH_SUB_e substate
@ SYS_WAIT_INITIALIZATION_CONT
enum SYS_STATEMACH_SUB SYS_STATEMACH_SUB_e
@ SYS_CHECK_STATE_REQUESTS
enum SYS_STATEMACH SYS_STATEMACH_e
@ SYS_STATEMACH_INITIALIZE_CONTACTORS
uint32_t illegalRequestsCounter
@ SYS_STATEMACH_INITIALIZE_BMS
@ SYS_STATEMACH_CHECK_CURRENT_SENSOR_PRESENCE
@ SYS_WAIT_FIRST_MEASUREMENT_CYCLE
Sys driver configuration header.
@ SYS_FSM_SUBSTATE_INITIALIZATION_BMS
uint16_t initializationTimeout
enum SYS_FSM_STATES SYS_FSM_STATES_e
SYS_STATE_REQUEST_e stateRequest
@ SYS_STATEMACH_UNINITIALIZED
@ SYS_STATE_ERROR_REQUEST
@ SYS_STATEMACH_FIRST_MEASUREMENT_CYCLE
@ SYS_ALREADY_INITIALIZED
@ SYS_FSM_SUBSTATE_INITIALIZATION_CHECK_CURRENT_SENSOR
enum SYS_RETURN_TYPE SYS_RETURN_TYPE_e
@ SYS_FSM_SUBSTATE_INITIALIZATION_BOOT_MESSAGE
@ SYS_WAIT_INITIALIZATION_BMS
@ SYS_WAIT_INITIALIZATION_BAL
@ SYS_STATEMACH_INITIALIZE_BALANCING
@ SYS_CURRENT_SENSOR_PRESENCE_ERROR
@ SYS_STATEMACH_INITIALIZE_SBC
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_INITIALIZATION
@ SYS_STATEMACH_INITIALIZE_INTERLOCK
@ SYS_FSM_STATE_UNINITIALIZED
@ SYS_STATEMACH_INITIALIZED
@ SYS_WAIT_INITIALIZATION_SBC
@ SYS_STATEMACH_INITIALIZE_ISOGUARD
@ SYS_FSM_SUBSTATE_INITIALIZATION_INSULATION_GUARD
@ SYS_WAIT_INITIALIZATION_INTERLOCK
@ SYS_FSM_STATE_HAS_NEVER_RUN