rusefi/firmware/controllers/trigger/trigger_state_generated.h

53 lines
1.2 KiB
C
Raw Normal View History

2023-03-30 19:46:09 -07:00
// this section was generated automatically by rusEFI tool ConfigDefinition.jar based on (unknown script) controllers/trigger/trigger_state.txt Fri Mar 31 02:45:22 UTC 2023
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 {
/**
2023-03-30 19:46:09 -07:00
* sync: Crank sync counter
2022-09-07 19:41:09 -07:00
* Usually matches crank revolutions
2019-09-03 16:30:51 -07:00
* offset 0
*/
uint32_t crankSynchronizationCounter = (uint32_t)0;
2021-12-09 18:59:51 -08:00
/**
* offset 4
*/
2022-10-08 19:22:51 -07:00
float vvtSyncGapRatio = (float)0;
2022-05-08 05:05:34 -07:00
/**
2023-03-21 06:46:54 -07:00
us
2022-05-08 05:05:34 -07:00
* offset 8
*/
2023-03-21 06:46:54 -07:00
uint32_t vvtToothDurations0 = (uint32_t)0;
2023-03-04 11:08:02 -08:00
/**
* offset 12
*/
2022-10-08 19:22:51 -07:00
float vvtCurrentPosition = (float)0;
2022-05-08 05:05:34 -07:00
/**
2022-05-08 06:06:44 -07:00
* @@GAUGE_NAME_TRG_GAP@@
2023-03-04 11:08:02 -08:00
* offset 16
2022-05-08 05:05:34 -07:00
*/
2022-10-08 19:22:51 -07:00
float triggerSyncGapRatio = (float)0;
2022-05-08 05:05:34 -07:00
/**
2023-03-04 11:08:02 -08:00
* offset 20
2022-05-08 05:05:34 -07:00
*/
uint8_t triggerStateIndex = (uint8_t)0;
/**
2023-03-04 11:08:02 -08:00
* offset 21
2022-05-08 05:05:34 -07:00
*/
uint8_t vvtCounter = (uint8_t)0;
/**
2023-03-04 11:08:02 -08:00
* offset 22
2022-05-08 05:05:34 -07:00
*/
2022-08-09 17:32:39 -07:00
uint8_t camResyncCounter = (uint8_t)0;
2022-05-08 05:05:34 -07:00
/**
2023-03-04 11:08:02 -08: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
};
2023-03-04 11:08:02 -08:00
static_assert(sizeof(trigger_state_s) == 24);
2019-09-03 16:30:51 -07:00
// end
2023-03-30 19:46:09 -07:00
// this section was generated automatically by rusEFI tool ConfigDefinition.jar based on (unknown script) controllers/trigger/trigger_state.txt Fri Mar 31 02:45:22 UTC 2023