2024-02-28 16:40:37 -08:00
// this section was generated automatically by rusEFI tool config_definition_base-all.jar based on (unknown script) controllers/algo/ignition_state.txt Thu Feb 29 00:39:49 UTC 2024
2022-04-13 12:43:05 -07:00
// by class com.rusefi.output.CHeaderConsumer
// begin
# pragma once
# include "rusefi_types.h"
2022-04-13 12:51:11 -07:00
// start of ignition_state_s
struct ignition_state_s {
2022-04-13 12:43:05 -07:00
/**
2023-03-05 08:51:47 -08:00
* " Ignition: base dwell "
2024-01-03 12:32:11 -08:00
* units : ms
2022-04-13 12:43:05 -07:00
* offset 0
*/
float baseDwell = ( float ) 0 ;
/**
2023-01-15 05:37:56 -08:00
* @ @ GAUGE_COIL_DWELL_TIME @ @
2024-01-03 12:32:11 -08:00
* units : ms
2022-04-13 12:43:05 -07:00
* offset 4
*/
2023-01-15 05:37:56 -08:00
floatms_t sparkDwell = ( floatms_t ) 0 ;
2022-04-16 16:33:47 -07:00
/**
2023-03-05 08:51:47 -08:00
* Ignition : dwell duration
2023-01-15 05:37:56 -08:00
* as crankshaft angle
* NAN if engine is stopped
* See also sparkDwell
2024-01-03 12:32:11 -08:00
* units : deg
2022-04-16 16:33:47 -07:00
* offset 8
*/
2024-02-28 16:40:37 -08:00
angle_t dwellDurationAngle = ( angle_t ) 0 ;
2022-04-16 16:33:47 -07:00
/**
2023-05-04 18:36:16 -07:00
* Ign : CLT correction
2024-01-03 12:32:11 -08:00
* units : deg
2022-04-16 16:33:47 -07:00
* offset 12
*/
2023-01-15 05:37:56 -08:00
scaled_channel < int16_t , 100 , 1 > cltTimingCorrection = ( int16_t ) 0 ;
/**
2023-05-04 18:36:16 -07:00
* Ign : IAT correction
2024-01-03 12:32:11 -08:00
* units : deg
2023-01-15 05:37:56 -08:00
* offset 14
*/
scaled_channel < int16_t , 100 , 1 > timingIatCorrection = ( int16_t ) 0 ;
/**
2023-05-04 18:36:16 -07:00
* Idle : Timing adjustment
2024-01-03 12:32:11 -08:00
* units : deg
2023-01-15 05:37:56 -08:00
* offset 16
*/
scaled_channel < int16_t , 100 , 1 > timingPidCorrection = ( int16_t ) 0 ;
2023-04-12 12:29:14 -07:00
/**
* @ @ GAUGE_NAME_TIMING_ADVANCE @ @
2024-01-03 12:32:11 -08:00
* units : deg
2023-04-12 12:29:14 -07:00
* offset 18
*/
scaled_channel < int16_t , 50 , 1 > baseIgnitionAdvance = ( int16_t ) 0 ;
/**
* @ @ GAUGE_NAME_ADJUSTED_TIMING @ @
2024-01-03 12:32:11 -08:00
* units : deg
2023-04-12 12:29:14 -07:00
* offset 20
*/
scaled_channel < int16_t , 50 , 1 > correctedIgnitionAdvance = ( int16_t ) 0 ;
2023-01-15 05:37:56 -08:00
/**
2024-02-03 13:44:31 -08:00
* Traction : timing correction
* units : deg
2023-04-12 12:29:14 -07:00
* offset 22
2023-01-15 05:37:56 -08:00
*/
2024-02-03 13:44:31 -08:00
scaled_channel < int16_t , 50 , 1 > tractionAdvanceDrop = ( int16_t ) 0 ;
2023-01-15 05:37:56 -08:00
/**
2023-05-04 18:36:16 -07:00
* Ign : Dwell voltage correction
2023-04-12 12:29:14 -07:00
* offset 24
2023-01-15 05:37:56 -08:00
*/
float dwellVoltageCorrection = ( float ) 0 ;
/**
2023-05-04 17:38:45 -07:00
* Ign : Lua timing add
2024-01-03 12:32:11 -08:00
* units : deg
2023-04-12 12:29:14 -07:00
* offset 28
2023-01-15 05:37:56 -08:00
*/
float luaTimingAdd = ( float ) 0 ;
/**
2023-05-04 17:38:45 -07:00
* Ign : Lua timing mult
2024-01-03 12:32:11 -08:00
* units : deg
2023-04-12 12:29:14 -07:00
* offset 32
2023-01-15 05:37:56 -08:00
*/
2022-04-16 16:33:47 -07:00
float luaTimingMult = ( float ) 0 ;
2023-05-25 10:17:10 -07:00
/**
* Ign : Lua Spark Skip
2023-05-31 14:17:53 -07:00
offset 36 bit 0 */
2023-05-25 10:17:10 -07:00
bool luaIgnitionSkip : 1 { } ;
/**
2023-05-31 14:17:53 -07:00
offset 36 bit 1 */
bool unusedBit_13_1 : 1 { } ;
2023-05-25 10:17:10 -07:00
/**
2023-05-31 14:17:53 -07:00
offset 36 bit 2 */
bool unusedBit_13_2 : 1 { } ;
2023-05-25 10:17:10 -07:00
/**
2023-05-31 14:17:53 -07:00
offset 36 bit 3 */
bool unusedBit_13_3 : 1 { } ;
2023-05-25 10:17:10 -07:00
/**
2023-05-31 14:17:53 -07:00
offset 36 bit 4 */
bool unusedBit_13_4 : 1 { } ;
2023-05-25 10:17:10 -07:00
/**
2023-05-31 14:17:53 -07:00
offset 36 bit 5 */
bool unusedBit_13_5 : 1 { } ;
2023-05-25 10:17:10 -07:00
/**
2023-05-31 14:17:53 -07:00
offset 36 bit 6 */
bool unusedBit_13_6 : 1 { } ;
2023-05-25 10:17:10 -07:00
/**
2023-05-31 14:17:53 -07:00
offset 36 bit 7 */
bool unusedBit_13_7 : 1 { } ;
2023-05-25 10:17:10 -07:00
/**
2023-05-31 14:17:53 -07:00
offset 36 bit 8 */
bool unusedBit_13_8 : 1 { } ;
2023-05-25 10:17:10 -07:00
/**
2023-05-31 14:17:53 -07:00
offset 36 bit 9 */
bool unusedBit_13_9 : 1 { } ;
2023-05-25 10:17:10 -07:00
/**
2023-05-31 14:17:53 -07:00
offset 36 bit 10 */
bool unusedBit_13_10 : 1 { } ;
2023-05-25 10:17:10 -07:00
/**
2023-05-31 14:17:53 -07:00
offset 36 bit 11 */
bool unusedBit_13_11 : 1 { } ;
2023-05-25 10:17:10 -07:00
/**
2023-05-31 14:17:53 -07:00
offset 36 bit 12 */
bool unusedBit_13_12 : 1 { } ;
2023-05-25 10:17:10 -07:00
/**
2023-05-31 14:17:53 -07:00
offset 36 bit 13 */
bool unusedBit_13_13 : 1 { } ;
2023-05-25 10:17:10 -07:00
/**
2023-05-31 14:17:53 -07:00
offset 36 bit 14 */
bool unusedBit_13_14 : 1 { } ;
2023-05-25 10:17:10 -07:00
/**
2023-05-31 14:17:53 -07:00
offset 36 bit 15 */
bool unusedBit_13_15 : 1 { } ;
2023-05-25 10:17:10 -07:00
/**
2023-05-31 14:17:53 -07:00
offset 36 bit 16 */
bool unusedBit_13_16 : 1 { } ;
2023-05-25 10:17:10 -07:00
/**
2023-05-31 14:17:53 -07:00
offset 36 bit 17 */
bool unusedBit_13_17 : 1 { } ;
2023-05-25 10:17:10 -07:00
/**
2023-05-31 14:17:53 -07:00
offset 36 bit 18 */
bool unusedBit_13_18 : 1 { } ;
2023-05-25 10:17:10 -07:00
/**
2023-05-31 14:17:53 -07:00
offset 36 bit 19 */
bool unusedBit_13_19 : 1 { } ;
2023-05-25 10:17:10 -07:00
/**
2023-05-31 14:17:53 -07:00
offset 36 bit 20 */
bool unusedBit_13_20 : 1 { } ;
2023-05-25 10:17:10 -07:00
/**
2023-05-31 14:17:53 -07:00
offset 36 bit 21 */
bool unusedBit_13_21 : 1 { } ;
2023-05-25 10:17:10 -07:00
/**
2023-05-31 14:17:53 -07:00
offset 36 bit 22 */
bool unusedBit_13_22 : 1 { } ;
2023-05-25 10:17:10 -07:00
/**
2023-05-31 14:17:53 -07:00
offset 36 bit 23 */
bool unusedBit_13_23 : 1 { } ;
2023-05-25 10:17:10 -07:00
/**
2023-05-31 14:17:53 -07:00
offset 36 bit 24 */
bool unusedBit_13_24 : 1 { } ;
2023-05-25 10:17:10 -07:00
/**
2023-05-31 14:17:53 -07:00
offset 36 bit 25 */
bool unusedBit_13_25 : 1 { } ;
2023-05-25 10:17:10 -07:00
/**
2023-05-31 14:17:53 -07:00
offset 36 bit 26 */
bool unusedBit_13_26 : 1 { } ;
2023-05-25 10:17:10 -07:00
/**
2023-05-31 14:17:53 -07:00
offset 36 bit 27 */
bool unusedBit_13_27 : 1 { } ;
2023-05-25 10:17:10 -07:00
/**
2023-05-31 14:17:53 -07:00
offset 36 bit 28 */
bool unusedBit_13_28 : 1 { } ;
2023-05-25 10:17:10 -07:00
/**
2023-05-31 14:17:53 -07:00
offset 36 bit 29 */
bool unusedBit_13_29 : 1 { } ;
2023-05-25 10:17:10 -07:00
/**
2023-05-31 14:17:53 -07:00
offset 36 bit 30 */
bool unusedBit_13_30 : 1 { } ;
2023-05-25 10:17:10 -07:00
/**
2023-05-31 14:17:53 -07:00
offset 36 bit 31 */
bool unusedBit_13_31 : 1 { } ;
2022-04-13 12:43:05 -07:00
} ;
2023-05-31 14:17:53 -07:00
static_assert ( sizeof ( ignition_state_s ) = = 40 ) ;
2022-04-13 12:43:05 -07:00
// end
2024-02-28 16:40:37 -08:00
// this section was generated automatically by rusEFI tool config_definition_base-all.jar based on (unknown script) controllers/algo/ignition_state.txt Thu Feb 29 00:39:49 UTC 2024