rusEFI
The most advanced open source ECU
Enumerations | Functions | Variables
engine_types.h File Reference

Enumerations

enum class  engine_type_e : uint16_t {
  DEFAULT_FRANKENSO = 0 , MIATA_PROTEUS_TCU = 1 , DODGE_NEON_1995 = 2 , FORD_ASPIRE_1996 = 3 ,
  MRE_SECONDARY_CAN = 4 , NISSAN_PRIMERA = 5 , HARLEY = 6 , FORD_INLINE_6_1995 = 7 ,
  GY6_139QMB = 8 , POLARIS_RZR = 9 , MAZDA_MIATA_NA96 = 10 , FORD_COYOTE = 11 ,
  MITSUBISHI_3A92 = 12 , TOYOTA_1NZ_FE = 13 , FORD_ESCORT_GT = 14 , FUEL_BENCH = 15 ,
  MITSUBISHI_4G93 = 16 , TCU_4R70W = 17 , TEST_33816 = 18 , TEST_ROTARY = 19 ,
  FRANKENSO_MIATA_NA6_MAP = 41 , MAZDA_MIATA_NC = 20 , ET_BOSCH_QUICK_START = 21 , BMW_M52 = 22 ,
  MRE_BODY_CONTROL = 23 , ET_TEST_WITH_BOSCH_QUICK_START = 24 , PROTEUS_LUA_DEMO = 25 , TEST_ENGINE = 26 ,
  PROTEUS_GM_LS_4 = 27 , TEST_CRANK_ENGINE = 28 , SACHS = 29 , PROTEUS_ANALOG_PWM_TEST = 30 ,
  MRE_BOARD_NEW_TEST = 31 , VW_ABA = 32 , ME17_9_MISC = 33 , MAZDA_MIATA_NA6 = 34 ,
  ET_UNUSED_35 = 35 , HELLEN_128_MERCEDES_4_CYL = 36 , MRE_SUBARU_EJ18 = 37 , DISCOVERY_PDM = 38 ,
  PROTEUS_VW_B6 = 39 , FRANKENSO_BMW_M73_F = 40 , PROTEUS_QC_TEST_BOARD = 42 , HONDA_600 = 43 ,
  TOYOTA_2JZ_GTE_VVTi = 44 , TEST_ENGINE_VVT = 45 , DODGE_NEON_2003_CRANK = 46 , UNUSED47 = 47 ,
  TEST_DC_WASTEGATE_DISCOVERY = 48 , FRANKENSO_QA_ENGINE = 49 , BMW_M73_MRE = 50 , BMW_M73_MRE_SLAVE = 51 ,
  TEST_ISSUE_366_BOTH = 52 , TEST_ISSUE_366_RISE = 53 , MAVERICK_X3 = 54 , ET_UNUSED_55 = 55 ,
  FRANKENSO_TEST_TLE9104 = 56 , HELLEN_HONDA_BCM = 57 , ETB_BENCH_ENGINE = 58 , FRANKENSO_TEST_33810 = 59 ,
  L9779_BENCH_ENGINE = 60 , EEPROM_BENCH_ENGINE = 61 , MRE_VW_B6 = 62 , PROTEUS_BMW_M73 = 63 ,
  DODGE_RAM = 64 , UNUSED_65 = 65 , HONDA_OBD1 = 66 , UNUSED67 = 67 ,
  MERCEDES_M111 = 68 , MAZDA_MIATA_NB2 = 69 , SUBARU_EG33 = 70 , HELLEN_121_VAG_4_CYL = 71 ,
  HELLEN_121_NISSAN_6_CYL = 72 , PROTEUS_STIM_QC = 73 , HELLEN_4CHAN_STIM_QC = 74 , HELLEN_2CHAN_STIM_QC = 75 ,
  HELLEN_154_VAG = 76 , HELLEN_121_VAG_5_CYL = 77 , HELLEN_121_VAG_V6_CYL = 78 , HELLEN_121_VAG_VR6_CYL = 79 ,
  HELLEN_121_VAG_8_CYL = 81 , MAZDA_MIATA_NA94 = 80 , HELLEN_154_HYUNDAI_COUPE_BK1 = 82 , MAZDA_MIATA_NB1 = 83 ,
  HELLEN_121_NISSAN_4_CYL = 84 , HELLEN_121_NISSAN_8_CYL = 85 , MAZDA_MIATA_NB2_36 = 86 , HELLEN_121_NISSAN_ALMERA_N16 = 87 ,
  HELLEN_128_MERCEDES_6_CYL = 88 , HELLEN_128_MERCEDES_8_CYL = 89 , HONDA_K = 90 , HONDA_OBD2A = 91 ,
  SIMULATOR_CONFIG = 92 , TEST_ISSUE_6451 = 93 , UNUSED94 = 94 , HELLEN_154_HYUNDAI_COUPE_BK2 = 95 ,
  WASTEGATE_PROTEUS_TEST = 96 , UNUSED_97 = 97 , GM_SBC = 98 , MINIMAL_PINS = 99 ,
  TEST_100 = 100 , TEST_101 = 101 , UNUSED102 = 102 , PROTEUS_NISSAN_VQ35 = 103 ,
  HYUNDAI_PB = 104 , FERRARI_F136 = 105
}
 
