manual gen

This commit is contained in:
rusefi 2020-06-14 17:01:05 -04:00
parent 9af150bd41
commit 015832e116
3 changed files with 25 additions and 4 deletions

View File

@ -1,7 +1,7 @@
#include "global.h"
#include "rusefi_enums.h"
#include "rusefi_hw_enums.h"
// was generated automatically by rusEfi tool from rusefi_hw_enums.h // was generated automatically by rusEfi tool from rusefi_enums.h // by enum2string.jar tool on Thu May 21 20:39:10 EDT 2020
// was generated automatically by rusEfi tool from rusefi_hw_enums.h // was generated automatically by rusEfi tool from rusefi_enums.h // by enum2string.jar tool on Sun Jun 14 17:00:25 EDT 2020
// see also gen_config_and_enums.bat
@ -521,8 +521,23 @@ case TLE8888_PIN_9:
}
return NULL;
}
const char *getCan_baudrate_e(can_baudrate_e value){
switch(value) {
case B100KBPS:
return "B100KBPS";
case B1MBPS:
return "B1MBPS";
case B250KBPS:
return "B250KBPS";
case B500KBPS:
return "B500KBPS";
}
return NULL;
}
const char *getCan_nbc_e(can_nbc_e value){
switch(value) {
case CAN_BUS_BMW_E90:
return "CAN_BUS_BMW_E90";
case CAN_BUS_MAZDA_RX8:
return "CAN_BUS_MAZDA_RX8";
case CAN_BUS_NBC_BMW:

View File

@ -1,4 +1,4 @@
// was generated automatically by rusEfi tool from rusefi_hw_enums.h // was generated automatically by rusEfi tool from rusefi_enums.h // by enum2string.jar tool on Wed May 20 09:04:42 EDT 2020
// was generated automatically by rusEfi tool from rusefi_hw_enums.h // was generated automatically by rusEfi tool from rusefi_enums.h // by enum2string.jar tool on Sun Jun 14 17:00:25 EDT 2020
// see also gen_config_and_enums.bat
@ -15,6 +15,7 @@ const char *getAntiLagActivationMode_e(antiLagActivationMode_e value);
const char *getBoostType_e(boostType_e value);
const char *getBrain_pin_diag_e(brain_pin_diag_e value);
const char *getBrain_pin_e(brain_pin_e value);
const char *getCan_baudrate_e(can_baudrate_e value);
const char *getCan_nbc_e(can_nbc_e value);
const char *getCan_vss_nbc_e(can_vss_nbc_e value);
const char *getChamber_style_e(chamber_style_e value);

View File

@ -1,6 +1,6 @@
package com.rusefi.config.generated;
// this file was generated automatically by rusEfi tool ConfigDefinition.jar based on gen_config.bat integration\rusefi_config.txt Sun Jun 14 15:09:07 EDT 2020
// this file was generated automatically by rusEfi tool ConfigDefinition.jar based on gen_config.bat integration\rusefi_config.txt Sun Jun 14 17:00:00 EDT 2020
// by class com.rusefi.output.FileJavaFieldsConsumer
import com.rusefi.config.*;
@ -41,6 +41,7 @@ public class Fields {
public static final int afterstartHoldTime_offset = 6152;
public static final int alFIn_offset = 4024;
public static final int alignEngineSnifferAtTDC_offset = 744;
public static final int alignmentFill_at_2109_offset = 2109;
public static final int alignmentFill_at_4514_offset = 4514;
public static final int alternator_antiwindupFreq_offset = 1764;
public static final int alternator_derivativeFilterLoss_offset = 1760;
@ -177,6 +178,7 @@ public class Fields {
public static final int camInputs2_offset = 557;
public static final int camInputs3_offset = 558;
public static final int camInputs4_offset = 559;
public static final int canBaudRate_offset = 2108;
public static final int canNbcType_offset = 480;
public static final int canReadEnabled_offset = 1464;
public static final int canRxPin_offset = 709;
@ -1291,7 +1293,7 @@ public class Fields {
public static final int unused_1484_bit_29_offset = 1476;
public static final int unused_1484_bit_30_offset = 1476;
public static final int unused_1484_bit_31_offset = 1476;
public static final int unused_former_warmup_target_afr_offset = 2108;
public static final int unused_former_warmup_target_afr_offset = 2112;
public static final int unusedAt712_offset = 712;
public static final int unusedAtOldBoardConfigurationEnd_offset = 1200;
public static final int unusedBit4_1476_offset = 1476;
@ -2113,6 +2115,8 @@ public class Fields {
public static final Field AUXSERIALSPEED = Field.create("AUXSERIALSPEED", 2096, FieldType.INT);
public static final Field THROTTLEPEDALSECONDARYUPVOLTAGE = Field.create("THROTTLEPEDALSECONDARYUPVOLTAGE", 2100, FieldType.FLOAT);
public static final Field THROTTLEPEDALSECONDARYWOTVOLTAGE = Field.create("THROTTLEPEDALSECONDARYWOTVOLTAGE", 2104, FieldType.FLOAT);
public static final String[] can_baudrate_e = {"100kbps", "250kbps" , "500kbps", "1Mbps"};
public static final Field CANBAUDRATE = Field.create("CANBAUDRATE", 2108, FieldType.INT8, can_baudrate_e);
public static final Field BOOSTCUTPRESSURE = Field.create("BOOSTCUTPRESSURE", 2132, FieldType.FLOAT);
public static final Field FSIOADC1 = Field.create("FSIOADC1", 2200, FieldType.INT8, adc_channel_e);
public static final Field FSIOADC2 = Field.create("FSIOADC2", 2201, FieldType.INT8, adc_channel_e);
@ -3090,6 +3094,7 @@ public class Fields {
AUXSERIALSPEED,
THROTTLEPEDALSECONDARYUPVOLTAGE,
THROTTLEPEDALSECONDARYWOTVOLTAGE,
CANBAUDRATE,
BOOSTCUTPRESSURE,
FSIOADC1,
FSIOADC2,