rusEFI
The most advanced open source ECU
trigger_state_generated.h
Go to the documentation of this file.
1 // this section was generated automatically by rusEFI tool config_definition_base.jar based on (unknown script) controllers/trigger/trigger_state.txt Wed Jan 03 20:30:10 UTC 2024
2 // by class com.rusefi.output.CHeaderConsumer
3 // begin
4 #pragma once
5 #include "rusefi_types.h"
6 // start of trigger_state_s
8  /**
9  * sync: Crank sync counter
10  * Usually matches crank revolutions
11  * offset 0
12  */
13  uint32_t crankSynchronizationCounter = (uint32_t)0;
14  /**
15  * offset 4
16  */
17  float vvtSyncGapRatio = (float)0;
18  /**
19  * units: us
20  * offset 8
21  */
22  uint32_t vvtToothDurations0 = (uint32_t)0;
23  /**
24  * units: sync: Primary Cam Position
25  * offset 12
26  */
27  float vvtCurrentPosition = (float)0;
28  /**
29  * units: sync: Cam Tooth Position
30  * offset 16
31  */
32  float vvtToothPosition[4];
33  /**
34  * @@GAUGE_NAME_TRG_GAP@@
35  * offset 32
36  */
37  float triggerSyncGapRatio = (float)0;
38  /**
39  * offset 36
40  */
41  uint8_t triggerStateIndex = (uint8_t)0;
42  /**
43  * offset 37
44  */
45  uint8_t vvtStateIndex = (uint8_t)0;
46  /**
47  * need 4 byte alignment
48  * units: units
49  * offset 38
50  */
51  uint8_t alignmentFill_at_38[2];
52 };
53 static_assert(sizeof(trigger_state_s) == 40);
54 
55 // end
56 // this section was generated automatically by rusEFI tool config_definition_base.jar based on (unknown script) controllers/trigger/trigger_state.txt Wed Jan 03 20:30:10 UTC 2024
uint32_t crankSynchronizationCounter