|
rusEFI
The most advanced open source ECU
|
Fundamental rusEFI enumerable types live here.
This and few over headers are part of integration API between C/C++ and code generator for memory meta and java code. TODO: move enums which should not be visible outside of the firmware out of 'integration API' headers like this one
Definition in file rusefi_enums.h.
Enumerations | |
| enum class | TriggerWheel : uint8_t { T_PRIMARY = 0 , T_SECONDARY = 1 } |
| enum class | idle_mode_e : uint8_t { IM_AUTO = 0 , IM_MANUAL = 1 } |
| enum class | SentEtbType : uint8_t { NONE = 0 , GM_TYPE_1 = 1 , FORD_TYPE_1 = 2 , CUSTOM = 3 } |
| enum class | SentFuelHighPressureType : uint8_t { NONE = 0 , GM_TYPE = 1 } |
| enum class | SentInput : uint8_t { NONE = 0 , INPUT1 = 1 , INPUT2 = 2 , INPUT3 = 3 , INPUT4 = 4 , INPUT5 = 5 , INPUT6 = 6 , INPUT7 = 7 } |
| enum class | CanGpioType : uint8_t { NONE = 0 , DRT = 1 , MS = 2 } |
| enum class | MsIoBoxId : uint8_t { OFF = 0 , ID200 = 1 , ID220 = 2 , ID240 = 3 } |
| enum class | MsIoBoxVss : uint8_t { OFF = 0 , VR12 = 1 , HALL34 = 2 , ALL1234 = 3 } |
| enum class | UiMode : uint8_t { FULL = 0 , INSTALLATION = 1 , TUNING = 2 } |
| enum | operation_mode_e { OM_NONE = 0 , FOUR_STROKE_CRANK_SENSOR = 1 , FOUR_STROKE_CAM_SENSOR = 2 , TWO_STROKE = 3 , FOUR_STROKE_SYMMETRICAL_CRANK_SENSOR = 4 , FOUR_STROKE_THREE_TIMES_CRANK_SENSOR = 5 , FOUR_STROKE_TWELVE_TIMES_CRANK_SENSOR = 6 , FOUR_STROKE_SIX_TIMES_CRANK_SENSOR = 7 } |
| enum | gear_e { REVERSE = -1 , NEUTRAL = 0 , GEAR_1 = 1 , GEAR_2 = 2 , GEAR_3 = 3 , GEAR_4 = 4 } |
| enum class | TsCalMode : uint8_t { None = 0 , Tps1Max = 1 , Tps1Min = 2 , EtbKp = 3 , EtbKi = 4 , EtbKd = 5 , Tps1SecondaryMax = 6 , Tps1SecondaryMin = 7 , Tps2Max = 8 , Tps2Min = 9 , Tps2SecondaryMax = 10 , Tps2SecondaryMin = 11 , PedalMin = 12 , PedalMax = 13 , EwgPosMax = 14 , EwgPosMin = 15 } |
| enum class | GearControllerMode : uint8_t { None = 0 , ButtonShift = 1 , Automatic = 2 , Generic = 3 } |
| enum class | TransmissionControllerMode : uint8_t { None = 0 , SimpleTransmissionController = 1 , Generic4 = 2 , Gm4l6x = 3 } |
| enum class | InjectionTimingMode : uint8_t { End = 0 , Start = 1 , Center = 2 } |
| enum class | SelectedGear : uint8_t { Invalid = 0 , ManualPlus = 1 , ManualMinus = 2 , Park = 3 , Reverse = 4 , Neutral = 5 , Drive = 6 , Manual = 7 , Manual3 = 8 , Manual2 = 9 , Manual1 = 10 , Low = 11 } |
| enum class | RotationalCutMode : uint8_t { Spark = 0 , Fuel = 1 , Both = 2 } |
Functions | |
| enum | __attribute__ ((__packed__)) |
| Ignition Mode. | |
|
strong |
| Enumerator | |
|---|---|
| NONE | |
| DRT | |
| MS | |
Definition at line 207 of file rusefi_enums.h.
| enum gear_e |
|
strong |
| Enumerator | |
|---|---|
| None | |
| ButtonShift | |
| Automatic | |
| Generic | |
Definition at line 827 of file rusefi_enums.h.
|
strong |
Definition at line 169 of file rusefi_enums.h.
|
strong |
| Enumerator | |
|---|---|
| End | |
| Start | |
| Center | |
Definition at line 841 of file rusefi_enums.h.
|
strong |
|
strong |
| enum operation_mode_e |
Definition at line 266 of file rusefi_enums.h.
|
strong |
| Enumerator | |
|---|---|
| Spark | |
| Fuel | |
| Both | |
Definition at line 862 of file rusefi_enums.h.
|
strong |
| Enumerator | |
|---|---|
| Invalid | |
| ManualPlus | |
| ManualMinus | |
| Park | |
| Reverse | |
| Neutral | |
| Drive | |
| Manual | |
| Manual3 | |
| Manual2 | |
| Manual1 | |
| Low | |
Definition at line 847 of file rusefi_enums.h.
|
strong |
| Enumerator | |
|---|---|
| NONE | |
| GM_TYPE_1 | |
| FORD_TYPE_1 | |
| CUSTOM | |
Definition at line 184 of file rusefi_enums.h.
|
strong |
| Enumerator | |
|---|---|
| NONE | |
| GM_TYPE | |
Definition at line 191 of file rusefi_enums.h.
|
strong |
| Enumerator | |
|---|---|
| NONE | |
| INPUT1 | |
| INPUT2 | |
| INPUT3 | |
| INPUT4 | |
| INPUT5 | |
| INPUT6 | |
| INPUT7 | |
Definition at line 196 of file rusefi_enums.h.
|
strong |
| Enumerator | |
|---|---|
| None | |
| SimpleTransmissionController | |
| Generic4 | |
| Gm4l6x | |
Definition at line 834 of file rusefi_enums.h.
|
strong |
| Enumerator | |
|---|---|
| T_PRIMARY | |
| T_SECONDARY | |
Definition at line 48 of file rusefi_enums.h.
|
strong |
| Enumerator | |
|---|---|
| None | |
| Tps1Max | |
| Tps1Min | |
| EtbKp | |
| EtbKi | |
| EtbKd | |
| Tps1SecondaryMax | |
| Tps1SecondaryMin | |
| Tps2Max | |
| Tps2Min | |
| Tps2SecondaryMax | |
| Tps2SecondaryMin | |
| PedalMin | |
| PedalMax | |
| EwgPosMax | |
| EwgPosMin | |
Definition at line 808 of file rusefi_enums.h.
|
strong |
| Enumerator | |
|---|---|
| FULL | |
| INSTALLATION | |
| TUNING | |
Definition at line 227 of file rusefi_enums.h.
| enum __attribute__ | ( | (__packed__) | ) |
Ignition Mode.
See spi3mosiPin See spi2MisoMode
inertia measurement unit, yawn accelerometer By the way both kinds of BOSCH use Housing : TE 1-967640-1, pins 144969-1 seal 967056-1 plug 967067-2
Net Body Computer types
This mode is useful for troubleshooting and research - events are logged but no effects on phase synchronization
Single tooth on the camshaft anywhere in the 720 degree cycle
Toyota 2JZ has three cam tooth. We pick one of these three tooth to synchronize based on the expected angle position of the event
Mazda NB2 has three cam tooth. We synchronize based on gap ratio.
1.8l Toyota 1ZZ-FE https://rusefi.com/forum/viewtopic.php?f=3&t=1735 4 minus one
4 equally spaced no way to sync
4 plus one
GND for logical OFF, VCC for logical ON
GND for logical ON, VCC for logical OFF
logical OFF is floating, logical ON is GND
bit 2 is used as inverted flag, so skip one here
in this mode only SPARKOUT_1_OUTPUT is used
in this mode we use as many coils as we have cylinders
some v12 engines line BMW M70 and M73 run two distributors, one for each bank of cylinders
each cylinder has it's own injector but they all works in parallel
each cylinder has it's own injector, each injector is wired separately
each cylinder has it's own injector but these injectors work in pairs. Injectors could be wired in pairs or separately. Each pair is fired once per engine cycle todo: we might want to implement one additional mode where each pair of injectors is floating twice per engine cycle. todo: this could reduce phase offset from injection to stroke but would not work great for large injectors
only one injector located in throttle body
Mercedes pn: A 006 542 26 18 Almost the same as BOSCH above, but XY only and different CAN IDs
same as innovate LC2 0v->7.35afr, 5v->22.39
Same as AEM 0v->10.0afr 5v->20.0afr
20 to 250 kPa (2.9 to 36.3 psi) 0.2 to 4.9 V OUTPUT
22012AA090
16040749
20 to 105 kPa (2.9 to 15.2 psi) 0.3 to 4.9 V Output
http://rusefi.com/forum/viewtopic.php?f=3&t=906&p=18976#p18976 Toyota 89420-02010
20 to 250 kPa (2.9 to 36.3 psi) 0.25 to 4.875 OUTPUT More precise calibration data for new NXP sensor revisions MPX4250A and MPXA4250A. For an old Freescale MPX4250D use "MT_MPX4250". See https://www.nxp.com/docs/en/data-sheet/MPX4250A.pdf
Bosch 2.5 Bar TMap Map Sensor with IAT 20 kPa at 0.40V, 250 kPa at 4.65V 4 pin: Pin 1 : Sensor Ground Pin 2 : Temp Signal Pin 3 : 5v Pin 4 : Map Signal Volkswagen Passat B6
4 bar
3 bar
This is the default mode in which ECU controls timing dynamically
Fixed timing is useful while you are playing with a timing gun - you need to have fixed timing if you want to install your distributor at some specific angle
Definition at line 1 of file rusefi_enums.h.
| accel_enrichment_mode_e |
Definition at line 803 of file rusefi_enums.h.
Referenced by getInjectionMass().
| air_pressure_sensor_type_e |
Definition at line 494 of file rusefi_enums.h.
| antiLagActivationMode_e |
Definition at line 612 of file rusefi_enums.h.
| boostType_e |
Definition at line 569 of file rusefi_enums.h.
| brain_pin_diag_e |
Definition at line 44 of file rusefi_enums.h.
Referenced by benchOff(), reportPins(), and tle8888_2b_to_diag_with_temp().
| can_baudrate_e |
Definition at line 665 of file rusefi_enums.h.
| can_nbc_e |
Definition at line 545 of file rusefi_enums.h.
Referenced by setCanType().
| can_vss_nbc_e |
Definition at line 383 of file rusefi_enums.h.
Referenced by setCanVss().
| can_wbo_aem_id_e |
Definition at line 728 of file rusefi_enums.h.
Referenced by setDefaultWboSettings().
| can_wbo_re_hwidx_e |
Definition at line 709 of file rusefi_enums.h.
| can_wbo_re_id_e |
Definition at line 697 of file rusefi_enums.h.
Referenced by setDefaultWboSettings().
| can_wbo_re_status_e |
Definition at line 678 of file rusefi_enums.h.
| can_wbo_type_e |
Definition at line 671 of file rusefi_enums.h.
Referenced by AemXSeriesWideband::acceptFrame(), and AemXSeriesWideband::refreshState().
| cranking_condition_e |
Definition at line 524 of file rusefi_enums.h.
| dc_function_e |
Definition at line 757 of file rusefi_enums.h.
| display_mode_e |
Definition at line 149 of file rusefi_enums.h.
| ego_sensor_e |
Definition at line 426 of file rusefi_enums.h.
| ft_region_e |
Definition at line 889 of file rusefi_enums.h.
Referenced by LtftState::load().
| fuel_pressure_sensor_mode_e |
Definition at line 782 of file rusefi_enums.h.
| gppwm_channel_e |
Definition at line 653 of file rusefi_enums.h.
| gppwm_compare_mode_e |
Definition at line 733 of file rusefi_enums.h.
| hpfp_cam_e |
Definition at line 796 of file rusefi_enums.h.
| idle_state_e |
Definition at line 562 of file rusefi_enums.h.
| ignition_mode_e |
Definition at line 324 of file rusefi_enums.h.
Referenced by getCurrentIgnitionMode(), and setIgnitionMode().
| imu_type_e |
Definition at line 404 of file rusefi_enums.h.
| injection_mode_e |
Definition at line 350 of file rusefi_enums.h.
Referenced by getInjectionModeDurationMultiplier(), setCrankingInjectionMode(), setInjectionMode(), and InjectionEvent::update().
| injector_compensation_mode_e |
Definition at line 776 of file rusefi_enums.h.
| injector_pressure_type_e |
Definition at line 769 of file rusefi_enums.h.
| InjectorNonlinearMode |
Definition at line 788 of file rusefi_enums.h.
| launchActivationMode_e |
Definition at line 577 of file rusefi_enums.h.
| load_override_e |
Definition at line 747 of file rusefi_enums.h.
| lua_gauge_e |
Definition at line 600 of file rusefi_enums.h.
| lua_gauge_meaning_e |
Definition at line 605 of file rusefi_enums.h.
| mc33810maxDwellTimer_e |
Definition at line 167 of file rusefi_enums.h.
| nitrous_arming_method_e |
Definition at line 589 of file rusefi_enums.h.
| pin_input_mode_e |
Definition at line 259 of file rusefi_enums.h.
Referenced by NitrousController::checkTriggerPinState().
| pin_output_mode_e |
Definition at line 247 of file rusefi_enums.h.
Referenced by RegisteredOutputPin::init(), RegisteredOutputPin::isPinConfigurationChanged(), and startTriggerEmulatorPins().
| spi_device_e |
Definition at line 372 of file rusefi_enums.h.
| stepper_num_micro_steps_e |
Definition at line 764 of file rusefi_enums.h.
| stft_state_e |
Definition at line 882 of file rusefi_enums.h.
| tChargeMode_e |
Definition at line 552 of file rusefi_enums.h.
| timing_mode_e |
Definition at line 517 of file rusefi_enums.h.
| tle8888_mode_e |
Definition at line 157 of file rusefi_enums.h.
| torqueReductionActivationMode_e |
Definition at line 584 of file rusefi_enums.h.
| uart_device_e |
Definition at line 358 of file rusefi_enums.h.
| ve_override_e |
Definition at line 739 of file rusefi_enums.h.
| vvt_mode_e |
Definition at line 141 of file rusefi_enums.h.
Referenced by adjustCrankPhase(), and setValue().