54 #ifndef FOXBMS__DEBUG_DEFAULT_H_
55 #define FOXBMS__DEBUG_DEFAULT_H_
137 #ifdef UNITY_UNIT_TEST
138 extern bool TEST_FAKE_CheckMultipleCalls(
FAKE_STATE_s *pFakeState);
140 extern void TEST_FAKE_SetFirstMeasurementCycleFinished(
FAKE_STATE_s *pFakeState);
142 extern void TEST_FAKE_SetState(
Database configuration header.
struct FAKE_DATABASE_ENTRIES FAKE_DATABASE_ENTRIES_s
enum FAKE_FSM_STATES FAKE_FSM_STATES_e
STD_RETURN_TYPE_e FAKE_Initialize(void)
initialize driver
STD_RETURN_TYPE_e FAKE_TriggerAfe(FAKE_STATE_s *pFakeState)
Trigger function for the driver, called to advance the state machine.
struct FAKE_STATE FAKE_STATE_s
@ FAKE_FSM_SUBSTATE_DUMMY
@ FAKE_FSM_SUBSTATE_INITIALIZATION_FINISH_FIRST_MEASUREMENT
@ FAKE_FSM_SUBSTATE_INITIALIZATION_FIRST_MEASUREMENT_FINISHED
@ FAKE_FSM_SUBSTATE_RUNNING_SAVE_TEMPERATURE_MEASUREMENT_DATA
@ FAKE_FSM_SUBSTATE_INITIALIZATION_EXIT
@ FAKE_FSM_SUBSTATE_RUNNING_SAVE_VOLTAGE_MEASUREMENT_DATA
@ FAKE_FSM_SUBSTATE_ENTRY
enum FAKE_FSM_SUBSTATES FAKE_FSM_SUBSTATES_e
@ FAKE_FSM_STATE_HAS_NEVER_RUN
@ FAKE_FSM_STATE_UNINITIALIZED
@ FAKE_FSM_STATE_INITIALIZATION
bool FAKE_IsFirstMeasurementCycleFinished(FAKE_STATE_s *pFakeState)
return whether the first measurement cycle is finished
enum STD_RETURN_TYPE STD_RETURN_TYPE_e
General macros and definitions for the whole platform.
DATA_BLOCK_BALANCING_FEEDBACK_s * balancingFeedback
DATA_BLOCK_OPEN_WIRE_s * openWire
DATA_BLOCK_ALL_GPIO_VOLTAGES_s * allGpioVoltages
DATA_BLOCK_CELL_VOLTAGE_s * cellVoltage
DATA_BLOCK_BALANCING_CONTROL_s * balancingControl
DATA_BLOCK_CELL_TEMPERATURE_s * cellTemperature
DATA_BLOCK_SLAVE_CONTROL_s * slaveControl
bool firstMeasurementFinished
FAKE_FSM_STATES_e nextState
FAKE_FSM_SUBSTATES_e nextSubstate
FAKE_FSM_STATES_e previousState
FAKE_DATABASE_ENTRIES_s data
FAKE_FSM_SUBSTATES_e previousSubstate
FAKE_FSM_STATES_e currentState
FAKE_FSM_SUBSTATES_e currentSubstate