enum class  trigger_type_e : uint32_t {
  TT_TOOTHED_WHEEL = 0 , TT_FORD_ASPIRE = 1 , TT_DODGE_NEON_1995 = 2 , TT_MAZDA_MIATA_NA = 3 ,
  TT_VVT_FORD_COYOTE = 4 , TT_GM_7X = 5 , TT_DAIHATSU_3_CYL = 6 , TT_MAZDA_SOHC_4 = 7 ,
  TT_TOOTHED_WHEEL_60_2 = 8 , TT_TOOTHED_WHEEL_36_1 = 9 , TT_MERCEDES_2_SEGMENT = 10 , TT_NARROW_SINGLE_TOOTH = 11 ,
  TT_SUBARU_EZ30 = 12 , TT_VVT_MAZDA_SKYACTIV = 13 , TT_DODGE_NEON_2003_CAM = 14 , TT_MAZDA_DOHC_1_4 = 15 ,
  TT_ONE_PLUS_ONE = 16 , TT_VVT_TOYOTA_3_TOOTH = 17 , TT_HALF_MOON = 18 , TT_DODGE_RAM = 19 ,
  TT_60_2_WRONG_POLARITY = 20 , TT_BENELLI_TRE = 21 , TT_DODGE_STRATUS = 22 , TT_36_2_2_2 = 23 ,
  TT_NISSAN_SR20VE = 24 , TT_2JZ_3_34_SIMULATION_ONLY = 25 , TT_ROVER_K = 26 , TT_GM_24x_5 = 27 ,
  TT_HONDA_CBR_600 = 28 , TT_MITSU_4G9x_CAM = 29 , TT_CHRYSLER_NGC_36_2_2 = 30 , TT_3_1_CAM = 31 ,
  TT_DODGE_NEON_2003_CRANK = 32 , TT_MIATA_VVT = 33 , TT_MITSU_4G63_CAM = 34 , TT_MAZDA_MIATA_VVT_TEST = 35 ,
  TT_SUBARU_7_6 = 36 , TT_JEEP_18_2_2_2 = 37 , TT_12_TOOTH_CRANK = 38 , TT_DODGE_NEON_1995_ONLY_CRANK = 39 ,
  TT_JEEP_4_CYL = 40 , TT_FIAT_IAW_P8 = 41 , TT_FORD_ST170 = 42 , TT_VVT_MIATA_NB = 43 ,
  TT_RENIX_44_2_2 = 44 , TT_RENIX_66_2_2_2 = 45 , TT_HONDA_K_CRANK_12_1 = 46 , TT_VVT_BOSCH_QUICK_START = 47 ,
  TT_TOOTHED_WHEEL_36_2 = 48 , TT_SUBARU_SVX = 49 , TT_SUZUKI_K6A = 50 , TT_SUBARU_7_WITHOUT_6 = 51 ,
  TT_NISSAN_MR18_CAM_VVT = 52 , TT_TRI_TACH = 53 , TT_GM_60_2_2_2 = 54 , TT_SKODA_FAVORIT = 55 ,
  TT_VVT_BARRA_3_PLUS_1 = 56 , TT_KAWA_KX450F = 57 , TT_NISSAN_VQ35 = 58 , TT_VVT_NISSAN_VQ35 = 59 ,
  TT_NISSAN_VQ30 = 60 , TT_NISSAN_QR25 = 61 , TT_VVT_MITSUBISHI_3A92 = 62 , TT_SUBARU_SVX_CRANK_1 = 63 ,
  TT_SUBARU_SVX_CAM_VVT = 64 , TT_FORD_TFI_PIP = 65 , TT_SUZUKI_G13B = 66 , TT_HONDA_K_CAM_4_1 = 67 ,
  TT_NISSAN_MR18_CRANK = 68 , TT_TOOTHED_WHEEL_32_2 = 69 , TT_36_2_1 = 70 , TT_36_2_1_1 = 71 ,
  TT_3_TOOTH_CRANK = 72 , TT_VVT_TOYOTA_4_1 = 73 , TT_GM_24x_3 = 74 , TT_60_2_2_F3R = 75 ,
  TT_MITSU_4G63_CRANK = 76 , TT_60DEG_TOOTH = 77 , TT_VVT_MITSUBISHI_4G69 = 78 , TT_VVT_MITSU_6G72 = 79 ,
  TT_6_TOOTH_CRANK = 80 , TT_DAIHATSU_4_CYL = 81 , TT_VVT_MAZDA_L = 82 , TT_UNUSED = 83
}
 
enum  ts_14_command {
  TS_14_0 = 0 , TS_14_1 = 1 , TS_GRAB_TPS_CLOSED = 2 , TS_GRAB_TPS_WOT = 3 ,
  TS_14_4 = 4 , TS_14_5 = 5 , TS_GRAB_PEDAL_UP = 6 , TS_GRAB_PEDAL_WOT = 7 ,
  TS_RESET_TLE8888 = 8 , TS_14_9 = 9 , TS_WRITE_FLASH = 0x0A , TS_ETB_RESET = 0x0B ,
  TS_ETB_START_AUTOTUNE = 0x0C , TS_TRIGGER_STIMULATOR_ENABLE = 0x0D , TS_ETB_AUTOCAL_0 = 0x0E , TS_TRIGGER_STIMULATOR_DISABLE = 0x0F ,
  TS_ETB_STOP_AUTOTUNE = 0x10 , TS_ETB_AUTOCAL_1 = 0x11 , TS_WIDEBAND_UPDATE = 0x12 , TS_EXTERNAL_TRIGGER_STIMULATOR_ENABLE = 0x13 ,
  TS_RESET_MC33810 = 0x14 , TS_BURN_WITHOUT_FLASH = 0x15
}
 
enum  ts_command_e {
  TS_DEBUG_MODE = 0 , TS_COMMAND_1 = 1 , TS_COMMAND_2 = 2 , TS_COMMAND_3 = 3 ,
  TS_COMMAND_4 = 4 , TS_COMMAND_5 = 5 , TS_COMMAND_6 = 6 , TS_COMMAND_7 = 7 ,
  TS_COMMAND_8 = 8 , TS_COMMAND_9 = 9 , TS_COMMAND_10 = 10 , TS_COMMAND_11 = 11 ,
  TS_COMMAND_12 = 12 , TS_COMMAND_13 = 13 , TS_COMMAND_14 = 14 , TS_COMMAND_15 = 15 ,
  TS_COMMAND_16 = 16 , TS_CLEAR_WARNINGS = 17 , TS_IGNITION_CATEGORY = 18 , TS_INJECTOR_CATEGORY = 19 ,
  TS_X14 = 20 , TS_WIDEBAND = 21 , TS_BENCH_CATEGORY = 22 , TS_UNUSED_23 = 23 ,
  TS_UNUSED_24 = 24 , TS_SOLENOID_CATEGORY = 25 , TS_UNUSED_26 = 26 , TS_UNUSED_27 = 27 ,
  TS_UNUSED_28 = 28 , TS_UNUSED_29 = 29 , TS_SET_ENGINE_TYPE = 30 , TS_SET_DEFAULT_ENGINE = 31 ,
  TS_LUA_OUTPUT_CATEGORY = 32
}
 
