|
foxBMS-UnitTests
1.0.0
The foxBMS Unit Tests API Documentation
|
Go to the documentation of this file.
54 #ifndef FOXBMS__INTERLOCK_H_
55 #define FOXBMS__INTERLOCK_H_
180 #ifdef UNITY_UNIT_TEST
STD_RETURN_TYPE_e ILCK_Init(void)
Checks the configuration of the interlock-module.
enum STD_RETURN_TYPE STD_RETURN_TYPE_e
uint32_t ErrRequestCounter
ILCK_STATEMACH_SUB_e substate
@ ILCK_STATEMACH_UNINITIALIZED
@ ILCK_STATE_ERROR_REQUEST
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_INIT_REQUEST
void ILCK_Trigger(void)
trigger function for the ILCK driver state machine.
ILCK_STATEMACH_e ILCK_GetState(void)
gets the current state.
ILCK_RETURN_TYPE_e ILCK_SetStateRequest(ILCK_STATE_REQUEST_e statereq)
sets the current state request of the state variable ilck_state.
ILCK_STATE_REQUEST_e statereq
@ ILCK_STATEMACH_UNDEFINED
ILCK_STATEMACH_e laststate
void TEST_ILCK_SetStateStruct(ILCK_STATE_s state)
@ ILCK_STATEMACH_WAIT_FIRST_REQUEST
enum ILCK_ELECTRICAL_STATE_TYPE ILCK_ELECTRICAL_STATE_TYPE_e
Header for the configuration for the driver for the interlock.
ILCK_STATEMACH_SUB_e lastsubstate
@ ILCK_STATEMACH_INITIALIZED
@ ILCK_STATE_CLOSE_REQUEST
@ ILCK_STATE_OPEN_REQUEST
@ ILCK_STATEMACH_INITIALIZATION
@ ILCK_ALREADY_INITIALIZED