54 #ifndef FOXBMS__INTERLOCK_H_
55 #define FOXBMS__INTERLOCK_H_
180 #ifdef UNITY_UNIT_TEST
181 extern void TEST_ILCK_SetStateStruct(
ILCK_STATE_s state);
enum STD_RETURN_TYPE STD_RETURN_TYPE_e
@ ILCK_STATEMACH_UNINITIALIZED
@ ILCK_STATEMACH_INITIALIZED
@ ILCK_STATEMACH_WAIT_FIRST_REQUEST
@ ILCK_STATEMACH_INITIALIZATION
@ ILCK_STATEMACH_UNDEFINED
STD_RETURN_TYPE_e ILCK_Init(void)
Checks the configuration of the interlock-module.
@ ILCK_ALREADY_INITIALIZED
ILCK_RETURN_TYPE_e ILCK_SetStateRequest(ILCK_STATE_REQUEST_e statereq)
sets the current state request of the state variable ilck_state.
void ILCK_Trigger(void)
trigger function for the ILCK driver state machine.
ILCK_ELECTRICAL_STATE_TYPE_e ILCK_GetInterlockFeedback(void)
Reads the feedback pin of the interlock and returns its current value (ILCK_SWITCH_OFF/ILCK_SWITCH_ON...
@ ILCK_STATE_OPEN_REQUEST
@ ILCK_STATE_INIT_REQUEST
@ ILCK_STATE_ERROR_REQUEST
@ ILCK_STATE_CLOSE_REQUEST
ILCK_STATEMACH_e ILCK_GetState(void)
gets the current state.
Header for the configuration for the driver for the interlock.
enum ILCK_ELECTRICAL_STATE_TYPE ILCK_ELECTRICAL_STATE_TYPE_e
uint32_t ErrRequestCounter
ILCK_STATE_REQUEST_e statereq
ILCK_STATEMACH_SUB_e lastsubstate
ILCK_STATEMACH_e laststate
ILCK_STATEMACH_SUB_e substate