rusefi-1/firmware/controllers/trigger/trigger_state_generated.h

51 lines
1.2 KiB
C
Raw Normal View History

2022-05-08 06:06:44 -07:00
// this section was generated automatically by rusEFI tool ConfigDefinition.jar based on (unknown script) controllers/trigger/trigger_state.txt Sun May 08 13:03:46 UTC 2022
2019-09-03 16:30:51 -07:00
// by class com.rusefi.output.CHeaderConsumer
// begin
2020-07-05 23:07:22 -07:00
#pragma once
2019-09-03 16:30:51 -07:00
#include "rusefi_types.h"
// start of trigger_state_s
struct trigger_state_s {
/**
2022-05-08 06:06:44 -07:00
* Crank revolution counter
2019-09-03 16:30:51 -07:00
* offset 0
*/
2022-05-08 06:06:44 -07:00
uint32_t totalRevolutionCounter = (uint32_t)0;
2021-12-09 18:59:51 -08:00
/**
* offset 4
*/
2022-05-08 06:06:44 -07:00
scaled_channel<float, 1, 1> vvtSyncGapRatio = (float)0;
2022-05-08 05:05:34 -07:00
/**
* offset 8
*/
2022-05-08 06:06:44 -07:00
scaled_channel<float, 1, 1> vvtCurrentPosition = (float)0;
2022-05-08 05:05:34 -07:00
/**
2022-05-08 06:06:44 -07:00
* @@GAUGE_NAME_TRG_GAP@@
2022-05-08 05:05:34 -07:00
* offset 12
*/
2022-05-08 06:06:44 -07:00
scaled_channel<float, 1, 1> triggerSyncGapRatio = (float)0;
2022-05-08 05:05:34 -07:00
/**
* offset 16
*/
2022-05-08 06:06:44 -07:00
float triggerActualSyncGapRatio = (float)0;
/**
* offset 20
*/
2022-05-08 05:05:34 -07:00
uint8_t triggerStateIndex = (uint8_t)0;
/**
2022-05-08 06:06:44 -07:00
* offset 21
2022-05-08 05:05:34 -07:00
*/
uint8_t vvtCounter = (uint8_t)0;
/**
2022-05-08 06:06:44 -07:00
* offset 22
2022-05-08 05:05:34 -07:00
*/
uint8_t vvtSyncCounter = (uint8_t)0;
/**
2022-05-08 06:06:44 -07:00
* offset 23
2022-05-08 05:05:34 -07:00
*/
uint8_t vvtStateIndex = (uint8_t)0;
2019-09-03 16:30:51 -07:00
};
2022-05-08 06:06:44 -07:00
static_assert(sizeof(trigger_state_s) == 24);
2019-09-03 16:30:51 -07:00
// end
2022-05-08 06:06:44 -07:00
// this section was generated automatically by rusEFI tool ConfigDefinition.jar based on (unknown script) controllers/trigger/trigger_state.txt Sun May 08 13:03:46 UTC 2022