rusefi/firmware/controllers/trigger/trigger_state_generated.h

57 lines
1.3 KiB
C
Raw Normal View History

2024-01-03 12:32:11 -08:00
// 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
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
/**
2024-01-03 12:32:11 -08:00
* units: 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
/**
2024-01-03 12:32:11 -08:00
* units: sync: Primary Cam Position
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
/**
2024-01-03 12:32:11 -08:00
* units: sync: Cam Tooth Position
2023-03-04 11:08:02 -08:00
* offset 16
2022-05-08 05:05:34 -07:00
*/
2023-10-06 10:26:49 -07:00
float vvtToothPosition[4];
/**
* @@GAUGE_NAME_TRG_GAP@@
* offset 32
*/
2022-10-08 19:22:51 -07:00
float triggerSyncGapRatio = (float)0;
2022-05-08 05:05:34 -07:00
/**
2023-10-06 10:26:49 -07:00
* offset 36
2022-05-08 05:05:34 -07:00
*/
uint8_t triggerStateIndex = (uint8_t)0;
/**
2023-10-06 10:26:49 -07:00
* offset 37
2022-05-08 05:05:34 -07:00
*/
2023-09-27 20:25:53 -07:00
uint8_t vvtStateIndex = (uint8_t)0;
2022-05-08 05:05:34 -07:00
/**
2023-09-27 20:25:53 -07:00
* need 4 byte alignment
2024-01-03 12:32:11 -08:00
* units: units
2023-12-06 11:49:31 -08:00
* offset 38
2022-05-08 05:05:34 -07:00
*/
2023-12-06 11:49:31 -08:00
uint8_t alignmentFill_at_38[2];
2019-09-03 16:30:51 -07:00
};
2023-10-06 10:26:49 -07:00
static_assert(sizeof(trigger_state_s) == 40);
2019-09-03 16:30:51 -07:00
// end
2024-01-03 12:32:11 -08:00
// 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