rusEFI
The most advanced open source ECU
Loading...
Searching...
No Matches
engine_state_generated.h
Go to the documentation of this file.
1// this section was generated automatically by rusEFI tool config_definition_base-all.jar based on (unknown script) controllers/algo/engine_state.txt
2// by class com.rusefi.output.CHeaderConsumer
3// begin
4#pragma once
5#include "rusefi_types.h"
6// start of LuaAdjustments
8 /**
9 * Lua: Fuel add
10 * units: g
11 * offset 0
12 */
13 float fuelAdd = (float)0;
14 /**
15 * Lua: Fuel mult
16 * offset 4
17 */
18 float fuelMult = (float)0;
19 /**
20 offset 8 bit 0 */
21 bool clutchUpState : 1 {};
22 /**
23 offset 8 bit 1 */
24 bool brakePedalState : 1 {};
25 /**
26 offset 8 bit 2 */
27 bool acRequestState : 1 {};
28 /**
29 offset 8 bit 3 */
30 bool luaDisableEtb : 1 {};
31 /**
32 offset 8 bit 4 */
33 bool luaIgnCut : 1 {};
34 /**
35 offset 8 bit 5 */
36 bool luaFuelCut : 1 {};
37 /**
38 offset 8 bit 6 */
39 bool clutchDownState : 1 {};
40 /**
41 offset 8 bit 7 */
43 /**
44 offset 8 bit 8 */
46 /**
47 offset 8 bit 9 */
48 bool unusedBit_11_9 : 1 {};
49 /**
50 offset 8 bit 10 */
51 bool unusedBit_11_10 : 1 {};
52 /**
53 offset 8 bit 11 */
54 bool unusedBit_11_11 : 1 {};
55 /**
56 offset 8 bit 12 */
57 bool unusedBit_11_12 : 1 {};
58 /**
59 offset 8 bit 13 */
60 bool unusedBit_11_13 : 1 {};
61 /**
62 offset 8 bit 14 */
63 bool unusedBit_11_14 : 1 {};
64 /**
65 offset 8 bit 15 */
66 bool unusedBit_11_15 : 1 {};
67 /**
68 offset 8 bit 16 */
69 bool unusedBit_11_16 : 1 {};
70 /**
71 offset 8 bit 17 */
72 bool unusedBit_11_17 : 1 {};
73 /**
74 offset 8 bit 18 */
75 bool unusedBit_11_18 : 1 {};
76 /**
77 offset 8 bit 19 */
78 bool unusedBit_11_19 : 1 {};
79 /**
80 offset 8 bit 20 */
81 bool unusedBit_11_20 : 1 {};
82 /**
83 offset 8 bit 21 */
84 bool unusedBit_11_21 : 1 {};
85 /**
86 offset 8 bit 22 */
87 bool unusedBit_11_22 : 1 {};
88 /**
89 offset 8 bit 23 */
90 bool unusedBit_11_23 : 1 {};
91 /**
92 offset 8 bit 24 */
93 bool unusedBit_11_24 : 1 {};
94 /**
95 offset 8 bit 25 */
96 bool unusedBit_11_25 : 1 {};
97 /**
98 offset 8 bit 26 */
99 bool unusedBit_11_26 : 1 {};
100 /**
101 offset 8 bit 27 */
102 bool unusedBit_11_27 : 1 {};
103 /**
104 offset 8 bit 28 */
105 bool unusedBit_11_28 : 1 {};
106 /**
107 offset 8 bit 29 */
108 bool unusedBit_11_29 : 1 {};
109 /**
110 offset 8 bit 30 */
111 bool unusedBit_11_30 : 1 {};
112 /**
113 offset 8 bit 31 */
114 bool unusedBit_11_31 : 1 {};
115};
116static_assert(sizeof(LuaAdjustments) == 12);
117
118// start of speed_density_s
120 /**
121 * Air: Charge temperature estimate
122 * units: deg C
123 * offset 0
124 */
125 scaled_channel<int16_t, 100, 1> tCharge = (int16_t)0;
126 /**
127 * need 4 byte alignment
128 * units: units
129 * offset 2
130 */
131 uint8_t alignmentFill_at_2[2] = {};
132 /**
133 * Air: Charge temperature estimate K
134 * offset 4
135 */
136 float tChargeK = (float)0;
137};
138static_assert(sizeof(speed_density_s) == 8);
139
140// start of cranking_fuel_s
142 /**
143 * Fuel: cranking CLT mult
144 * offset 0
145 */
147 /**
148 * Fuel: cranking TPS mult
149 * offset 4
150 */
152 /**
153 * Fuel: Cranking cycle base mass
154 * units: mg
155 * offset 8
156 */
157 scaled_channel<uint16_t, 100, 1> baseFuel = (uint16_t)0;
158 /**
159 * Fuel: Cranking cycle mass
160 * units: mg
161 * offset 10
162 */
163 scaled_channel<uint16_t, 100, 1> fuel = (uint16_t)0;
164};
165static_assert(sizeof(cranking_fuel_s) == 12);
166
167// start of engine_state_s
169 /**
170 * offset 0
171 */
172 float injectionMass[MAX_CYLINDER_COUNT] = {};
173 /**
174 * offset 48
175 */
177 /**
178 * offset 60
179 */
181 /**
182 * offset 68
183 */
185 /**
186 * @@GAUGE_NAME_FUEL_BARO_CORR@@
187 * offset 80
188 */
190 /**
191 * Detected Board ID
192 * units: id
193 * offset 84
194 */
195 int16_t hellenBoardId = (int16_t)0;
196 /**
197 * @@INDICATOR_NAME_CLUTCH_UP@@
198 * offset 86
199 */
200 int8_t clutchUpState = (int8_t)0;
201 /**
202 * @@INDICATOR_NAME_BRAKE_DOWN@@
203 * offset 87
204 */
205 int8_t brakePedalState = (int8_t)0;
206 /**
207 * offset 88
208 */
209 int8_t startStopState = (int8_t)0;
210 /**
211 * offset 89
212 */
213 int8_t smartChipState = (int8_t)0;
214 /**
215 * offset 90
216 */
217 int8_t smartChipRestartCounter = (int8_t)0;
218 /**
219 * offset 91
220 */
221 int8_t smartChipAliveCounter = (int8_t)0;
222 /**
223 offset 92 bit 0 */
225 /**
226 * Harley ACR Active
227 offset 92 bit 1 */
228 bool acrActive : 1 {};
229 /**
230 offset 92 bit 2 */
232 /**
233 offset 92 bit 3 */
235 /**
236 offset 92 bit 4 */
237 bool luaDigitalState0 : 1 {};
238 /**
239 offset 92 bit 5 */
240 bool luaDigitalState1 : 1 {};
241 /**
242 offset 92 bit 6 */
243 bool luaDigitalState2 : 1 {};
244 /**
245 offset 92 bit 7 */
246 bool luaDigitalState3 : 1 {};
247 /**
248 * @@INDICATOR_NAME_CLUTCH_DOWN@@
249 offset 92 bit 8 */
250 bool clutchDownState : 1 {};
251 /**
252 offset 92 bit 9 */
253 bool unusedBit_21_9 : 1 {};
254 /**
255 offset 92 bit 10 */
256 bool unusedBit_21_10 : 1 {};
257 /**
258 offset 92 bit 11 */
259 bool unusedBit_21_11 : 1 {};
260 /**
261 offset 92 bit 12 */
262 bool unusedBit_21_12 : 1 {};
263 /**
264 offset 92 bit 13 */
265 bool unusedBit_21_13 : 1 {};
266 /**
267 offset 92 bit 14 */
268 bool unusedBit_21_14 : 1 {};
269 /**
270 offset 92 bit 15 */
271 bool unusedBit_21_15 : 1 {};
272 /**
273 offset 92 bit 16 */
274 bool unusedBit_21_16 : 1 {};
275 /**
276 offset 92 bit 17 */
277 bool unusedBit_21_17 : 1 {};
278 /**
279 offset 92 bit 18 */
280 bool unusedBit_21_18 : 1 {};
281 /**
282 offset 92 bit 19 */
283 bool unusedBit_21_19 : 1 {};
284 /**
285 offset 92 bit 20 */
286 bool unusedBit_21_20 : 1 {};
287 /**
288 offset 92 bit 21 */
289 bool unusedBit_21_21 : 1 {};
290 /**
291 offset 92 bit 22 */
292 bool unusedBit_21_22 : 1 {};
293 /**
294 offset 92 bit 23 */
295 bool unusedBit_21_23 : 1 {};
296 /**
297 offset 92 bit 24 */
298 bool unusedBit_21_24 : 1 {};
299 /**
300 offset 92 bit 25 */
301 bool unusedBit_21_25 : 1 {};
302 /**
303 offset 92 bit 26 */
304 bool unusedBit_21_26 : 1 {};
305 /**
306 offset 92 bit 27 */
307 bool unusedBit_21_27 : 1 {};
308 /**
309 offset 92 bit 28 */
310 bool unusedBit_21_28 : 1 {};
311 /**
312 offset 92 bit 29 */
313 bool unusedBit_21_29 : 1 {};
314 /**
315 offset 92 bit 30 */
316 bool unusedBit_21_30 : 1 {};
317 /**
318 offset 92 bit 31 */
319 bool unusedBit_21_31 : 1 {};
320 /**
321 * offset 96
322 */
323 uint32_t startStopStateToggleCounter = (uint32_t)0;
324 /**
325 * offset 100
326 */
327 float currentVe = (float)0;
328 /**
329 * offset 104
330 */
332 /**
333 * offset 108
334 */
336 /**
337 * offset 112
338 */
340 /**
341 * Fuel: Injection counter
342 * offset 116
343 */
344 uint32_t fuelInjectionCounter = (uint32_t)0;
345 /**
346 * Ign: Spark counter
347 * offset 120
348 */
349 uint32_t globalSparkCounter = (uint32_t)0;
350 /**
351 * @@GAUGE_NAME_FUEL_LOAD@@
352 * offset 124
353 */
354 float fuelingLoad = (float)0;
355 /**
356 * @@GAUGE_NAME_IGNITION_LOAD@@
357 * offset 128
358 */
359 float ignitionLoad = (float)0;
360 /**
361 * units: %
362 * offset 132
363 */
364 scaled_channel<uint16_t, 100, 1> veTableYAxis = (uint16_t)0;
365 /**
366 * offset 134
367 */
368 uint8_t overDwellCounter = (uint8_t)0;
369 /**
370 * offset 135
371 */
372 uint8_t overDwellNotScheduledCounter = (uint8_t)0;
373 /**
374 * offset 136
375 */
376 uint8_t sparkOutOfOrderCounter = (uint8_t)0;
377 /**
378 * need 4 byte alignment
379 * units: units
380 * offset 137
381 */
382 uint8_t alignmentFill_at_137[3] = {};
383 /**
384 * STFT: Bank
385 * units: %
386 * offset 140
387 */
388 float stftCorrection[FT_BANK_COUNT] = {};
389};
390static_assert(sizeof(engine_state_s) == 148);
391
392// end
393// this section was generated automatically by rusEFI tool config_definition_base-all.jar based on (unknown script) controllers/algo/engine_state.txt
scaled_channel< uint16_t, 100, 1 > baseFuel
scaled_channel< uint16_t, 100, 1 > fuel
float stftCorrection[FT_BANK_COUNT]
float injectionMass[MAX_CYLINDER_COUNT]
cranking_fuel_s crankingFuel
scaled_channel< uint16_t, 100, 1 > veTableYAxis
scaled_channel< int16_t, 100, 1 > tCharge