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 duration mult
154 * offset 8
155 */
157 /**
158 * Fuel: Cranking cycle mass
159 * units: mg
160 * offset 12
161 */
162 scaled_channel<uint16_t, 100, 1> fuel = (uint16_t)0;
163 /**
164 * need 4 byte alignment
165 * units: units
166 * offset 14
167 */
168 uint8_t alignmentFill_at_14[2] = {};
169};
170static_assert(sizeof(cranking_fuel_s) == 16);
171
172// start of engine_state_s
174 /**
175 * offset 0
176 */
178 /**
179 * offset 12
180 */
182 /**
183 * offset 20
184 */
186 /**
187 * @@GAUGE_NAME_FUEL_BARO_CORR@@
188 * offset 36
189 */
191 /**
192 * Detected Board ID
193 * units: id
194 * offset 40
195 */
196 int16_t hellenBoardId = (int16_t)0;
197 /**
198 * @@INDICATOR_NAME_CLUTCH_UP@@
199 * offset 42
200 */
201 int8_t clutchUpState = (int8_t)0;
202 /**
203 * @@INDICATOR_NAME_BRAKE_DOWN@@
204 * offset 43
205 */
206 int8_t brakePedalState = (int8_t)0;
207 /**
208 * offset 44
209 */
210 int8_t startStopState = (int8_t)0;
211 /**
212 * offset 45
213 */
214 int8_t smartChipState = (int8_t)0;
215 /**
216 * offset 46
217 */
218 int8_t smartChipRestartCounter = (int8_t)0;
219 /**
220 * offset 47
221 */
222 int8_t smartChipAliveCounter = (int8_t)0;
223 /**
224 offset 48 bit 0 */
226 /**
227 * Harley ACR Active
228 offset 48 bit 1 */
229 bool acrActive : 1 {};
230 /**
231 offset 48 bit 2 */
233 /**
234 offset 48 bit 3 */
236 /**
237 offset 48 bit 4 */
238 bool luaDigitalState0 : 1 {};
239 /**
240 offset 48 bit 5 */
241 bool luaDigitalState1 : 1 {};
242 /**
243 offset 48 bit 6 */
244 bool luaDigitalState2 : 1 {};
245 /**
246 offset 48 bit 7 */
247 bool luaDigitalState3 : 1 {};
248 /**
249 * @@INDICATOR_NAME_CLUTCH_DOWN@@
250 offset 48 bit 8 */
251 bool clutchDownState : 1 {};
252 /**
253 offset 48 bit 9 */
254 bool unusedBit_20_9 : 1 {};
255 /**
256 offset 48 bit 10 */
257 bool unusedBit_20_10 : 1 {};
258 /**
259 offset 48 bit 11 */
260 bool unusedBit_20_11 : 1 {};
261 /**
262 offset 48 bit 12 */
263 bool unusedBit_20_12 : 1 {};
264 /**
265 offset 48 bit 13 */
266 bool unusedBit_20_13 : 1 {};
267 /**
268 offset 48 bit 14 */
269 bool unusedBit_20_14 : 1 {};
270 /**
271 offset 48 bit 15 */
272 bool unusedBit_20_15 : 1 {};
273 /**
274 offset 48 bit 16 */
275 bool unusedBit_20_16 : 1 {};
276 /**
277 offset 48 bit 17 */
278 bool unusedBit_20_17 : 1 {};
279 /**
280 offset 48 bit 18 */
281 bool unusedBit_20_18 : 1 {};
282 /**
283 offset 48 bit 19 */
284 bool unusedBit_20_19 : 1 {};
285 /**
286 offset 48 bit 20 */
287 bool unusedBit_20_20 : 1 {};
288 /**
289 offset 48 bit 21 */
290 bool unusedBit_20_21 : 1 {};
291 /**
292 offset 48 bit 22 */
293 bool unusedBit_20_22 : 1 {};
294 /**
295 offset 48 bit 23 */
296 bool unusedBit_20_23 : 1 {};
297 /**
298 offset 48 bit 24 */
299 bool unusedBit_20_24 : 1 {};
300 /**
301 offset 48 bit 25 */
302 bool unusedBit_20_25 : 1 {};
303 /**
304 offset 48 bit 26 */
305 bool unusedBit_20_26 : 1 {};
306 /**
307 offset 48 bit 27 */
308 bool unusedBit_20_27 : 1 {};
309 /**
310 offset 48 bit 28 */
311 bool unusedBit_20_28 : 1 {};
312 /**
313 offset 48 bit 29 */
314 bool unusedBit_20_29 : 1 {};
315 /**
316 offset 48 bit 30 */
317 bool unusedBit_20_30 : 1 {};
318 /**
319 offset 48 bit 31 */
320 bool unusedBit_20_31 : 1 {};
321 /**
322 * offset 52
323 */
324 uint32_t startStopStateToggleCounter = (uint32_t)0;
325 /**
326 * offset 56
327 */
329 /**
330 * offset 60
331 */
333 /**
334 * offset 64
335 */
337 /**
338 * Fuel: Injection counter
339 * offset 68
340 */
341 uint32_t fuelInjectionCounter = (uint32_t)0;
342 /**
343 * Ign: Spark counter
344 * offset 72
345 */
346 uint32_t globalSparkCounter = (uint32_t)0;
347 /**
348 * @@GAUGE_NAME_FUEL_LOAD@@
349 * offset 76
350 */
351 float fuelingLoad = (float)0;
352 /**
353 * @@GAUGE_NAME_IGNITION_LOAD@@
354 * offset 80
355 */
356 float ignitionLoad = (float)0;
357 /**
358 * units: %
359 * offset 84
360 */
361 scaled_channel<uint16_t, 100, 1> veTableYAxis = (uint16_t)0;
362 /**
363 * offset 86
364 */
365 uint8_t overDwellCounter = (uint8_t)0;
366 /**
367 * offset 87
368 */
369 uint8_t overDwellNotScheduledCounter = (uint8_t)0;
370 /**
371 * offset 88
372 */
373 uint8_t sparkOutOfOrderCounter = (uint8_t)0;
374 /**
375 * need 4 byte alignment
376 * units: units
377 * offset 89
378 */
379 uint8_t alignmentFill_at_89[3] = {};
380};
381static_assert(sizeof(engine_state_s) == 92);
382
383// end
384// 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 > fuel
cranking_fuel_s crankingFuel
scaled_channel< uint16_t, 100, 1 > veTableYAxis
scaled_channel< int16_t, 100, 1 > tCharge