54 #ifndef FOXBMS__INTERLOCK_CFG_H_
55 #define FOXBMS__INTERLOCK_CFG_H_
65 #define ILCK_IO_REG_DIR (hetREG1->DIR)
67 #define ILCK_IO_REG_PORT (hetREG1)
70 #define ILCK_INTERLOCK_CONTROL_PIN_IL_HS_ENABLE (30u)
73 #define ILCK_INTERLOCK_FEEDBACK_PIN_IL_STATE (29u)
77 #define ILCK_ADC_INPUT_HIGH_SIDE_VOLTAGE_SENSE (2u)
79 #define ILCK_ADC_INPUT_LOW_SIDE_VOLTAGE_SENSE (3u)
81 #define ILCK_ADC_INPUT_HIGH_SIDE_CURRENT_SENSE (4u)
83 #define ILCK_ADC_INPUT_LOW_SIDE_CURRENT_SENSE (5u)
87 #define ILCK_VOLTAGE_DIVIDER_FACTOR ((5.6f + 3.9f) / 3.9f)
95 #define ILCK_FACTOR_IL_HS_CS_1_ohm (80.0f / 2049.0f)
99 #define ILCK_FACTOR_IL_LS_CS_1_ohm (0.025f)
105 #define ILCK_STATEMACH_SHORTTIME (1u)
General macros and definitions for the whole platform.
ILCK_ELECTRICAL_STATE_TYPE
enum ILCK_ELECTRICAL_STATE_TYPE ILCK_ELECTRICAL_STATE_TYPE_e