68 #pragma WEAK(BAL_SaveLastStates)
81 #pragma WEAK(BAL_CheckReEntrance)
96 #pragma WEAK(BAL_TransferStateRequest)
108 #pragma WEAK(BAL_CheckStateRequest)
142 #pragma WEAK(BAL_Init)
150 #pragma WEAK(BAL_ProcessStateUninitalized)
163 #pragma WEAK(BAL_ProcessStateInitialization)
170 #pragma WEAK(BAL_ProcessStateInitialized)
STD_RETURN_TYPE_e BAL_Init(DATA_BLOCK_BALANCING_CONTROL_s *pControl)
Generic initialization function for the balancing module.
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_STATEMACH_UNINITIALIZED
@ BAL_STATEMACH_INITIALIZATION
@ BAL_STATEMACH_INITIALIZED
@ BAL_STATEMACH_CHECK_BALANCING
enum BAL_STATE_REQUEST BAL_STATE_REQUEST_e
@ 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
enum BAL_RETURN_TYPE BAL_RETURN_TYPE_e
#define BAL_STATEMACH_SHORTTIME_100ms
#define DATA_READ_DATA(...)
#define DATA_WRITE_DATA(...)
enum STD_RETURN_TYPE STD_RETURN_TYPE_e
void OS_ExitTaskCritical(void)
Exit Critical interface function for use in FreeRTOS-Tasks and FreeRTOS-ISR.
void OS_EnterTaskCritical(void)
Enter Critical interface function for use in FreeRTOS-Tasks and FreeRTOS-ISR.
BAL_STATEMACH_SUB_e substate
bool balancingGlobalAllowed
BAL_STATE_REQUEST_e stateRequest
uint32_t errorRequestCounter
STD_RETURN_TYPE_e initializationFinished
BAL_STATEMACH_e lastState