enum  bench_mode_e {
  BENCH_MAIN_RELAY , BENCH_FUEL_PUMP , BENCH_STARTER_ENABLE_RELAY , BENCH_STARTER_DISABLE_RELAY ,
  BENCH_FAN_RELAY , BENCH_FAN_RELAY_2 , BENCH_AC_COMPRESSOR_RELAY , BENCH_CHECK_ENGINE_LIGHT ,
  BENCH_IDLE_VALVE , BENCH_HPFP_VALVE , BENCH_GPPWM1_VALVE , BENCH_GPPWM2_VALVE ,
  BENCH_GPPWM3_VALVE , BENCH_GPPWM4_VALVE , BENCH_SECOND_IDLE_VALVE , BENCH_CANCEL ,
  BENCH_VVT0_VALVE , BENCH_VVT1_VALVE , BENCH_VVT2_VALVE , BENCH_VVT3_VALVE ,
  BENCH_AUXOUT0 , BENCH_AUXOUT1 , BENCH_AUXOUT2 , BENCH_AUXOUT3 ,
  BENCH_AUXOUT4 , BENCH_AUXOUT5 , BENCH_AUXOUT6 , BENCH_AUXOUT7 ,
  HD_ACR , HD_ACR2
}
 

Functions

enum __attribute__ ((__packed__))
 

Variables

 debug_mode_e
 

Enumeration Type Documentation

◆ bench_mode_e

Enumerator
BENCH_MAIN_RELAY 
BENCH_FUEL_PUMP 
BENCH_STARTER_ENABLE_RELAY 
BENCH_STARTER_DISABLE_RELAY 
BENCH_FAN_RELAY 
BENCH_FAN_RELAY_2 
BENCH_AC_COMPRESSOR_RELAY 
BENCH_CHECK_ENGINE_LIGHT 
BENCH_IDLE_VALVE 
BENCH_HPFP_VALVE 
BENCH_GPPWM1_VALVE 
BENCH_GPPWM2_VALVE 
BENCH_GPPWM3_VALVE 
BENCH_GPPWM4_VALVE 
BENCH_SECOND_IDLE_VALVE 
BENCH_CANCEL 
BENCH_VVT0_VALVE 
BENCH_VVT1_VALVE 
BENCH_VVT2_VALVE 
BENCH_VVT3_VALVE 
BENCH_AUXOUT0 
BENCH_AUXOUT1 
BENCH_AUXOUT2 
BENCH_AUXOUT3 
BENCH_AUXOUT4 
BENCH_AUXOUT5 
BENCH_AUXOUT6 
BENCH_AUXOUT7 
HD_ACR 
HD_ACR2 

Definition at line 492 of file engine_types.h.

492  {
493  BENCH_MAIN_RELAY, // 0
498  BENCH_FAN_RELAY_2, // 5
501  BENCH_IDLE_VALVE, // 8
508  BENCH_CANCEL,
509  BENCH_VVT0_VALVE, // 16
521  HD_ACR,
522  HD_ACR2,
523 } bench_mode_e;
bench_mode_e
Definition: engine_types.h:492
@ BENCH_AC_COMPRESSOR_RELAY
Definition: engine_types.h:499
@ BENCH_FAN_RELAY
Definition: engine_types.h:497
@ BENCH_CANCEL
Definition: engine_types.h:508
@ BENCH_GPPWM3_VALVE
Definition: engine_types.h:505
@ BENCH_VVT0_VALVE
Definition: engine_types.h:509
@ BENCH_AUXOUT4
Definition: engine_types.h:517
@ BENCH_AUXOUT2
Definition: engine_types.h:515
@ BENCH_MAIN_RELAY
Definition: engine_types.h:493
@ BENCH_AUXOUT7
Definition: engine_types.h:520
@ HD_ACR2
Definition: engine_types.h:522
@ BENCH_IDLE_VALVE
Definition: engine_types.h:501
@ HD_ACR
Definition: engine_types.h:521
@ BENCH_AUXOUT3
Definition: engine_types.h:516
@ BENCH_GPPWM4_VALVE
Definition: engine_types.h:506
@ BENCH_CHECK_ENGINE_LIGHT
Definition: engine_types.h:500
@ BENCH_VVT3_VALVE
Definition: engine_types.h:512
@ BENCH_GPPWM2_VALVE
Definition: engine_types.h:504
@ BENCH_AUXOUT5
Definition: engine_types.h:518
@ BENCH_AUXOUT1
Definition: engine_types.h:514
@ BENCH_VVT1_VALVE
Definition: engine_types.h:510
@ BENCH_STARTER_DISABLE_RELAY
Definition: engine_types.h:496
@ BENCH_AUXOUT0
Definition: engine_types.h:513
@ BENCH_FAN_RELAY_2
Definition: engine_types.h:498
@ BENCH_GPPWM1_VALVE
Definition: engine_types.h:503
@ BENCH_HPFP_VALVE
Definition: engine_types.h:502
@ BENCH_FUEL_PUMP
Definition: engine_types.h:494
@ BENCH_AUXOUT6
Definition: engine_types.h:519
@ BENCH_SECOND_IDLE_VALVE
Definition: engine_types.h:507
@ BENCH_STARTER_ENABLE_RELAY
Definition: engine_types.h:495
@ BENCH_VVT2_VALVE
Definition: engine_types.h:511

◆ engine_type_e

enum engine_type_e : uint16_t
strong

https://github.com/rusefi/rusefi/wiki/Engine-Types

Enumerator
DEFAULT_FRANKENSO 
MIATA_PROTEUS_TCU 
DODGE_NEON_1995 

1995 Dodge Neon http://rusefi.com/forum/viewtopic.php?t=360

FORD_ASPIRE_1996 

1996 1.3 Ford Aspire http://rusefi.com/forum/viewtopic.php?t=375

MRE_SECONDARY_CAN 

See also PROTEUS_LUA_DEMO

NISSAN_PRIMERA 
HARLEY 
FORD_INLINE_6_1995 
GY6_139QMB 

one cylinder engine 139qmb 50-90cc http://rusefi.com/forum/viewtopic.php?f=3&t=332

