2021-10-23 18:46:42 -07:00
|
|
|
/*
|
|
|
|
* @file engine_types.h
|
|
|
|
*
|
|
|
|
* @date Oct 23, 2021
|
|
|
|
* @author Andrey Belomutskiy, (c) 2012-2021
|
|
|
|
*/
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "rusefi_generated.h"
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* http://rusefi.com/wiki/index.php?title=Manual:Engine_Type
|
|
|
|
*/
|
2022-05-02 01:13:59 -07:00
|
|
|
typedef enum __attribute__ ((__packed__)) {
|
2021-10-24 11:08:21 -07:00
|
|
|
DEFAULT_FRANKENSO = 0,
|
2021-10-24 09:15:53 -07:00
|
|
|
|
|
|
|
MIATA_PROTEUS_TCU = 1,
|
|
|
|
|
2021-10-23 18:46:42 -07:00
|
|
|
/**
|
|
|
|
* 1995 Dodge Neon
|
|
|
|
* http://rusefi.com/forum/viewtopic.php?t=360
|
|
|
|
*/
|
2021-10-23 20:40:14 -07:00
|
|
|
DODGE_NEON_1995 = 2,
|
2021-10-23 18:46:42 -07:00
|
|
|
/**
|
|
|
|
* 1996 1.3 Ford Aspire
|
|
|
|
* http://rusefi.com/forum/viewtopic.php?t=375
|
|
|
|
*/
|
2021-10-23 20:40:14 -07:00
|
|
|
FORD_ASPIRE_1996 = 3,
|
2021-11-06 15:23:59 -07:00
|
|
|
/**
|
|
|
|
* See also PROTEUS_LUA_DEMO
|
|
|
|
*/
|
2021-10-26 18:05:38 -07:00
|
|
|
MRE_SECONDARY_CAN = 4,
|
2021-10-23 18:46:42 -07:00
|
|
|
|
2021-10-23 20:40:14 -07:00
|
|
|
NISSAN_PRIMERA = 5,
|
2021-11-12 18:56:07 -08:00
|
|
|
PROTEUS_HARLEY = 6,
|
2021-10-23 18:46:42 -07:00
|
|
|
FORD_INLINE_6_1995 = 7,
|
|
|
|
/**
|
|
|
|
* one cylinder engine
|
|
|
|
* 139qmb 50-90cc
|
|
|
|
* http://rusefi.com/forum/viewtopic.php?f=3&t=332
|
|
|
|
*/
|
|
|
|
GY6_139QMB = 8,
|
|
|
|
|
2021-12-23 13:41:06 -08:00
|
|
|
PROTEUS_E65_6H_MAN_IN_THE_MIDDLE = 9,
|
2021-12-29 18:23:47 -08:00
|
|
|
HELLEN_NA8_96 = 10,
|
2021-10-24 10:58:04 -07:00
|
|
|
MRE_MIATA_NB2_MAP = 11,
|
|
|
|
MRE_MIATA_NA6_VAF = 12,
|
2021-10-23 18:46:42 -07:00
|
|
|
MRE_MIATA_NB2_ETB = 13,
|
2021-10-24 10:58:04 -07:00
|
|
|
MRE_MIATA_NA6_MAP = 66,
|
|
|
|
MRE_MIATA_NB2_MAF = 15,
|
2021-10-23 18:46:42 -07:00
|
|
|
|
2022-02-01 18:50:44 -08:00
|
|
|
TEST_ROTARY = 19,
|
2021-10-23 18:46:42 -07:00
|
|
|
// Frankenso board
|
2021-10-24 06:16:11 -07:00
|
|
|
FRANKENSO_MIATA_NA6_MAP = 41,
|
2021-10-24 11:08:21 -07:00
|
|
|
MRE_MIATA_94_MAP = 20,
|
2021-10-23 18:46:42 -07:00
|
|
|
MIATA_1996 = 21,
|
|
|
|
|
2021-10-24 11:08:21 -07:00
|
|
|
FORD_ESCORT_GT = 14,
|
2021-10-23 18:46:42 -07:00
|
|
|
|
|
|
|
MITSU_4G93 = 16,
|
|
|
|
|
2022-02-01 18:50:44 -08:00
|
|
|
TEST_33816 = 18,
|
2021-10-23 18:46:42 -07:00
|
|
|
|
|
|
|
|
|
|
|
SUBARU_2003_WRX = 22,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* microRusEFI used as Body Control Module BCM BCU
|
|
|
|
*/
|
2021-10-24 11:08:21 -07:00
|
|
|
MRE_BODY_CONTROL = 23,
|
2021-10-23 18:46:42 -07:00
|
|
|
BMW_M73_M = 24,
|
|
|
|
|
2021-11-06 15:23:59 -07:00
|
|
|
/**
|
|
|
|
* See also MRE_SECONDARY_CAN
|
|
|
|
*/
|
|
|
|
PROTEUS_LUA_DEMO = 25,
|
|
|
|
|
2021-10-23 18:46:42 -07:00
|
|
|
TEST_ENGINE = 26,
|
|
|
|
|
|
|
|
// used by unit test
|
|
|
|
// see https://github.com/rusefi/rusefi/issues/898
|
|
|
|
// see TriggerWaveform::bothFrontsRequired
|
|
|
|
TEST_ISSUE_898 = 27,
|
|
|
|
|
2021-12-07 18:08:25 -08:00
|
|
|
TEST_CRANK_ENGINE = 28,
|
2021-10-23 18:46:42 -07:00
|
|
|
|
2021-10-24 17:06:57 -07:00
|
|
|
SACHS = 29,
|
2021-10-23 18:46:42 -07:00
|
|
|
|
2022-02-01 19:05:13 -08:00
|
|
|
PROTEUS_ANALOG_PWM_TEST = 30,
|
2021-10-23 18:46:42 -07:00
|
|
|
|
|
|
|
MRE_BOARD_NEW_TEST = 31,
|
|
|
|
|
2021-10-23 20:40:14 -07:00
|
|
|
VW_ABA = 32,
|
2021-10-23 18:46:42 -07:00
|
|
|
|
|
|
|
HELLEN72_ETB = 33,
|
|
|
|
|
2021-10-24 16:19:16 -07:00
|
|
|
HELLEN_NA6 = 34,
|
2021-10-23 18:46:42 -07:00
|
|
|
|
2021-10-23 20:40:14 -07:00
|
|
|
CAMARO_4 = 35,
|
2021-10-23 18:46:42 -07:00
|
|
|
|
2021-10-24 11:08:21 -07:00
|
|
|
HELLEN_128_MERCEDES_4_CYL = 36,
|
2021-10-23 18:46:42 -07:00
|
|
|
|
2021-10-24 11:08:21 -07:00
|
|
|
MRE_SUBARU_EJ18 = 37,
|
2021-10-23 18:46:42 -07:00
|
|
|
|
|
|
|
TOYOTA_JZS147 = 38, // 2JZ-GTE NON VVTi
|
|
|
|
|
2022-05-20 22:44:19 -07:00
|
|
|
PROTEUS_VW_B6 = 39,
|
2021-10-23 18:46:42 -07:00
|
|
|
|
2021-10-24 17:06:57 -07:00
|
|
|
FRANKENSO_BMW_M73_F = 40,
|
2021-10-23 18:46:42 -07:00
|
|
|
|
2021-10-24 11:08:21 -07:00
|
|
|
PROTEUS_QC_TEST_BOARD = 42,
|
2021-10-23 18:46:42 -07:00
|
|
|
|
|
|
|
HONDA_600 = 43,
|
|
|
|
|
|
|
|
TOYOTA_2JZ_GTE_VVTi = 44,
|
|
|
|
|
|
|
|
TEST_ENGINE_VVT = 45,
|
|
|
|
|
|
|
|
DODGE_NEON_2003_CRANK = 46,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* proper NB2 setup, 2003 red test mule car
|
|
|
|
*/
|
2021-10-24 17:06:57 -07:00
|
|
|
FRANKENSO_MAZDA_MIATA_2003 = 47,
|
2021-10-23 18:46:42 -07:00
|
|
|
|
|
|
|
UNUSED_48 = 48,
|
|
|
|
|
|
|
|
FRANKENSO_QA_ENGINE = 49,
|
|
|
|
|
2022-02-01 18:50:44 -08:00
|
|
|
BMW_M73_MRE = 50,
|
2021-10-23 18:46:42 -07:00
|
|
|
|
2022-02-01 18:50:44 -08:00
|
|
|
BMW_M73_MRE_SLAVE = 51,
|
2021-10-23 18:46:42 -07:00
|
|
|
|
|
|
|
|
|
|
|
TEST_ISSUE_366_BOTH = 52,
|
|
|
|
TEST_ISSUE_366_RISE = 53,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* green Hunchback race car - VVT engine on a NA body with NA return fuel lines which
|
|
|
|
* means different fuel pressure situation
|
|
|
|
*/
|
|
|
|
MAZDA_MIATA_2003_NA_RAIL = 54,
|
|
|
|
|
|
|
|
MAZDA_MIATA_2003_BOARD_TEST = 55,
|
|
|
|
|
2021-10-24 06:16:11 -07:00
|
|
|
FRANKENSO_MAZDA_MIATA_NA8 = 56,
|
2021-10-23 18:46:42 -07:00
|
|
|
|
2021-10-24 17:06:57 -07:00
|
|
|
FRANKENSO_MIATA_NA6_VAF = 57,
|
2021-10-23 18:46:42 -07:00
|
|
|
|
|
|
|
ETB_BENCH_ENGINE = 58,
|
|
|
|
|
|
|
|
TLE8888_BENCH_ENGINE = 59,
|
|
|
|
|
2022-02-06 09:39:25 -08:00
|
|
|
L9779_BENCH_ENGINE = 60,
|
2021-10-23 18:46:42 -07:00
|
|
|
|
2022-02-06 10:59:08 -08:00
|
|
|
EEPROM_BENCH_ENGINE = 61,
|
2021-10-23 18:46:42 -07:00
|
|
|
|
2022-05-20 22:44:19 -07:00
|
|
|
MRE_VW_B6 = 62,
|
2021-10-23 18:46:42 -07:00
|
|
|
|
2021-10-24 10:10:38 -07:00
|
|
|
PROTEUS_BMW_M73 = 63,
|
2021-10-23 18:46:42 -07:00
|
|
|
|
|
|
|
DODGE_RAM = 64,
|
2021-10-24 17:06:57 -07:00
|
|
|
CITROEN_TU3JP = 65,
|
2021-10-23 18:46:42 -07:00
|
|
|
|
2021-10-24 09:15:53 -07:00
|
|
|
PROTEUS_MIATA_NB2 = 67,
|
|
|
|
MRE_M111 = 68,
|
2021-10-23 18:46:42 -07:00
|
|
|
|
2021-10-24 09:49:51 -07:00
|
|
|
HELLEN_NB2 = 69,
|
2021-10-23 18:46:42 -07:00
|
|
|
|
|
|
|
SUBARUEG33_DEFAULTS = 70,
|
|
|
|
|
2021-10-24 11:08:21 -07:00
|
|
|
HELLEN_121_VAG_4_CYL = 71,
|
|
|
|
HELLEN_121_NISSAN_6_CYL = 72,
|
|
|
|
HELLEN_55_BMW = 73,
|
|
|
|
HELLEN_88_BMW = 74,
|
|
|
|
HELLEN_134_BMW = 75,
|
|
|
|
HELLEN_154_VAG = 76,
|
2021-10-23 18:46:42 -07:00
|
|
|
|
2021-10-24 11:08:21 -07:00
|
|
|
HELLEN_121_VAG_5_CYL = 77,
|
|
|
|
HELLEN_121_VAG_V6_CYL = 78,
|
|
|
|
HELLEN_121_VAG_VR6_CYL = 79,
|
|
|
|
HELLEN_121_VAG_8_CYL = 81,
|
2021-10-23 18:46:42 -07:00
|
|
|
|
2021-10-24 11:08:21 -07:00
|
|
|
HELLEN_NA94 = 80,
|
2021-10-23 18:46:42 -07:00
|
|
|
|
|
|
|
// 82
|
2021-10-24 17:06:57 -07:00
|
|
|
HELLEN_154_HYUNDAI_COUPE_BK1 = 82,
|
|
|
|
HELLEN_NB1 = 83,
|
2021-10-23 18:46:42 -07:00
|
|
|
// 84
|
2021-10-24 16:19:16 -07:00
|
|
|
HELLEN_121_NISSAN_4_CYL = 84,
|
2021-10-23 18:46:42 -07:00
|
|
|
|
2021-10-23 20:00:04 -07:00
|
|
|
HELLEN_121_NISSAN_8_CYL = 85,
|
|
|
|
|
2021-10-24 09:49:51 -07:00
|
|
|
HELLEN_NB2_36 = 86,
|
2021-10-23 18:46:42 -07:00
|
|
|
|
2021-10-23 20:00:04 -07:00
|
|
|
HELLEN_121_NISSAN_ALMERA_N16 = 87,
|
|
|
|
|
2021-10-24 17:06:57 -07:00
|
|
|
HELLEN_128_MERCEDES_6_CYL = 88,
|
2021-10-23 18:46:42 -07:00
|
|
|
|
2021-10-24 17:06:57 -07:00
|
|
|
HELLEN_128_MERCEDES_8_CYL = 89,
|
2021-10-23 18:46:42 -07:00
|
|
|
|
2021-10-24 10:01:20 -07:00
|
|
|
PROTEUS_HONDA_ELEMENT_2003 = 90,
|
2021-10-23 18:46:42 -07:00
|
|
|
|
2021-10-24 09:15:53 -07:00
|
|
|
PROTEUS_HONDA_OBD2A = 91,
|
2021-10-23 18:46:42 -07:00
|
|
|
|
2021-10-24 17:06:57 -07:00
|
|
|
PROTEUS_VAG_80_18T = 92,
|
2021-10-23 18:46:42 -07:00
|
|
|
|
2021-10-24 17:06:57 -07:00
|
|
|
PROTEUS_N73 = 93,
|
2021-10-23 18:46:42 -07:00
|
|
|
|
2021-10-23 20:00:04 -07:00
|
|
|
HELLEN_NB1_36 = 94,
|
|
|
|
|
2021-10-24 17:06:57 -07:00
|
|
|
HELLEN_154_HYUNDAI_COUPE_BK2 = 95,
|
2021-10-23 18:46:42 -07:00
|
|
|
|
2021-10-23 20:46:08 -07:00
|
|
|
ET_UNUSED96 = 96,
|
|
|
|
ET_UNUSED97 = 97,
|
|
|
|
ET_UNUSED98 = 98,
|
2022-06-01 18:24:20 -07:00
|
|
|
ET_UNUSED_17 = 17,
|
2021-10-23 18:46:42 -07:00
|
|
|
|
|
|
|
/**
|
|
|
|
* this configuration has as few pins configured as possible
|
|
|
|
*/
|
|
|
|
MINIMAL_PINS = 99,
|
|
|
|
|
2022-02-01 18:50:44 -08:00
|
|
|
TEST_100 = 100,
|
|
|
|
TEST_101 = 101,
|
|
|
|
TEST_102 = 102,
|
2022-05-02 01:13:59 -07:00
|
|
|
|
2022-05-02 01:38:04 -07:00
|
|
|
// java code generator handles this value in a special way
|
|
|
|
// also looks like 2 enums are either 1 byte or 4 bytes
|
|
|
|
Force_4_bytes_size_engine_type = 70000,
|
2021-10-23 18:46:42 -07:00
|
|
|
} engine_type_e;
|
2021-10-23 20:40:14 -07:00
|
|
|
|
|
|
|
/**
|
|
|
|
* https://rusefi.com//wiki/index.php?title=Manual:Debug_fields
|
|
|
|
*/
|
2022-04-30 10:16:34 -07:00
|
|
|
typedef enum __attribute__ ((__packed__)) {
|
2021-11-29 07:44:41 -08:00
|
|
|
DBG_0 = 0,
|
2021-10-23 20:40:14 -07:00
|
|
|
DBG_TPS_ACCEL = 1,
|
2022-07-27 02:10:00 -07:00
|
|
|
DBG_2 = 2,
|
2022-07-07 19:58:25 -07:00
|
|
|
DBG_STEPPER_IDLE_CONTROL = 3,
|
2021-10-23 20:40:14 -07:00
|
|
|
DBG_EL_ACCEL = 4,
|
|
|
|
DBG_TRIGGER_COUNTERS = 5,
|
2021-11-19 04:02:21 -08:00
|
|
|
DBG_SOFT_SPARK_CUT = 6,
|
2022-08-16 21:47:31 -07:00
|
|
|
DBG_7 = 7,
|
2021-12-06 14:04:05 -08:00
|
|
|
DBG_8 = 8,
|
2021-11-29 11:11:19 -08:00
|
|
|
DBG_9 = 9,
|
|
|
|
DBG_10 = 10,
|
|
|
|
DBG_11 = 11,
|
2021-10-23 20:46:08 -07:00
|
|
|
DBG_UNUSED12 = 12,
|
2021-10-23 20:40:14 -07:00
|
|
|
DBG_SD_CARD = 13,
|
|
|
|
DBG_SR5_PROTOCOL = 14,
|
|
|
|
DBG_KNOCK = 15,
|
2021-11-29 07:44:41 -08:00
|
|
|
DBG_16 = 16,
|
2021-10-23 20:40:14 -07:00
|
|
|
/**
|
|
|
|
* See also DBG_ELECTRONIC_THROTTLE_EXTRA
|
|
|
|
*/
|
|
|
|
DBG_ELECTRONIC_THROTTLE_PID = 17,
|
|
|
|
DBG_EXECUTOR = 18,
|
|
|
|
/**
|
|
|
|
* See tunerstudio.cpp
|
|
|
|
*/
|
|
|
|
DBG_BENCH_TEST = 19,
|
2021-11-29 11:11:19 -08:00
|
|
|
DBG_20 = 20,
|
2021-10-23 20:40:14 -07:00
|
|
|
/**
|
|
|
|
* ADC
|
|
|
|
* See also DBG_ANALOG_INPUTS2
|
|
|
|
*/
|
|
|
|
DBG_ANALOG_INPUTS = 21,
|
|
|
|
|
|
|
|
DBG_INSTANT_RPM = 22,
|
|
|
|
UNUSED23 = 23,
|
2022-01-11 19:54:57 -08:00
|
|
|
DBG_24 = 24,
|
2021-10-23 20:40:14 -07:00
|
|
|
DBG_CJ125 = 25,
|
2021-12-06 18:31:49 -08:00
|
|
|
DBG_26 = 26,
|
2021-10-23 20:40:14 -07:00
|
|
|
DBG_MAP = 27,
|
|
|
|
DBG_METRICS = 28,
|
2021-11-29 11:11:19 -08:00
|
|
|
DBG_29 = 29,
|
2021-10-23 20:40:14 -07:00
|
|
|
DBG_ION = 30,
|
|
|
|
DBG_TLE8888 = 31,
|
|
|
|
/**
|
|
|
|
* See also DBG_ANALOG_INPUTS
|
|
|
|
*/
|
|
|
|
DBG_ANALOG_INPUTS2 = 32,
|
|
|
|
DBG_DWELL_METRIC = 33,
|
|
|
|
DBG_34 = 34,
|
2021-11-29 07:44:41 -08:00
|
|
|
DBG_35 = 35,
|
2022-01-01 23:04:25 -08:00
|
|
|
DBG_36 = 36,
|
2021-11-29 11:11:19 -08:00
|
|
|
DBG_37 = 37,
|
2021-12-16 13:19:33 -08:00
|
|
|
DBG_38 = 38,
|
2021-10-23 20:40:14 -07:00
|
|
|
DBG_ETB_AUTOTUNE = 39,
|
|
|
|
DBG_COMPOSITE_LOG = 40,
|
2021-10-23 20:46:08 -07:00
|
|
|
DBG_UNUSED41 = 41,
|
2021-10-23 20:40:14 -07:00
|
|
|
DBG_UNUSED_42 = 42,
|
2021-11-29 07:44:41 -08:00
|
|
|
DBG_43 = 43,
|
2021-10-23 20:40:14 -07:00
|
|
|
DBG_DYNO_VIEW = 44,
|
|
|
|
DBG_LOGIC_ANALYZER = 45,
|
2022-06-23 17:04:26 -07:00
|
|
|
DBG_46 = 46,
|
2021-10-23 20:40:14 -07:00
|
|
|
DBG_TCU = 47,
|
|
|
|
DBG_LUA = 48,
|
|
|
|
|
|
|
|
} debug_mode_e;
|
|
|
|
|
2021-10-24 11:18:23 -07:00
|
|
|
/**
|
|
|
|
* @see http://rusefi.com/wiki/index.php?title=Manual:Software:Trigger
|
|
|
|
*/
|
|
|
|
typedef enum {
|
|
|
|
|
2021-10-25 07:57:02 -07:00
|
|
|
TT_TOOTHED_WHEEL = 0,
|
|
|
|
TT_FORD_ASPIRE = 1,
|
2021-10-24 11:18:23 -07:00
|
|
|
TT_DODGE_NEON_1995 = 2,
|
|
|
|
/**
|
|
|
|
* https://rusefi.com/wiki/index.php?title=Manual:Software:Trigger#Mazda_Miata_NA
|
|
|
|
*/
|
2021-10-25 07:57:02 -07:00
|
|
|
TT_MAZDA_MIATA_NA = 3,
|
2021-10-24 11:18:23 -07:00
|
|
|
/**
|
|
|
|
* NB1 means non-VVT NB, 99 and 00 1.8 engine
|
2021-11-06 17:24:41 -07:00
|
|
|
* TODO: remove it? Remove Miata MX5 NB1 trigger #3488
|
2021-10-24 11:18:23 -07:00
|
|
|
*/
|
2021-10-25 07:57:02 -07:00
|
|
|
TT_MAZDA_MIATA_NB1 = 4,
|
|
|
|
TT_GM_7X = 5,
|
2021-10-25 08:05:45 -07:00
|
|
|
TT_DAIHATSU = 6,
|
|
|
|
TT_MAZDA_SOHC_4 = 7,
|
2021-10-24 11:18:23 -07:00
|
|
|
/**
|
|
|
|
* "60/2"
|
|
|
|
* See also TT_ONE_PLUS_TOOTHED_WHEEL_60_2
|
|
|
|
*/
|
2021-10-25 07:57:02 -07:00
|
|
|
TT_TOOTHED_WHEEL_60_2 = 8,
|
|
|
|
TT_TOOTHED_WHEEL_36_1 = 9,
|
2021-10-24 11:18:23 -07:00
|
|
|
|
2021-11-13 18:50:04 -08:00
|
|
|
TT_MERCEDES_2_SEGMENT = 10,
|
2021-10-24 11:18:23 -07:00
|
|
|
|
|
|
|
// todo: this really looks to be same as Miata_NA shall we remove?
|
|
|
|
TT_MITSUBISHI = 11,
|
|
|
|
|
|
|
|
// cam-based
|
|
|
|
TT_DODGE_NEON_2003_CAM = 14,
|
|
|
|
|
2021-10-25 07:57:02 -07:00
|
|
|
TT_MAZDA_DOHC_1_4 = 15,
|
2021-10-24 11:18:23 -07:00
|
|
|
|
|
|
|
/**
|
|
|
|
* "1+1" - one tooth on primary channel, one tooth on secondary channel
|
|
|
|
* this trigger is used only by unit tests
|
|
|
|
* see also TT_ONE a bit below
|
|
|
|
*/
|
|
|
|
TT_ONE_PLUS_ONE = 16,
|
2022-05-12 01:31:05 -07:00
|
|
|
// VVT for 2JZ, see VVT_2JZ
|
2021-10-25 07:57:02 -07:00
|
|
|
TT_VVT_JZ = 17,
|
2021-10-24 11:18:23 -07:00
|
|
|
// just one channel with just one tooth
|
2021-10-25 07:57:02 -07:00
|
|
|
TT_ONE = 18,
|
2021-10-24 11:18:23 -07:00
|
|
|
|
|
|
|
TT_DODGE_RAM = 19,
|
|
|
|
/**
|
|
|
|
* It looks like this is the VR shape if you have your wires flipped
|
|
|
|
*/
|
2021-10-25 07:57:02 -07:00
|
|
|
TT_60_2_VW = 20,
|
2021-10-24 11:18:23 -07:00
|
|
|
|
|
|
|
TT_DODGE_STRATUS = 22,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Subaru but also Mazda RX-8
|
|
|
|
* We suspect that it's VR
|
|
|
|
*/
|
2021-10-25 07:57:02 -07:00
|
|
|
TT_36_2_2_2 = 23,
|
2021-10-24 11:18:23 -07:00
|
|
|
|
|
|
|
/**
|
|
|
|
* only the 4 tooth signal, without the 360 signal
|
|
|
|
* 8,2,2,2 Nissan pattern
|
|
|
|
*/
|
|
|
|
TT_NISSAN_SR20VE = 24,
|
|
|
|
|
2021-10-25 07:57:02 -07:00
|
|
|
TT_2JZ_3_34 = 25,
|
2021-10-24 11:18:23 -07:00
|
|
|
|
|
|
|
TT_ROVER_K = 26,
|
|
|
|
|
|
|
|
TT_HONDA_CBR_600 = 28,
|
|
|
|
|
2021-10-25 07:57:02 -07:00
|
|
|
TT_2JZ_1_12 = 29,
|
2021-10-24 11:18:23 -07:00
|
|
|
|
2021-10-25 07:57:02 -07:00
|
|
|
TT_CHRYSLER_NGC_36_2_2 = 30,
|
2021-10-24 11:18:23 -07:00
|
|
|
|
|
|
|
// skipped 3/1 with cam sensor for testing
|
|
|
|
TT_3_1_CAM = 31,
|
|
|
|
|
|
|
|
// crank-based in case your cam is broken
|
|
|
|
TT_DODGE_NEON_2003_CRANK = 32,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* this takes care of crank sensor, VVT sensor should be configured separately
|
|
|
|
* for VVT simulated trigger signal we have https://github.com/rusefi/rusefi/issues/566 gap
|
|
|
|
* See also TT_MAZDA_MIATA_VVT_TEST
|
|
|
|
*/
|
2021-10-25 07:57:02 -07:00
|
|
|
TT_MIATA_VVT = 33,
|
2021-10-24 11:18:23 -07:00
|
|
|
|
|
|
|
/**
|
|
|
|
* a version of NB1 with shifted CAM, useful for VVT testing & development
|
|
|
|
*/
|
|
|
|
TT_MAZDA_MIATA_VVT_TEST = 35,
|
|
|
|
|
2021-10-25 07:57:02 -07:00
|
|
|
TT_SUBARU_7_6 = 36,
|
2021-10-24 11:18:23 -07:00
|
|
|
|
|
|
|
// this one is 6 cylinder, see TT_JEEP_4_cyl for 4 cylinders
|
2021-10-25 07:57:02 -07:00
|
|
|
TT_JEEP_18_2_2_2 = 37,
|
2021-10-24 11:18:23 -07:00
|
|
|
|
2022-05-17 18:38:24 -07:00
|
|
|
TT_12_TOOTH_CRANK = 38,
|
2021-10-24 11:18:23 -07:00
|
|
|
|
|
|
|
TT_DODGE_NEON_1995_ONLY_CRANK = 39,
|
|
|
|
|
|
|
|
// Jeep XJ 2500cc 4 cylinder. See also TT_JEEP_18_2_2_2 for 6 cylinders
|
2021-10-25 07:57:02 -07:00
|
|
|
TT_JEEP_4_CYL = 40,
|
2021-10-24 11:18:23 -07:00
|
|
|
|
|
|
|
// magneti marelli Fiat/Lancia IAW P8 from the 90', 2.0 16 v turbo engine - Lancia Coupe
|
|
|
|
// https://rusefi.com/forum/viewtopic.php?f=5&t=1440
|
|
|
|
TT_FIAT_IAW_P8 = 41,
|
|
|
|
|
2021-10-25 07:59:24 -07:00
|
|
|
TT_FORD_ST170 = 42,
|
2021-10-24 11:18:23 -07:00
|
|
|
|
|
|
|
/**
|
|
|
|
* cam sensor of Mazda Miata NB2 - the VVT signal shape
|
|
|
|
*/
|
2022-01-31 15:20:43 -08:00
|
|
|
TT_VVT_MIATA_NB = 43,
|
2021-10-24 11:18:23 -07:00
|
|
|
|
2021-10-25 07:57:02 -07:00
|
|
|
TT_RENIX_44_2_2 = 44,
|
2021-10-24 11:18:23 -07:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Same as TT_RENIX_44_2_2 but repeated three times, not two.
|
|
|
|
*/
|
2021-10-25 07:57:02 -07:00
|
|
|
TT_RENIX_66_2_2_2 = 45,
|
2021-10-24 11:18:23 -07:00
|
|
|
|
2021-10-25 07:57:02 -07:00
|
|
|
TT_HONDA_K_12_1 = 46,
|
2021-10-24 11:18:23 -07:00
|
|
|
|
2021-10-25 07:57:02 -07:00
|
|
|
TT_VVT_BOSCH_QUICK_START = 47,
|
2021-10-24 11:18:23 -07:00
|
|
|
|
2021-10-25 07:57:02 -07:00
|
|
|
TT_TOOTHED_WHEEL_36_2 = 48,
|
2021-10-24 11:18:23 -07:00
|
|
|
|
2021-10-25 07:57:02 -07:00
|
|
|
TT_SUBARU_SVX = 49,
|
2021-10-24 11:18:23 -07:00
|
|
|
|
|
|
|
TT_1_16 = 50,
|
|
|
|
|
|
|
|
// todo: remove this trigger once we have https://github.com/rusefi/rusefi/issues/2073
|
2021-10-25 07:57:02 -07:00
|
|
|
TT_SUBARU_7_WITHOUT_6 = 51,
|
2021-10-24 11:18:23 -07:00
|
|
|
|
2021-11-05 12:33:22 -07:00
|
|
|
TT_NISSAN_MR18_CAM_VVT = 52,
|
2021-10-24 11:18:23 -07:00
|
|
|
|
|
|
|
// https://rusefi.com/forum/viewtopic.php?f=5&t=1912
|
2021-10-25 07:57:02 -07:00
|
|
|
TT_TRI_TACH = 53,
|
2021-10-24 11:18:23 -07:00
|
|
|
|
2021-10-25 07:57:02 -07:00
|
|
|
TT_GM_60_2_2_2 = 54,
|
2021-10-24 11:18:23 -07:00
|
|
|
|
|
|
|
/**
|
|
|
|
* https://rusefi.com/forum/viewtopic.php?f=5&t=1937
|
|
|
|
* HALL sensor, and can be used on all Skoda's engines (from 1000MB to 130, Favorit, Felicia)
|
|
|
|
*/
|
2021-10-25 07:57:02 -07:00
|
|
|
TT_SKODA_FAVORIT = 55,
|
2021-10-24 11:18:23 -07:00
|
|
|
|
2021-10-25 07:57:02 -07:00
|
|
|
TT_VVT_BARRA_3_PLUS_1 = 56,
|
2021-10-24 11:18:23 -07:00
|
|
|
|
2021-10-25 07:57:02 -07:00
|
|
|
TT_KAWA_KX450F = 57,
|
2021-10-24 11:18:23 -07:00
|
|
|
|
2021-10-25 07:57:02 -07:00
|
|
|
TT_NISSAN_VQ35 = 58,
|
2021-10-24 11:18:23 -07:00
|
|
|
|
2021-10-25 07:57:02 -07:00
|
|
|
TT_VVT_NISSAN_VQ35 = 59,
|
2021-10-24 11:18:23 -07:00
|
|
|
|
2021-10-25 07:57:02 -07:00
|
|
|
TT_NISSAN_VQ30 = 60,
|
2021-10-24 11:18:23 -07:00
|
|
|
|
2021-10-25 07:57:02 -07:00
|
|
|
TT_NISSAN_QR25 = 61,
|
2021-10-24 11:18:23 -07:00
|
|
|
|
2022-03-19 13:28:06 -07:00
|
|
|
TT_VVT_MITSUBISHI_3A92 = 62,
|
2021-10-24 11:18:23 -07:00
|
|
|
|
2021-10-25 07:57:02 -07:00
|
|
|
TT_SUBARU_SVX_CRANK_1 = 63,
|
2021-10-24 11:18:23 -07:00
|
|
|
|
2021-10-25 07:57:02 -07:00
|
|
|
TT_SUBARU_SVX_CAM_VVT = 64,
|
2021-10-24 11:18:23 -07:00
|
|
|
|
2021-10-25 07:57:02 -07:00
|
|
|
TT_FORD_TFI_PIP = 65,
|
2021-10-24 11:18:23 -07:00
|
|
|
|
2021-10-25 07:57:02 -07:00
|
|
|
TT_SUZUKI_G13B = 66,
|
2021-10-24 11:18:23 -07:00
|
|
|
|
2021-10-24 14:12:19 -07:00
|
|
|
TT_HONDA_K_4_1 = 67,
|
|
|
|
|
2021-11-05 04:15:03 -07:00
|
|
|
TT_NISSAN_MR18_CRANK = 68,
|
|
|
|
|
2021-11-25 17:45:58 -08:00
|
|
|
TT_TOOTHED_WHEEL_32_2 = 69,
|
|
|
|
|
2022-03-19 12:52:42 -07:00
|
|
|
// Mitsubishi 4B11 would be this with half moon camshaft
|
|
|
|
TT_36_2_1 = 70,
|
|
|
|
|
2022-03-19 12:54:43 -07:00
|
|
|
// Mitsubishi 3 cyl and 6 cyl
|
|
|
|
TT_36_2_1_1 = 71,
|
2022-03-19 12:52:42 -07:00
|
|
|
|
2021-11-25 17:45:58 -08:00
|
|
|
|
2022-03-19 13:28:06 -07:00
|
|
|
TT_VVT_MITSUBISHI_6G75 = 72,
|
|
|
|
|
2022-03-22 03:34:22 -07:00
|
|
|
TT_VVT_TOYOTA_4_1 = 73,
|
|
|
|
|
2022-05-06 05:25:44 -07:00
|
|
|
// GM 24x with 5/10 degree gaps
|
|
|
|
TT_GM_24x = 27,
|
|
|
|
|
|
|
|
// GM 24x with 3/12 degree gaps
|
|
|
|
TT_GM_24x_2 = 74,
|
|
|
|
|
2022-06-20 08:41:33 -07:00
|
|
|
TT_SUBARU_EZ30 = 12,
|
2022-08-28 18:50:17 -07:00
|
|
|
TT_VVT_MAZDA_MYSTERY = 13,
|
2022-06-01 18:24:20 -07:00
|
|
|
UNUSED_21 = 21,
|
|
|
|
UNUSED_34 = 34,
|
|
|
|
|
2021-10-24 11:18:23 -07:00
|
|
|
// 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
|
|
|
|
// do not forget to invoke "gen_config.bat" once you make changes to integration/rusefi_config.txt
|
|
|
|
// todo: one day a hero would integrate some of these things into Makefile in order to reduce manual magic
|
|
|
|
//
|
|
|
|
// Another point: once you add a new trigger, run get_trigger_images.bat which would run rusefi_test.exe from unit_tests
|
|
|
|
//
|
2022-05-06 05:25:44 -07:00
|
|
|
TT_UNUSED = 75, // this is used if we want to iterate over all trigger types
|
2021-10-24 11:18:23 -07:00
|
|
|
|
2022-05-02 01:38:04 -07:00
|
|
|
// java code generator handles this value in a special way
|
|
|
|
// also looks like 2 enums are either 1 byte or 4 bytes
|
|
|
|
Force_4_bytes_size_trigger_type = 70000,
|
2021-10-24 11:18:23 -07:00
|
|
|
} trigger_type_e; // TriggerProcessor.java has this "trigger_type_e" name hard-coded!
|
2021-10-28 09:12:45 -07:00
|
|
|
|
|
|
|
|
|
|
|
typedef enum {
|
|
|
|
TS_DEBUG_MODE = 0,
|
|
|
|
TS_COMMAND_1 = 1,
|
|
|
|
TS_GRAB_TPS_CLOSED = 2,
|
|
|
|
TS_GRAB_TPS_WOT = 3,
|
|
|
|
TS_COMMAND_4 = 4,
|
|
|
|
TS_COMMAND_5 = 5,
|
|
|
|
TS_GRAB_PEDAL_UP = 6,
|
|
|
|
TS_GRAB_PEDAL_WOT = 7,
|
|
|
|
TS_RESET_TLE8888 = 8,
|
|
|
|
TS_COMMAND_9 = 9,
|
|
|
|
TS_WRITE_FLASH = 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,
|
2021-10-28 10:49:44 -07:00
|
|
|
TS_CLEAR_WARNINGS = 17,
|
2021-10-28 09:29:56 -07:00
|
|
|
TS_IGNITION_CATEGORY = 18,
|
2021-10-28 09:12:45 -07:00
|
|
|
TS_INJECTOR_CATEGORY = 19,
|
2021-10-28 10:49:44 -07:00
|
|
|
TS_X14 = 20,
|
2022-08-24 09:02:22 -07:00
|
|
|
// 0x15
|
2021-11-11 17:27:45 -08:00
|
|
|
TS_WIDEBAND = 21,
|
|
|
|
TS_BENCH_CATEGORY = 22,
|
|
|
|
TS_UNUSED_23 = 23,
|
|
|
|
TS_UNUSED_CJ125_CALIB = 24,
|
2022-08-24 09:11:11 -07:00
|
|
|
TS_SOLENOID_CATEGORY = 25,
|
2021-11-11 17:31:46 -08:00
|
|
|
TS_UNUSED_26 = 26,
|
|
|
|
TS_UNUSED_27 = 27,
|
|
|
|
TS_UNUSED_28 = 28,
|
2021-11-11 17:38:49 -08:00
|
|
|
TS_UNUSED_29 = 29,
|
2022-08-24 09:02:22 -07:00
|
|
|
TS_X30 = 30,
|
|
|
|
TS_X31 = 31,
|
2021-11-11 17:27:45 -08:00
|
|
|
TS_CRAZY = 32,
|
2022-08-24 09:02:22 -07:00
|
|
|
TS_LUA_OUTPUT_CATEGORY = 33,
|
2021-10-28 09:12:45 -07:00
|
|
|
} ts_command_e;
|
2021-11-10 17:39:54 -08:00
|
|
|
|
|
|
|
typedef enum {
|
2021-11-11 17:27:45 -08:00
|
|
|
BENCH_MAIN_RELAY, // 0
|
2021-11-10 17:39:54 -08:00
|
|
|
BENCH_FUEL_PUMP,
|
|
|
|
BENCH_STARTER_ENABLE_RELAY,
|
|
|
|
BENCH_STARTER_DISABLE_RELAY,
|
|
|
|
BENCH_FAN_RELAY,
|
2021-11-11 17:27:45 -08:00
|
|
|
BENCH_FAN_RELAY_2, // 5
|
2021-11-10 17:39:54 -08:00
|
|
|
BENCH_AC_COMPRESSOR_RELAY,
|
|
|
|
BENCH_CHECK_ENGINE_LIGHT,
|
2021-11-11 17:27:45 -08:00
|
|
|
BENCH_IDLE_VALVE, // 8
|
2021-11-10 17:39:54 -08:00
|
|
|
BENCH_HPFP_VALVE,
|
|
|
|
BENCH_GPPWM1_VALVE,
|
|
|
|
BENCH_GPPWM2_VALVE,
|
|
|
|
BENCH_GPPWM3_VALVE,
|
|
|
|
BENCH_GPPWM4_VALVE,
|
|
|
|
BENCH_SECOND_IDLE_VALVE,
|
|
|
|
} bench_mode_e;
|