hip9011 knock detection chip driver #35

This commit is contained in:
rusefi 2019-03-11 09:42:11 -04:00
parent 9a87b9e51b
commit 68ab283bd4
4 changed files with 13 additions and 7 deletions

View File

@ -1,4 +1,4 @@
// this section was generated automatically by ConfigDefinition.jar based on rusefi_config.txt Sun Mar 10 11:52:06 EDT 2019
// this section was generated automatically by ConfigDefinition.jar based on rusefi_config.txt Mon Mar 11 09:37:59 EDT 2019
// begin
#ifndef ENGINE_CONFIGURATION_GENERATED_H_
#define ENGINE_CONFIGURATION_GENERATED_H_
@ -1585,10 +1585,12 @@ typedef struct {
*/
uint8_t unusuedvref[3];
/**
* "angle", 1, 0, -1000, 1000, 2
* offset 1508
*/
float knockDetectionWindowStart;
/**
* "angle", 1, 0, -1000, 1000, 2
* offset 1512
*/
float knockDetectionWindowEnd;
@ -2576,4 +2578,4 @@ typedef struct {
#endif
// end
// this section was generated automatically by ConfigDefinition.jar based on rusefi_config.txt Sun Mar 10 11:52:06 EDT 2019
// this section was generated automatically by ConfigDefinition.jar based on rusefi_config.txt Mon Mar 11 09:37:59 EDT 2019

View File

@ -744,8 +744,8 @@ uint8_t[3] unusuedsw;
adc_channel_e vRefAdcChannel;
uint8_t[3] unusuedvref;
float knockDetectionWindowStart;
float knockDetectionWindowEnd;
float knockDetectionWindowStart;;"angle", 1, 0, -1000, 1000, 2
float knockDetectionWindowEnd;;"angle", 1, 0, -1000, 1000, 2
float idleStepperReactionTime;;"ms", 1, 0, 1, 300, 0

View File

@ -63,7 +63,7 @@ enable2ndByteCanID = false
; see PAGE_0_SIZE in C source code
; CONFIG_DEFINITION_START
; this section was generated automatically by ConfigDefinition.jar based on rusefi_config.txt Sun Mar 10 11:53:40 EDT 2019
; this section was generated automatically by ConfigDefinition.jar based on rusefi_config.txt Mon Mar 11 09:41:23 EDT 2019
pageSize = 20000
page = 1
@ -531,8 +531,8 @@ page = 1
warningPeriod = scalar, S16, 1502, "seconds", 1, 0, 0, 60, 0
vRefAdcChannel = bits, U08, 1504, [0:4] "PA0", "PA1", "PA2", "PA3", "PA4", "PA5", "PA6", "PA7", "PB0", "PB1", "PC0", "PC1", "PC2", "PC3", "PC4", "PC5", "Disabled", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID"
;no TS info - skipping unusuedvref offset 1505
;no TS info - skipping knockDetectionWindowStart offset 1508
;no TS info - skipping knockDetectionWindowEnd offset 1512
knockDetectionWindowStart = scalar, F32, 1508, "angle", 1, 0, -1000, 1000, 2
knockDetectionWindowEnd = scalar, F32, 1512, "angle", 1, 0, -1000, 1000, 2
idleStepperReactionTime = scalar, F32, 1516, "ms", 1, 0, 1, 300, 0
knockVThreshold = scalar, F32, 1520, "V", 1, 0, 1, 5, 2
fsioInputModes1 = scalar, U08, 1524, "todo", 1, 0, 0, 20, 1
@ -2707,6 +2707,8 @@ cmd_set_engine_type_etb_test = "w\x00\x30\x00\x3A"
field = "ChipSelect mode", hip9011CsPinMode, {isHip9011Enabled == 1}
field = "hip Output/stm input", hipOutputChannel, {isHip9011Enabled == 1}
field = "prescaler & SDO", hip9011PrescalerAndSDO, {isHip9011Enabled == 1}
field = "knockDetectionWindowStart", knockDetectionWindowStart, {isHip9011Enabled == 1}
field = "knockDetectionWindowEnd", knockDetectionWindowEnd, {isHip9011Enabled == 1}
field = "cylinder bore (mm)", cylinderBore, {isHip9011Enabled == 1}
field = "Band Freq override", knockBandCustom, {isHip9011Enabled == 1}
field = "SPI device", hip9011SpiDevice, {isHip9011Enabled == 1}

View File

@ -1820,6 +1820,8 @@ cmd_set_engine_type_etb_test = "w\x00\x30\x00\x3A"
field = "ChipSelect mode", hip9011CsPinMode, {isHip9011Enabled == 1}
field = "hip Output/stm input", hipOutputChannel, {isHip9011Enabled == 1}
field = "prescaler & SDO", hip9011PrescalerAndSDO, {isHip9011Enabled == 1}
field = "knockDetectionWindowStart", knockDetectionWindowStart, {isHip9011Enabled == 1}
field = "knockDetectionWindowEnd", knockDetectionWindowEnd, {isHip9011Enabled == 1}
field = "cylinder bore (mm)", cylinderBore, {isHip9011Enabled == 1}
field = "Band Freq override", knockBandCustom, {isHip9011Enabled == 1}
field = "SPI device", hip9011SpiDevice, {isHip9011Enabled == 1}