POLARIS_RZR 
MAZDA_MIATA_NA96 
FORD_COYOTE 
MITSUBISHI_3A92 
TOYOTA_1NZ_FE 
FORD_ESCORT_GT 
FUEL_BENCH 
MITSUBISHI_4G93 
TCU_4R70W 
TEST_33816 
TEST_ROTARY 
FRANKENSO_MIATA_NA6_MAP 
MAZDA_MIATA_NC 
ET_BOSCH_QUICK_START 
BMW_M52 
MRE_BODY_CONTROL 

microRusEFI used as Body Control Module BCM BCU

ET_TEST_WITH_BOSCH_QUICK_START 
PROTEUS_LUA_DEMO 

See also MRE_SECONDARY_CAN

TEST_ENGINE 
PROTEUS_GM_LS_4 
TEST_CRANK_ENGINE 
SACHS 
PROTEUS_ANALOG_PWM_TEST 
MRE_BOARD_NEW_TEST 
VW_ABA 
ME17_9_MISC 
MAZDA_MIATA_NA6 
ET_UNUSED_35 
HELLEN_128_MERCEDES_4_CYL 
MRE_SUBARU_EJ18 
DISCOVERY_PDM 
PROTEUS_VW_B6 
FRANKENSO_BMW_M73_F 
PROTEUS_QC_TEST_BOARD 
HONDA_600 
TOYOTA_2JZ_GTE_VVTi 
TEST_ENGINE_VVT 
DODGE_NEON_2003_CRANK 
UNUSED47 
TEST_DC_WASTEGATE_DISCOVERY 
FRANKENSO_QA_ENGINE 
BMW_M73_MRE 
BMW_M73_MRE_SLAVE 
TEST_ISSUE_366_BOTH 
TEST_ISSUE_366_RISE 
MAVERICK_X3 
ET_UNUSED_55 
FRANKENSO_TEST_TLE9104 
HELLEN_HONDA_BCM 
ETB_BENCH_ENGINE 
FRANKENSO_TEST_33810 
L9779_BENCH_ENGINE 
EEPROM_BENCH_ENGINE 
MRE_VW_B6 
PROTEUS_BMW_M73 
DODGE_RAM 
UNUSED_65 
HONDA_OBD1 
UNUSED67 
MERCEDES_M111 
MAZDA_MIATA_NB2 
SUBARU_EG33 
HELLEN_121_VAG_4_CYL 
HELLEN_121_NISSAN_6_CYL 
PROTEUS_STIM_QC 
HELLEN_4CHAN_STIM_QC 
HELLEN_2CHAN_STIM_QC 
HELLEN_154_VAG 
HELLEN_121_VAG_5_CYL 
HELLEN_121_VAG_V6_CYL 
HELLEN_121_VAG_VR6_CYL 
HELLEN_121_VAG_8_CYL 
MAZDA_MIATA_NA94 
HELLEN_154_HYUNDAI_COUPE_BK1 
MAZDA_MIATA_NB1 
HELLEN_121_NISSAN_4_CYL 
HELLEN_121_NISSAN_8_CYL 
MAZDA_MIATA_NB2_36 
HELLEN_121_NISSAN_ALMERA_N16 
HELLEN_128_MERCEDES_6_CYL 
HELLEN_128_MERCEDES_8_CYL 
HONDA_K 
HONDA_OBD2A 
SIMULATOR_CONFIG 
TEST_ISSUE_6451 
UNUSED94 
HELLEN_154_HYUNDAI_COUPE_BK2 
WASTEGATE_PROTEUS_TEST 
UNUSED_97 
GM_SBC 
MINIMAL_PINS 

this configuration has as few pins configured as possible

TEST_100 
TEST_101 
UNUSED102 
PROTEUS_NISSAN_VQ35 
HYUNDAI_PB 
FERRARI_F136 

Definition at line 18 of file engine_types.h.

