2022-09-07 19:41:09 -07:00
// this section was generated automatically by rusEFI tool ConfigDefinition.jar based on (unknown script) controllers/trigger/trigger_state.txt Thu Sep 08 02:40:10 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-09-07 19:41:09 -07:00
* Crank sync counter
* Usually matches crank revolutions
2019-09-03 16:30:51 -07:00
* offset 0
*/
2022-09-07 19:24:28 -07:00
uint32_t crankSynchronizationCounter = ( 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
/**
2022-08-21 09:43:08 -07:00
* trigger : unused field ?
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
*/
2022-08-09 17:32:39 -07:00
uint8_t camResyncCounter = ( uint8_t ) 0 ;
2022-05-08 05:05:34 -07:00
/**
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-09-07 19:41:09 -07:00
// this section was generated automatically by rusEFI tool ConfigDefinition.jar based on (unknown script) controllers/trigger/trigger_state.txt Thu Sep 08 02:40:10 UTC 2022