|
foxBMS-UnitTests
1.0.0
The foxBMS Unit Tests API Documentation
|
Go to the documentation of this file.
54 #ifndef FOXBMS__DEBUG_DEFAULT_H_
55 #define FOXBMS__DEBUG_DEFAULT_H_
137 #ifdef UNITY_UNIT_TEST
DATA_BLOCK_CELL_TEMPERATURE_s * cellTemperature
FAKE_FSM_STATES_e nextState
bool TEST_FAKE_CheckMultipleCalls(FAKE_STATE_s *pFakeState)
FAKE_FSM_SUBSTATES_e nextSubstate
DATA_BLOCK_CELL_VOLTAGE_s * cellVoltage
DATA_BLOCK_BALANCING_FEEDBACK_s * balancingFeedback
DATA_BLOCK_ALL_GPIO_VOLTAGES_s * allGpioVoltages
FAKE_FSM_STATES_e previousState
void TEST_FAKE_SetFirstMeasurementCycleFinished(FAKE_STATE_s *pFakeState)
enum STD_RETURN_TYPE STD_RETURN_TYPE_e
enum FAKE_FSM_SUBSTATES FAKE_FSM_SUBSTATES_e
DATA_BLOCK_BALANCING_CONTROL_s * balancingControl
@ FAKE_FSM_SUBSTATE_INITIALIZATION_FINISH_FIRST_MEASUREMENT
STD_RETURN_TYPE_e TEST_FAKE_SaveFakeVoltageMeasurementData(FAKE_STATE_s *pFakeState)
@ FAKE_FSM_SUBSTATE_INITIALIZATION_EXIT
enum FAKE_FSM_STATES FAKE_FSM_STATES_e
@ FAKE_FSM_SUBSTATE_RUNNING_SAVE_VOLTAGE_MEASUREMENT_DATA
struct FAKE_DATABASE_ENTRIES FAKE_DATABASE_ENTRIES_s
FAKE_FSM_SUBSTATES_e previousSubstate
@ FAKE_FSM_SUBSTATE_DUMMY
@ FAKE_FSM_SUBSTATE_ENTRY
struct FAKE_STATE FAKE_STATE_s
@ FAKE_FSM_STATE_UNINITIALIZED
STD_RETURN_TYPE_e FAKE_TriggerMeasurementIc(FAKE_STATE_s *pFakeState)
Trigger function for the driver, called to advance the state machine.
STD_RETURN_TYPE_e TEST_FAKE_SaveFakeTemperatureMeasurementData(FAKE_STATE_s *pFakeState)
@ FAKE_FSM_STATE_HAS_NEVER_RUN
DATA_BLOCK_OPEN_WIRE_s * openWire
@ FAKE_FSM_SUBSTATE_RUNNING_SAVE_TEMPERATURE_MEASUREMENT_DATA
bool firstMeasurementFinished
bool FAKE_IsFirstMeasurementCycleFinished(FAKE_STATE_s *pFakeState)
return whether the first measurement cycle is finished
STD_RETURN_TYPE_e FAKE_Initialize(void)
initialize driver
@ FAKE_FSM_STATE_INITIALIZATION
DATA_BLOCK_SLAVE_CONTROL_s * slaveControl
@ FAKE_FSM_SUBSTATE_INITIALIZATION_FIRST_MEASUREMENT_FINISHED
FAKE_FSM_STATES_e currentState
FAKE_DATABASE_ENTRIES_s data
void TEST_FAKE_SetState(FAKE_STATE_s *pFakeState, FAKE_FSM_STATES_e nextState, FAKE_FSM_SUBSTATES_e nextSubstate, uint16_t idleTime)
FAKE_FSM_SUBSTATES_e currentSubstate
Database configuration header.