18  : uint16_t {
20 
22 
23  /**
24  * 1995 Dodge Neon
25  * http://rusefi.com/forum/viewtopic.php?t=360
26  */
27  DODGE_NEON_1995 = 2,
28  /**
29  * 1996 1.3 Ford Aspire
30  * http://rusefi.com/forum/viewtopic.php?t=375
31  */
32  FORD_ASPIRE_1996 = 3,
33  /**
34  * See also PROTEUS_LUA_DEMO
35  */
37 
38  NISSAN_PRIMERA = 5,
39  HARLEY = 6,
41  /**
42  * one cylinder engine
43  * 139qmb 50-90cc
44  * http://rusefi.com/forum/viewtopic.php?f=3&t=332
45  */
46  GY6_139QMB = 8,
47 
48  POLARIS_RZR = 9,
49  MAZDA_MIATA_NA96 = 10,
50  FORD_COYOTE = 11,
51  MITSUBISHI_3A92 = 12,
52  TOYOTA_1NZ_FE = 13,
53 
54  FORD_ESCORT_GT = 14,
55  FUEL_BENCH = 15,
56  MITSUBISHI_4G93 = 16,
57  TCU_4R70W = 17,
58 
59  TEST_33816 = 18,
60 
61  TEST_ROTARY = 19,
62  // Frankenso board
64  MAZDA_MIATA_NC = 20,
66 
67  // BMW e36 etc
68  BMW_M52 = 22,
69 
70  /**
71  * microRusEFI used as Body Control Module BCM BCU
72  */
73  MRE_BODY_CONTROL = 23,
75 
76  /**
77  * See also MRE_SECONDARY_CAN
78  */
79  PROTEUS_LUA_DEMO = 25,
80 
81  TEST_ENGINE = 26,
82 
83  PROTEUS_GM_LS_4 = 27,
84 
85  TEST_CRANK_ENGINE = 28,
86 
87  // two stroke
88  SACHS = 29,
89 
91 
92  MRE_BOARD_NEW_TEST = 31,
93 
94  VW_ABA = 32,
95 
96  ME17_9_MISC = 33,
97 
98  MAZDA_MIATA_NA6 = 34,
99 
100  ET_UNUSED_35 = 35,
101 
103 
104  MRE_SUBARU_EJ18 = 37,
105 
106  DISCOVERY_PDM = 38,
107 
108  PROTEUS_VW_B6 = 39,
109 
110  // used by unit tests and HW CI
111  FRANKENSO_BMW_M73_F = 40,
112 
114 
115  HONDA_600 = 43,
116 
117  TOYOTA_2JZ_GTE_VVTi = 44,
118 
119  TEST_ENGINE_VVT = 45,
120 
122 
123  UNUSED47 = 47,
124 
125  // todo: add wastegate case into HW CI
127 
128  FRANKENSO_QA_ENGINE = 49,
129 
130  BMW_M73_MRE = 50,
131 
132  BMW_M73_MRE_SLAVE = 51,
133 
134 
135  TEST_ISSUE_366_BOTH = 52,
136  TEST_ISSUE_366_RISE = 53,
137  MAVERICK_X3 = 54,
138  ET_UNUSED_55 = 55,
140  HELLEN_HONDA_BCM = 57,
141  ETB_BENCH_ENGINE = 58,
143 
144  L9779_BENCH_ENGINE = 60,
145  EEPROM_BENCH_ENGINE = 61,
146  MRE_VW_B6 = 62,
147  PROTEUS_BMW_M73 = 63,
148  DODGE_RAM = 64,
149  UNUSED_65 = 65,
150  HONDA_OBD1 = 66,
151  UNUSED67 = 67,
152  MERCEDES_M111 = 68,
153 
154  MAZDA_MIATA_NB2 = 69,
155 
156  SUBARU_EG33 = 70,
157 
160  PROTEUS_STIM_QC = 73,
163  HELLEN_154_VAG = 76,
164 
169 
170  MAZDA_MIATA_NA94 = 80,
171 
172  // 82
174  MAZDA_MIATA_NB1 = 83,
175  // 84
177 
179 
180  MAZDA_MIATA_NB2_36 = 86,
181 
183 
185 
187 
188  HONDA_K = 90,
189 
190  HONDA_OBD2A = 91,
191 
192  SIMULATOR_CONFIG = 92,
193 
194  TEST_ISSUE_6451 = 93,
195 
196  UNUSED94 = 94,
197 
199 
201  UNUSED_97 = 97,
202  GM_SBC = 98,
203 
204  /**
205  * this configuration has as few pins configured as possible
206  */
207  MINIMAL_PINS = 99,
208 
209  // use this in case of emergency without github actions? :)
210  TEST_100 = 100,
211  TEST_101 = 101,
212  UNUSED102 = 102,
213 
214  PROTEUS_NISSAN_VQ35 = 103,
215 
216  // both Proteus and 4chan/8chan
217  HYUNDAI_PB = 104,
218  FERRARI_F136 = 105,
219 };
@ HELLEN_128_MERCEDES_8_CYL
@ ET_TEST_WITH_BOSCH_QUICK_START
@ TEST_DC_WASTEGATE_DISCOVERY
@ HELLEN_128_MERCEDES_6_CYL
@ HELLEN_154_HYUNDAI_COUPE_BK2
@ HELLEN_121_NISSAN_ALMERA_N16
@ HELLEN_128_MERCEDES_4_CYL
@ HELLEN_154_HYUNDAI_COUPE_BK1

◆ trigger_type_e

enum trigger_type_e : uint32_t
strong
See also
http://rusefi.com/wiki/index.php?title=Manual:Software:Trigger TriggerProcessor.java has this "trigger_type_e" name hard-coded!
Enumerator
TT_TOOTHED_WHEEL 
TT_FORD_ASPIRE 
TT_DODGE_NEON_1995 
TT_MAZDA_MIATA_NA 
TT_VVT_FORD_COYOTE 
TT_GM_7X 
TT_DAIHATSU_3_CYL 
TT_MAZDA_SOHC_4 
TT_TOOTHED_WHEEL_60_2 
TT_TOOTHED_WHEEL_36_1 
TT_MERCEDES_2_SEGMENT 
TT_NARROW_SINGLE_TOOTH 
TT_SUBARU_EZ30 
TT_VVT_MAZDA_SKYACTIV 
TT_DODGE_NEON_2003_CAM 
TT_MAZDA_DOHC_1_4 
TT_ONE_PLUS_ONE 
TT_VVT_TOYOTA_3_TOOTH 

VVT for 2JZ three evenly spaces teeth

TT_HALF_MOON 
TT_DODGE_RAM 
TT_60_2_WRONG_POLARITY 
TT_BENELLI_TRE 
TT_DODGE_STRATUS 
TT_36_2_2_2 
TT_NISSAN_SR20VE 
TT_2JZ_3_34_SIMULATION_ONLY 
TT_ROVER_K 
TT_GM_24x_5 
TT_HONDA_CBR_600 
TT_MITSU_4G9x_CAM 
TT_CHRYSLER_NGC_36_2_2 
TT_3_1_CAM 
TT_DODGE_NEON_2003_CRANK 
TT_MIATA_VVT 
TT_MITSU_4G63_CAM 
TT_MAZDA_MIATA_VVT_TEST 
TT_SUBARU_7_6 
TT_JEEP_18_2_2_2 
TT_12_TOOTH_CRANK 
TT_DODGE_NEON_1995_ONLY_CRANK 
TT_JEEP_4_CYL 
TT_FIAT_IAW_P8 
TT_FORD_ST170 
TT_VVT_MIATA_NB 
TT_RENIX_44_2_2 
TT_RENIX_66_2_2_2 
TT_HONDA_K_CRANK_12_1 
TT_VVT_BOSCH_QUICK_START 
TT_TOOTHED_WHEEL_36_2 
TT_SUBARU_SVX 
TT_SUZUKI_K6A 
TT_SUBARU_7_WITHOUT_6 
TT_NISSAN_MR18_CAM_VVT 
TT_TRI_TACH 
TT_GM_60_2_2_2 
TT_SKODA_FAVORIT 
TT_VVT_BARRA_3_PLUS_1 
TT_KAWA_KX450F 
TT_NISSAN_VQ35 
TT_VVT_NISSAN_VQ35 
TT_NISSAN_VQ30 
TT_NISSAN_QR25 
TT_VVT_MITSUBISHI_3A92 
TT_SUBARU_SVX_CRANK_1 
TT_SUBARU_SVX_CAM_VVT 
TT_FORD_TFI_PIP 
TT_SUZUKI_G13B 
TT_HONDA_K_CAM_4_1 
TT_NISSAN_MR18_CRANK 
TT_TOOTHED_WHEEL_32_2 
TT_36_2_1 
TT_36_2_1_1 
TT_3_TOOTH_CRANK 
TT_VVT_TOYOTA_4_1 
TT_GM_24x_3 
TT_60_2_2_F3R 
TT_MITSU_4G63_CRANK 
TT_60DEG_TOOTH 
TT_VVT_MITSUBISHI_4G69 
TT_VVT_MITSU_6G72 
TT_6_TOOTH_CRANK 
TT_DAIHATSU_4_CYL 
TT_VVT_MAZDA_L 
TT_UNUSED 

