57 #include "Mockdatabase.h"
120 OS_EnterTaskCritical_Expect();
121 OS_ExitTaskCritical_Expect();
122 uint8_t returnValue = 0;
124 TEST_ASSERT_EQUAL(returnValue, 0);
125 OS_EnterTaskCritical_Expect();
126 OS_ExitTaskCritical_Expect();
128 TEST_ASSERT_EQUAL(returnValue, 0xFF);
132 OS_EnterTaskCritical_Expect();
133 OS_ExitTaskCritical_Expect();
145 TEST_ASSERT_EQUAL(returnValue,
BAL_OK);
152 TEST_ASSERT_EQUAL(returnValue,
BAL_OK);
159 TEST_ASSERT_EQUAL(returnValue,
BAL_OK);
164 TEST_ASSERT_EQUAL(returnValue,
BAL_OK);
169 TEST_ASSERT_EQUAL(returnValue,
BAL_OK);
175 TEST_ASSERT_EQUAL(returnValue,
BAL_OK);
void BAL_SaveLastStates(BAL_STATE_s *pBalancingState)
Saves the last state and the last substate.
void BAL_ProcessStateInitialization(BAL_STATE_s *currentState)
State machine subfunction to initialize the balancing state machine.
void BAL_ProcessStateUninitalized(BAL_STATE_s *pCurrentState, BAL_STATE_REQUEST_e stateRequest)
Substate handling function for BAL_Trigger()
BAL_STATE_REQUEST_e BAL_TransferStateRequest(BAL_STATE_s *currentState)
transfers the current state request to the state machine.
void BAL_ProcessStateInitialized(BAL_STATE_s *currentState)
State machine subfunction to transfer from an initalized state to "running" states of th state machin...
uint8_t BAL_CheckReEntrance(BAL_STATE_s *currentState)
re-entrance check of BAL state machine trigger function
BAL_RETURN_TYPE_e BAL_CheckStateRequest(BAL_STATE_s *pCurrentState, BAL_STATE_REQUEST_e stateRequest)
checks the state requests that are made.
Header for the driver for balancing.
@ BAL_ALREADY_INITIALIZED
@ BAL_STATE_GLOBAL_ENABLE_REQUEST
@ BAL_STATE_ERROR_REQUEST
@ BAL_STATE_ALLOWBALANCING_REQUEST
@ BAL_STATE_NO_BALANCING_REQUEST
@ BAL_STATE_GLOBAL_DISABLE_REQUEST
@ BAL_STATEMACH_UNINITIALIZED
@ BAL_STATEMACH_INITIALIZATION
@ BAL_STATEMACH_INITIALIZED
@ BAL_STATEMACH_CHECK_BALANCING
#define BAL_STATEMACH_SHORTTIME_100ms
Database configuration header.
uint32_t errorRequestCounter
int32_t balancingThreshold
BAL_STATE_REQUEST_e stateRequest
STD_RETURN_TYPE_e initializationFinished
BAL_STATEMACH_e lastState
bool balancingGlobalAllowed
BAL_STATEMACH_SUB_e substate
void testFiniteStateMachineCheckStateRequestFunction6(void)
void testProcessStateInitialized(void)
void testProcessStateUninitalized1(void)
void testProcessStateUninitalized2(void)
void testStateChanged(void)
void testFiniteStateMachineCheckStateRequestFunction3(void)
void testFiniteStateMachineCheckStateRequestFunction4(void)
void testFiniteStateMachineCheckStateRequestFunction7(void)
void testProcessStateInitialization(void)
void testFiniteStateMachineCheckStateRequestFunction5(void)
void testFiniteStateMachineCheckStateRequestFunction0(void)
void testProcessStateUninitalized0(void)
void testSubstateChanged(void)
void testNoStateChanged(void)
void testFiniteStateMachineTransferStateRequestFunction(void)
void testFiniteStateMachineCheckStateRequestFunction1(void)
void testFiniteStateMachineCheckReEntranceFunction(void)
void testFiniteStateMachineCheckStateRequestFunction2(void)