2024-09-05 17:26:28 -07:00
// this section was generated automatically by rusEFI tool config_definition_base-all.jar based on (unknown script) controllers/engine_cycle/knock_controller.txt
// by class com.rusefi.output.CHeaderConsumer
// begin
# pragma once
# include "rusefi_types.h"
// start of knock_controller_s
struct knock_controller_s {
/**
* @ @ GAUGE_NAME_KNOCK_LEVEL @ @
* units : Volts
* offset 0
*/
float m_knockLevel = ( float ) 0 ;
/**
* Knock : Cyl
* units : dBv
* offset 4
*/
2025-01-01 16:18:59 -08:00
int8_t m_knockCyl [ 12 ] = { } ;
2024-09-05 17:26:28 -07:00
/**
* @ @ GAUGE_NAME_KNOCK_RETARD @ @
* units : deg
* offset 16
*/
angle_t m_knockRetard = ( angle_t ) 0 ;
/**
* Knock : Threshold
* offset 20
*/
float m_knockThreshold = ( float ) 0 ;
/**
* @ @ GAUGE_NAME_KNOCK_COUNTER @ @
* offset 24
*/
uint32_t m_knockCount = ( uint32_t ) 0 ;
/**
* Knock : Max retard
* offset 28
*/
float m_maximumRetard = ( float ) 0 ;
/**
2024-10-22 17:18:36 -07:00
* Knock : SpectrumData
* units : compressed data
2024-09-05 17:26:28 -07:00
* offset 32
*/
2025-01-01 16:18:59 -08:00
uint32_t m_knockSpectrum [ 16 ] = { } ;
2024-10-22 17:18:36 -07:00
/**
* Knock : ChannelAndCylNumber
* units : compressed N + N
* offset 96
*/
uint16_t m_knockSpectrumChannelCyl = ( uint16_t ) 0 ;
/**
* Knock : Start Freq
* units : Hz
* offset 98
*/
uint16_t m_knockFrequencyStart = ( uint16_t ) 0 ;
/**
* Knock : Step Freq
* units : Hz
* offset 100
*/
float m_knockFrequencyStep = ( float ) 0 ;
/**
* Knock : Fuel trim when knock
* units : multiplier
* offset 104
*/
float m_knockFuelTrimMultiplier = ( float ) 0 ;
2024-09-05 17:26:28 -07:00
} ;
2024-10-22 17:18:36 -07:00
static_assert ( sizeof ( knock_controller_s ) = = 108 ) ;
2024-09-05 17:26:28 -07:00
// end
// this section was generated automatically by rusEFI tool config_definition_base-all.jar based on (unknown script) controllers/engine_cycle/knock_controller.txt