Definition at line 286 of file engine_types.h.

286  : uint32_t {
287 
288  TT_TOOTHED_WHEEL = 0,
289  TT_FORD_ASPIRE = 1,
290  TT_DODGE_NEON_1995 = 2,
291  // https://rusefi.com/wiki/index.php?title=Manual:Software:Trigger#Mazda_Miata_NA
292  TT_MAZDA_MIATA_NA = 3,
293  TT_VVT_FORD_COYOTE = 4,
294  TT_GM_7X = 5,
295  TT_DAIHATSU_3_CYL = 6,
296  TT_MAZDA_SOHC_4 = 7,
297  // "60/2"
298  // See also TT_ONE_PLUS_TOOTHED_WHEEL_60_2
302  // a single tooth on lazy Hall or VR. See also TT_HALF_MOON
304  TT_SUBARU_EZ30 = 12,
306  // cam-based
308  TT_MAZDA_DOHC_1_4 = 15,
309  // * "1+1" - one tooth on primary channel, one tooth on secondary channel
310  // * Note: this trigger is used only by unit tests
311  // * see also TT_HALF_MOON a bit below
312  TT_ONE_PLUS_ONE = 16,
313  /**
314  * VVT for 2JZ
315  * three evenly spaces teeth
316  */
318  // just one channel with one perfectly 180 degree tooth with proper reliable Hall sensor, see also TT_NARROW_SINGLE_TOOTH
319  TT_HALF_MOON = 18,
320 
321  TT_DODGE_RAM = 19,
322  // keeping for compatibility with M73 PnP harnesses which until 2023 were build with VR wires flipped
324  TT_BENELLI_TRE = 21,
325  TT_DODGE_STRATUS = 22,
326  // Subaru but also Mazda RX-8, we suspect that it's VR
327  TT_36_2_2_2 = 23,
328  // * only the 4 tooth signal, without the 360 signal
329  // * 8,2,2,2 Nissan pattern
330  TT_NISSAN_SR20VE = 24,
332  TT_ROVER_K = 26,
333  // GM 24x with 5/10 degree gaps
334  TT_GM_24x_5 = 27,
335  TT_HONDA_CBR_600 = 28,
336  TT_MITSU_4G9x_CAM = 29,
338  // skipped 3/1 with cam sensor for testing
339  TT_3_1_CAM = 31,
340  // crank-based in case your cam is broken
342  // * this takes care of crank sensor, VVT sensor should be configured separately
343  // * for VVT simulated trigger signal we have https://github.com/rusefi/rusefi/issues/566 gap
344  // * See also TT_MAZDA_MIATA_VVT_TEST
345  TT_MIATA_VVT = 33,
346  TT_MITSU_4G63_CAM = 34,
347  // * a version of NB1 with shifted CAM, useful for VVT testing & development
349  TT_SUBARU_7_6 = 36,
350  // this one is 6 cylinder, see TT_JEEP_4_cyl for 4 cylinders
351  TT_JEEP_18_2_2_2 = 37,
352  TT_12_TOOTH_CRANK = 38,
354  // Jeep XJ 2500cc 4 cylinder. See also TT_JEEP_18_2_2_2 for 6 cylinders
355  TT_JEEP_4_CYL = 40,
356  // magneti marelli Fiat/Lancia IAW P8 from the 90', 2.0 16 v turbo engine - Lancia Coupe
357  // https://rusefi.com/forum/viewtopic.php?f=5&t=1440
358  TT_FIAT_IAW_P8 = 41,
359  TT_FORD_ST170 = 42,
360  // * cam sensor of Mazda Miata NB2 - the VVT signal shape
361  TT_VVT_MIATA_NB = 43,
362  TT_RENIX_44_2_2 = 44,
363  //* Same as TT_RENIX_44_2_2 but repeated three times, not two.
364  TT_RENIX_66_2_2_2 = 45,
365  // * Honda K crank shape
369  TT_SUBARU_SVX = 49,
370  TT_SUZUKI_K6A = 50,
371  // todo: remove this trigger once we have https://github.com/rusefi/rusefi/issues/2073
374  // https://rusefi.com/forum/viewtopic.php?f=5&t=1912
375  TT_TRI_TACH = 53,
376  TT_GM_60_2_2_2 = 54,
377  // * https://rusefi.com/forum/viewtopic.php?f=5&t=1937
378  // * HALL sensor, and can be used on all Skoda's engines (from 1000MB to 130, Favorit, Felicia)
379  TT_SKODA_FAVORIT = 55,
381  TT_KAWA_KX450F = 57,
382  TT_NISSAN_VQ35 = 58,
383  TT_VVT_NISSAN_VQ35 = 59,
384  TT_NISSAN_VQ30 = 60,
385  TT_NISSAN_QR25 = 61,
389  TT_FORD_TFI_PIP = 65,
390  TT_SUZUKI_G13B = 66,
391  // * Honda K exhaust cam shaft
392  TT_HONDA_K_CAM_4_1 = 67,
395  // Mitsubishi 4B11 would be this with half moon camshaft
396  // 4G69 would use it with different cam
397  TT_36_2_1 = 70,
398  // Mitsubishi 3 cyl and 6 cyl
399  TT_36_2_1_1 = 71,
400  TT_3_TOOTH_CRANK = 72,
401  TT_VVT_TOYOTA_4_1 = 73,
402  // GM 24x with 3/12 degree gaps
403  TT_GM_24x_3 = 74,
404  // Renault F3R
405  TT_60_2_2_F3R = 75,
406  TT_MITSU_4G63_CRANK = 76,
407  /* pull-up'ed(inverted in): pull down 2x 30 deg before tdc on cam, till tdc.
408  e.g. Sovek, Saruman ignition blind type */
409  TT_60DEG_TOOTH = 77,
410  // trigger setup matches 4G15T
412 
413  TT_VVT_MITSU_6G72 = 79,
414 
415  TT_6_TOOTH_CRANK = 80,
416 
417  TT_DAIHATSU_4_CYL = 81,
418 
419  TT_VVT_MAZDA_L = 82,
420 
421  // do not forget to edit "#define trigger_type_e_enum" line in integration/rusefi_config.txt file to propogate new value to rusefi.ini TS project
422  // do not forget to invoke "gen_config.bat" once you make changes to integration/rusefi_config.txt
423  // todo: one day a hero would integrate some of these things into Makefile in order to reduce manual magic
424  //
425  // Another point: once you add a new trigger, run get_trigger_images.bat which would run rusefi_test.exe from unit_tests
426  //
427  TT_UNUSED = 83, // this is used if we want to iterate over all trigger types
428 };
@ TT_2JZ_3_34_SIMULATION_ONLY
@ TT_DODGE_NEON_1995_ONLY_CRANK

