fome-fw/firmware/controllers/algo/engine_state_generated.h

382 lines
7.0 KiB
C

// this section was generated automatically by rusEFI tool ConfigDefinition.jar based on (unknown script) controllers/algo/engine_state.txt Sun Jan 15 04:27:57 UTC 2023
// by class com.rusefi.output.CHeaderConsumer
// begin
#pragma once
#include "rusefi_types.h"
// start of LuaAdjustments
struct LuaAdjustments {
/**
* offset 0
*/
float fuelAdd = (float)0;
/**
* offset 4
*/
float fuelMult = (float)0;
/**
offset 8 bit 0 */
bool clutchUpState : 1 {};
/**
offset 8 bit 1 */
bool brakePedalState : 1 {};
/**
offset 8 bit 2 */
bool acRequestState : 1 {};
/**
offset 8 bit 3 */
bool luaDisableEtb : 1 {};
/**
offset 8 bit 4 */
bool luaIgnCut : 1 {};
/**
offset 8 bit 5 */
bool unusedBit_7_5 : 1 {};
/**
offset 8 bit 6 */
bool unusedBit_7_6 : 1 {};
/**
offset 8 bit 7 */
bool unusedBit_7_7 : 1 {};
/**
offset 8 bit 8 */
bool unusedBit_7_8 : 1 {};
/**
offset 8 bit 9 */
bool unusedBit_7_9 : 1 {};
/**
offset 8 bit 10 */
bool unusedBit_7_10 : 1 {};
/**
offset 8 bit 11 */
bool unusedBit_7_11 : 1 {};
/**
offset 8 bit 12 */
bool unusedBit_7_12 : 1 {};
/**
offset 8 bit 13 */
bool unusedBit_7_13 : 1 {};
/**
offset 8 bit 14 */
bool unusedBit_7_14 : 1 {};
/**
offset 8 bit 15 */
bool unusedBit_7_15 : 1 {};
/**
offset 8 bit 16 */
bool unusedBit_7_16 : 1 {};
/**
offset 8 bit 17 */
bool unusedBit_7_17 : 1 {};
/**
offset 8 bit 18 */
bool unusedBit_7_18 : 1 {};
/**
offset 8 bit 19 */
bool unusedBit_7_19 : 1 {};
/**
offset 8 bit 20 */
bool unusedBit_7_20 : 1 {};
/**
offset 8 bit 21 */
bool unusedBit_7_21 : 1 {};
/**
offset 8 bit 22 */
bool unusedBit_7_22 : 1 {};
/**
offset 8 bit 23 */
bool unusedBit_7_23 : 1 {};
/**
offset 8 bit 24 */
bool unusedBit_7_24 : 1 {};
/**
offset 8 bit 25 */
bool unusedBit_7_25 : 1 {};
/**
offset 8 bit 26 */
bool unusedBit_7_26 : 1 {};
/**
offset 8 bit 27 */
bool unusedBit_7_27 : 1 {};
/**
offset 8 bit 28 */
bool unusedBit_7_28 : 1 {};
/**
offset 8 bit 29 */
bool unusedBit_7_29 : 1 {};
/**
offset 8 bit 30 */
bool unusedBit_7_30 : 1 {};
/**
offset 8 bit 31 */
bool unusedBit_7_31 : 1 {};
};
static_assert(sizeof(LuaAdjustments) == 12);
// start of speed_density_s
struct speed_density_s {
/**
* speed density
* Rate-of-change limiter is applied to degrees, so we store both Kelvin and degrees.
* offset 0
*/
float tCharge = (float)0;
/**
* offset 4
*/
float tChargeK = (float)0;
/**
* offset 8
*/
floatms_t airFlow = (floatms_t)0;
};
static_assert(sizeof(speed_density_s) == 12);
// start of cranking_fuel_s
struct cranking_fuel_s {
/**
* Fuel: base duration
* Duration of injection, in ms. During cranking we do not account for injector flow, so if you change injectors you would need to change settings.
* Deprecated. Please use '1'.
* TODO: maybe account for injector flow?
* offset 0
*/
floatms_t baseFuel = (floatms_t)0;
/**
* Cranking: CLT coefficient
* offset 4
*/
float coolantTemperatureCoefficient = (float)0;
/**
* offset 8
*/
float tpsCoefficient = (float)0;
/**
* offset 12
*/
float durationCoefficient = (float)0;
/**
* Fuel: Actual injection
* duration based on all coefficients.
* offset 16
*/
floatms_t fuel = (floatms_t)0;
};
static_assert(sizeof(cranking_fuel_s) == 20);
// start of engine_state_s
struct engine_state_s {
/**
* offset 0
*/
LuaAdjustments lua;
/**
* offset 12
*/
speed_density_s sd;
/**
* offset 24
*/
float engineCycleDurationMs = (float)0;
/**
* offset 28
*/
float minRpmKcurrentTPS = (float)0;
/**
* offset 32
*/
uint32_t currentTpsAdc = (uint32_t)0;
/**
* offset 36
*/
float tpsVoltageMCU = (float)0;
/**
* offset 40
*/
float tpsVoltageBoard = (float)0;
/**
* offset 44
*/
float currentBaroCorrectedVE = (float)0;
/**
* offset 48
*/
float injectorFlowCorrection = (float)0;
/**
* @@GAUGE_NAME_FUEL_BARO_CORR@@
* offset 52
*/
float baroCorrection = (float)0;
/**
* offset 56
*/
cranking_fuel_s crankingFuel;
/**
* Detected Board ID
id
* offset 76
*/
int16_t hellenBoardId = (int16_t)0;
/**
* need 4 byte alignment
units
* offset 78
*/
uint8_t alignmentFill_at_78[2];
/**
* @@INDICATOR_NAME_CLUTCH_UP@@
offset 80 bit 0 */
bool clutchUpState : 1 {};
/**
* @@INDICATOR_NAME_CLUTCH_DOWN@@
offset 80 bit 1 */
bool clutchDownState : 1 {};
/**
* @@INDICATOR_NAME_BRAKE_DOWN@@
offset 80 bit 2 */
bool brakePedalState : 1 {};
/**
offset 80 bit 3 */
bool startStopState : 1 {};
/**
offset 80 bit 4 */
bool unusedBit_17_4 : 1 {};
/**
offset 80 bit 5 */
bool unusedBit_17_5 : 1 {};
/**
offset 80 bit 6 */
bool unusedBit_17_6 : 1 {};
/**
offset 80 bit 7 */
bool unusedBit_17_7 : 1 {};
/**
offset 80 bit 8 */
bool unusedBit_17_8 : 1 {};
/**
offset 80 bit 9 */
bool unusedBit_17_9 : 1 {};
/**
offset 80 bit 10 */
bool unusedBit_17_10 : 1 {};
/**
offset 80 bit 11 */
bool unusedBit_17_11 : 1 {};
/**
offset 80 bit 12 */
bool unusedBit_17_12 : 1 {};
/**
offset 80 bit 13 */
bool unusedBit_17_13 : 1 {};
/**
offset 80 bit 14 */
bool unusedBit_17_14 : 1 {};
/**
offset 80 bit 15 */
bool unusedBit_17_15 : 1 {};
/**
offset 80 bit 16 */
bool unusedBit_17_16 : 1 {};
/**
offset 80 bit 17 */
bool unusedBit_17_17 : 1 {};
/**
offset 80 bit 18 */
bool unusedBit_17_18 : 1 {};
/**
offset 80 bit 19 */
bool unusedBit_17_19 : 1 {};
/**
offset 80 bit 20 */
bool unusedBit_17_20 : 1 {};
/**
offset 80 bit 21 */
bool unusedBit_17_21 : 1 {};
/**
offset 80 bit 22 */
bool unusedBit_17_22 : 1 {};
/**
offset 80 bit 23 */
bool unusedBit_17_23 : 1 {};
/**
offset 80 bit 24 */
bool unusedBit_17_24 : 1 {};
/**
offset 80 bit 25 */
bool unusedBit_17_25 : 1 {};
/**
offset 80 bit 26 */
bool unusedBit_17_26 : 1 {};
/**
offset 80 bit 27 */
bool unusedBit_17_27 : 1 {};
/**
offset 80 bit 28 */
bool unusedBit_17_28 : 1 {};
/**
offset 80 bit 29 */
bool unusedBit_17_29 : 1 {};
/**
offset 80 bit 30 */
bool unusedBit_17_30 : 1 {};
/**
offset 80 bit 31 */
bool unusedBit_17_31 : 1 {};
/**
* offset 84
*/
uint32_t startStopStateToggleCounter = (uint32_t)0;
/**
* offset 88
*/
float egtValue1 = (float)0;
/**
* offset 92
*/
float egtValue2 = (float)0;
/**
* User-defined RPM hard limit
rpm
* offset 96
*/
int16_t desiredRpmLimit = (int16_t)0;
/**
* need 4 byte alignment
units
* offset 98
*/
uint8_t alignmentFill_at_98[2];
/**
* offset 100
*/
uint32_t fuelInjectionCounter = (uint32_t)0;
/**
* offset 104
*/
uint32_t sparkCounter = (uint32_t)0;
/**
* @@GAUGE_NAME_FUEL_LOAD@@
* offset 108
*/
float fuelingLoad = (float)0;
/**
* @@GAUGE_NAME_IGNITION_LOAD@@
* offset 112
*/
float ignitionLoad = (float)0;
/**
%
* offset 116
*/
scaled_channel<uint16_t, 100, 1> veTableYAxis = (uint16_t)0;
/**
* need 4 byte alignment
units
* offset 118
*/
uint8_t alignmentFill_at_118[2];
};
static_assert(sizeof(engine_state_s) == 120);
// end
// this section was generated automatically by rusEFI tool ConfigDefinition.jar based on (unknown script) controllers/algo/engine_state.txt Sun Jan 15 04:27:57 UTC 2023