◆ ts_14_command

Enumerator
TS_14_0 
TS_14_1 
TS_GRAB_TPS_CLOSED 
TS_GRAB_TPS_WOT 
TS_14_4 
TS_14_5 
TS_GRAB_PEDAL_UP 
TS_GRAB_PEDAL_WOT 
TS_RESET_TLE8888 
TS_14_9 
TS_WRITE_FLASH 
TS_ETB_RESET 
TS_ETB_START_AUTOTUNE 
TS_TRIGGER_STIMULATOR_ENABLE 
TS_ETB_AUTOCAL_0 
TS_TRIGGER_STIMULATOR_DISABLE 
TS_ETB_STOP_AUTOTUNE 
TS_ETB_AUTOCAL_1 
TS_WIDEBAND_UPDATE 
TS_EXTERNAL_TRIGGER_STIMULATOR_ENABLE 
TS_RESET_MC33810 
TS_BURN_WITHOUT_FLASH 

Definition at line 430 of file engine_types.h.

430  {
431  TS_14_0 = 0,
432  TS_14_1 = 1,
433  TS_GRAB_TPS_CLOSED = 2,
434  TS_GRAB_TPS_WOT = 3,
435  TS_14_4 = 4,
436  TS_14_5 = 5,
437  TS_GRAB_PEDAL_UP = 6,
438  TS_GRAB_PEDAL_WOT = 7,
439  TS_RESET_TLE8888 = 8,
440  TS_14_9 = 9,
441  TS_WRITE_FLASH = 0x0A,
442  TS_ETB_RESET = 0x0B,
443  TS_ETB_START_AUTOTUNE = 0x0C,
445  TS_ETB_AUTOCAL_0 = 0x0E,
447  TS_ETB_STOP_AUTOTUNE = 0x10,
448  TS_ETB_AUTOCAL_1 = 0x11,
449  TS_WIDEBAND_UPDATE = 0x12,
451  TS_RESET_MC33810 = 0x14,
452  TS_BURN_WITHOUT_FLASH = 0x15,
453 } ts_14_command;
ts_14_command
Definition: engine_types.h:430
@ TS_GRAB_TPS_CLOSED
Definition: engine_types.h:433
@ TS_TRIGGER_STIMULATOR_ENABLE
Definition: engine_types.h:444
@ TS_14_4
Definition: engine_types.h:435
@ TS_BURN_WITHOUT_FLASH
Definition: engine_types.h:452
@ TS_ETB_STOP_AUTOTUNE
Definition: engine_types.h:447
@ TS_WRITE_FLASH
Definition: engine_types.h:441
@ TS_14_9
Definition: engine_types.h:440
@ TS_GRAB_PEDAL_UP
Definition: engine_types.h:437
@ TS_14_1
Definition: engine_types.h:432
@ TS_GRAB_TPS_WOT
Definition: engine_types.h:434
@ TS_ETB_AUTOCAL_0
Definition: engine_types.h:445
@ TS_RESET_TLE8888
Definition: engine_types.h:439
@ TS_ETB_AUTOCAL_1
Definition: engine_types.h:448
@ TS_TRIGGER_STIMULATOR_DISABLE
Definition: engine_types.h:446
@ TS_ETB_RESET
Definition: engine_types.h:442
@ TS_RESET_MC33810
Definition: engine_types.h:451
@ TS_14_5
Definition: engine_types.h:436
@ TS_ETB_START_AUTOTUNE
Definition: engine_types.h:443
@ TS_GRAB_PEDAL_WOT
Definition: engine_types.h:438
@ TS_14_0
Definition: engine_types.h:431
@ TS_EXTERNAL_TRIGGER_STIMULATOR_ENABLE
Definition: engine_types.h:450
@ TS_WIDEBAND_UPDATE
Definition: engine_types.h:449

◆ ts_command_e

Enumerator
TS_DEBUG_MODE 
TS_COMMAND_1 
TS_COMMAND_2 
TS_COMMAND_3 
TS_COMMAND_4 
TS_COMMAND_5 
TS_COMMAND_6 
TS_COMMAND_7 
TS_COMMAND_8 
TS_COMMAND_9 
TS_COMMAND_10 
TS_COMMAND_11 
TS_COMMAND_12 
TS_COMMAND_13 
TS_COMMAND_14 
TS_COMMAND_15 
TS_COMMAND_16 
TS_CLEAR_WARNINGS 
TS_IGNITION_CATEGORY 
TS_INJECTOR_CATEGORY 
TS_X14 
TS_WIDEBAND 
TS_BENCH_CATEGORY 
TS_UNUSED_23 
TS_UNUSED_24 
TS_SOLENOID_CATEGORY 
TS_UNUSED_26 
TS_UNUSED_27 
TS_UNUSED_28 
TS_UNUSED_29 
TS_SET_ENGINE_TYPE 
TS_SET_DEFAULT_ENGINE 
TS_LUA_OUTPUT_CATEGORY 

Definition at line 455 of file engine_types.h.

455  {
456  TS_DEBUG_MODE = 0,
457  TS_COMMAND_1 = 1,
458  TS_COMMAND_2 = 2,
459  TS_COMMAND_3 = 3,
460  TS_COMMAND_4 = 4,
461  TS_COMMAND_5 = 5,
462  TS_COMMAND_6 = 6,
463  TS_COMMAND_7 = 7,
464  TS_COMMAND_8 = 8,
465  TS_COMMAND_9 = 9,
466  TS_COMMAND_10 = 10,
467  TS_COMMAND_11 = 11,
468  TS_COMMAND_12 = 12,
469  TS_COMMAND_13 = 13,
470  TS_COMMAND_14 = 14,
471  TS_COMMAND_15 = 15,
472  TS_COMMAND_16 = 16,
473  TS_CLEAR_WARNINGS = 17,
476  TS_X14 = 20,
477  // 0x15
478  TS_WIDEBAND = 21,
479  TS_BENCH_CATEGORY = 22,
480  TS_UNUSED_23 = 23,
481  TS_UNUSED_24 = 24,
483  TS_UNUSED_26 = 26,
484  TS_UNUSED_27 = 27,
485  TS_UNUSED_28 = 28,
486  TS_UNUSED_29 = 29,
487  TS_SET_ENGINE_TYPE = 30,
490 } ts_command_e;
ts_command_e
Definition: engine_types.h:455
@ TS_UNUSED_24
Definition: engine_types.h:481
@ TS_COMMAND_4
Definition: engine_types.h:460
@ TS_UNUSED_28
Definition: engine_types.h:485
@ TS_COMMAND_15
Definition: engine_types.h:471
@ TS_WIDEBAND
Definition: engine_types.h:478
@ TS_UNUSED_26
Definition: engine_types.h:483
@ TS_COMMAND_5
Definition: engine_types.h:461
@ TS_CLEAR_WARNINGS
Definition: engine_types.h:473
@ TS_COMMAND_9
Definition: engine_types.h:465
@ TS_COMMAND_16
Definition: engine_types.h:472
@ TS_COMMAND_10
Definition: engine_types.h:466
@ TS_SOLENOID_CATEGORY
Definition: engine_types.h:482
@ TS_UNUSED_27
Definition: engine_types.h:484
@ TS_LUA_OUTPUT_CATEGORY
Definition: engine_types.h:489
@ TS_UNUSED_29
Definition: engine_types.h:486
@ TS_DEBUG_MODE
Definition: engine_types.h:456
@ TS_COMMAND_11
Definition: engine_types.h:467
@ TS_UNUSED_23
Definition: engine_types.h:480
@ TS_SET_ENGINE_TYPE
Definition: engine_types.h:487
@ TS_COMMAND_14
Definition: engine_types.h:470
@ TS_COMMAND_13
Definition: engine_types.h:469
@ TS_X14
Definition: engine_types.h:476
@ TS_IGNITION_CATEGORY
Definition: engine_types.h:474
@ TS_BENCH_CATEGORY
Definition: engine_types.h:479
@ TS_COMMAND_6
Definition: engine_types.h:462
@ TS_COMMAND_2
Definition: engine_types.h:458
@ TS_COMMAND_8
Definition: engine_types.h:464
@ TS_COMMAND_12
Definition: engine_types.h:468
@ TS_COMMAND_3
Definition: engine_types.h:459
@ TS_COMMAND_7
Definition: engine_types.h:463
@ TS_SET_DEFAULT_ENGINE
Definition: engine_types.h:488
@ TS_INJECTOR_CATEGORY
Definition: engine_types.h:475
@ TS_COMMAND_1
Definition: engine_types.h:457

Function Documentation

◆ __attribute__()

enum __attribute__ ( (__packed__)  )

https://rusefi.com//wiki/index.php?title=Manual:Debug_fields

See also DBG_ELECTRONIC_THROTTLE_EXTRA

Definition at line 1 of file engine_types.h.

224  {
225  DBG_0 = 0,
226  DBG_TPS_ACCEL = 1,
227  DBG_2 = 2,
228  DBG_STEPPER_IDLE_CONTROL = 3,
229  DBG_EL_ACCEL = 4,
230  DBG_5 = 5,
231  DBG_6 = 6,
232  DBG_7 = 7,
233  DBG_8 = 8,
234  DBG_9 = 9,
235  DBG_10 = 10,
236  DBG_11 = 11,
237  DBG_12 = 12,
238  DBG_13 = 13,
239  DBG_SR5_PROTOCOL = 14,
240  DBG_KNOCK = 15,
241  DBG_16 = 16,
242  /**
243  * See also DBG_ELECTRONIC_THROTTLE_EXTRA
244  */
245  DBG_ELECTRONIC_THROTTLE_PID = 17,
246  DBG_EXECUTOR = 18,
247 
248  DBG_19 = 19,
249  DBG_20 = 20,
250  DBG_21 = 21,
251 
252  DBG_22 = 22,
253  UNUSED23 = 23,
254  DBG_24 = 24,
255  DBG_25 = 25,
256  DBG_26 = 26,
257  DBG_27 = 27,
258  DBG_METRICS = 28,
259  DBG_29 = 29,
260  DBG_ION = 30,
261  DBG_TLE8888 = 31,
262  DBG_32 = 32,
263  DBG_DWELL_METRIC = 33,
264  DBG_34 = 34,
265  DBG_35 = 35,
266  DBG_36 = 36,
267  DBG_37 = 37,
268  DBG_38 = 38,
269  DBG_ETB_AUTOTUNE = 39,
270  DBG_COMPOSITE_LOG = 40,
271  DBG_UNUSED41 = 41,
272  DBG_UNUSED_42 = 42,
273  DBG_43 = 43,
274  DBG_DYNO_VIEW = 44,
275  DBG_LOGIC_ANALYZER = 45,
276  DBG_46 = 46,
277  DBG_TCU = 47,
278  DBG_LUA = 48,
279 
280 } debug_mode_e;
debug_mode_e
Definition: engine_types.h:280

Variable Documentation

◆ debug_mode_e

debug_mode_e

Definition at line 280 of file engine_types.h.

Referenced by executeTSCommand(), and setDebugMode().

Go to the source code of this file.