2021-10-16 14:49:02 -07:00
|
|
|
#include "global.h"
|
|
|
|
#include "sensor_type.h"
|
2021-10-20 18:42:09 -07:00
|
|
|
// was generated automatically by rusEFI tool from sensor_type.h // by enum2string.jar tool on Wed Oct 20 21:25:07 EDT 2021
|
2021-10-16 14:49:02 -07:00
|
|
|
// see also gen_config_and_enums.bat
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const char *getSensorType(SensorType value){
|
|
|
|
switch(value) {
|
2021-10-20 18:42:09 -07:00
|
|
|
case SensorType::AcceleratorPedal:
|
2021-10-16 14:49:02 -07:00
|
|
|
return "AcceleratorPedal";
|
2021-10-20 18:42:09 -07:00
|
|
|
case SensorType::AcceleratorPedalPrimary:
|
2021-10-16 14:49:02 -07:00
|
|
|
return "AcceleratorPedalPrimary";
|
2021-10-20 18:42:09 -07:00
|
|
|
case SensorType::AcceleratorPedalSecondary:
|
2021-10-16 14:49:02 -07:00
|
|
|
return "AcceleratorPedalSecondary";
|
2021-10-20 18:42:09 -07:00
|
|
|
case SensorType::Aux1:
|
2021-10-16 14:49:02 -07:00
|
|
|
return "Aux1";
|
2021-10-20 18:42:09 -07:00
|
|
|
case SensorType::Aux2:
|
2021-10-16 14:49:02 -07:00
|
|
|
return "Aux2";
|
2021-10-20 18:42:09 -07:00
|
|
|
case SensorType::Aux3:
|
2021-10-16 14:49:02 -07:00
|
|
|
return "Aux3";
|
2021-10-20 18:42:09 -07:00
|
|
|
case SensorType::Aux4:
|
2021-10-16 14:49:02 -07:00
|
|
|
return "Aux4";
|
2021-10-20 18:42:09 -07:00
|
|
|
case SensorType::Aux5:
|
2021-10-19 16:54:00 -07:00
|
|
|
return "Aux5";
|
2021-10-20 18:42:09 -07:00
|
|
|
case SensorType::Aux6:
|
2021-10-19 16:54:00 -07:00
|
|
|
return "Aux6";
|
2021-10-20 18:42:09 -07:00
|
|
|
case SensorType::Aux7:
|
2021-10-19 16:54:00 -07:00
|
|
|
return "Aux7";
|
2021-10-20 18:42:09 -07:00
|
|
|
case SensorType::Aux8:
|
2021-10-19 16:54:00 -07:00
|
|
|
return "Aux8";
|
2021-10-20 18:42:09 -07:00
|
|
|
case SensorType::AuxTemp1:
|
2021-10-16 14:49:02 -07:00
|
|
|
return "AuxTemp1";
|
2021-10-20 18:42:09 -07:00
|
|
|
case SensorType::AuxTemp2:
|
2021-10-16 14:49:02 -07:00
|
|
|
return "AuxTemp2";
|
2021-10-20 18:42:09 -07:00
|
|
|
case SensorType::BarometricPressure:
|
2021-10-16 14:49:02 -07:00
|
|
|
return "BarometricPressure";
|
2021-10-20 18:42:09 -07:00
|
|
|
case SensorType::BatteryVoltage:
|
2021-10-16 14:49:02 -07:00
|
|
|
return "BatteryVoltage";
|
2021-10-20 18:42:09 -07:00
|
|
|
case SensorType::Clt:
|
2021-10-16 14:49:02 -07:00
|
|
|
return "Clt";
|
2021-10-20 18:42:09 -07:00
|
|
|
case SensorType::DriverThrottleIntent:
|
2021-10-16 14:49:02 -07:00
|
|
|
return "DriverThrottleIntent";
|
2021-10-20 18:42:09 -07:00
|
|
|
case SensorType::FuelEthanolPercent:
|
2021-10-16 14:49:02 -07:00
|
|
|
return "FuelEthanolPercent";
|
2021-10-20 18:42:09 -07:00
|
|
|
case SensorType::FuelLevel:
|
2021-10-16 14:49:02 -07:00
|
|
|
return "FuelLevel";
|
2021-10-20 18:42:09 -07:00
|
|
|
case SensorType::FuelPressureHigh:
|
2021-10-16 14:49:02 -07:00
|
|
|
return "FuelPressureHigh";
|
2021-10-20 18:42:09 -07:00
|
|
|
case SensorType::FuelPressureInjector:
|
2021-10-16 14:49:02 -07:00
|
|
|
return "FuelPressureInjector";
|
2021-10-20 18:42:09 -07:00
|
|
|
case SensorType::FuelPressureLow:
|
2021-10-16 14:49:02 -07:00
|
|
|
return "FuelPressureLow";
|
2021-10-20 18:42:09 -07:00
|
|
|
case SensorType::Iat:
|
2021-10-16 14:49:02 -07:00
|
|
|
return "Iat";
|
2021-10-20 18:42:09 -07:00
|
|
|
case SensorType::IdlePosition:
|
2021-10-16 14:49:02 -07:00
|
|
|
return "IdlePosition";
|
2021-10-20 18:42:09 -07:00
|
|
|
case SensorType::Invalid:
|
2021-10-16 14:49:02 -07:00
|
|
|
return "Invalid";
|
2021-10-20 18:42:09 -07:00
|
|
|
case SensorType::Lambda1:
|
2021-10-16 14:49:02 -07:00
|
|
|
return "Lambda1";
|
2021-10-20 18:42:09 -07:00
|
|
|
case SensorType::Lambda2:
|
2021-10-16 14:49:02 -07:00
|
|
|
return "Lambda2";
|
2021-10-20 18:42:09 -07:00
|
|
|
case SensorType::Maf:
|
2021-10-16 14:49:02 -07:00
|
|
|
return "Maf";
|
2021-10-20 18:42:09 -07:00
|
|
|
case SensorType::Map:
|
2021-10-16 14:49:02 -07:00
|
|
|
return "Map";
|
2021-10-20 18:42:09 -07:00
|
|
|
case SensorType::MapFast:
|
2021-10-16 14:49:02 -07:00
|
|
|
return "MapFast";
|
2021-10-20 18:42:09 -07:00
|
|
|
case SensorType::MapSlow:
|
2021-10-16 14:49:02 -07:00
|
|
|
return "MapSlow";
|
2021-10-20 18:42:09 -07:00
|
|
|
case SensorType::OilPressure:
|
2021-10-16 14:49:02 -07:00
|
|
|
return "OilPressure";
|
2021-10-20 18:42:09 -07:00
|
|
|
case SensorType::PlaceholderLast:
|
2021-10-16 14:49:02 -07:00
|
|
|
return "PlaceholderLast";
|
2021-10-20 18:42:09 -07:00
|
|
|
case SensorType::Rpm:
|
2021-10-16 14:49:02 -07:00
|
|
|
return "Rpm";
|
2021-10-20 18:42:09 -07:00
|
|
|
case SensorType::Tps1:
|
2021-10-16 14:49:02 -07:00
|
|
|
return "Tps1";
|
2021-10-20 18:42:09 -07:00
|
|
|
case SensorType::Tps1Primary:
|
2021-10-16 14:49:02 -07:00
|
|
|
return "Tps1Primary";
|
2021-10-20 18:42:09 -07:00
|
|
|
case SensorType::Tps1Secondary:
|
2021-10-16 14:49:02 -07:00
|
|
|
return "Tps1Secondary";
|
2021-10-20 18:42:09 -07:00
|
|
|
case SensorType::Tps2:
|
2021-10-16 14:49:02 -07:00
|
|
|
return "Tps2";
|
2021-10-20 18:42:09 -07:00
|
|
|
case SensorType::Tps2Primary:
|
2021-10-16 14:49:02 -07:00
|
|
|
return "Tps2Primary";
|
2021-10-20 18:42:09 -07:00
|
|
|
case SensorType::Tps2Secondary:
|
2021-10-16 14:49:02 -07:00
|
|
|
return "Tps2Secondary";
|
2021-10-20 18:42:09 -07:00
|
|
|
case SensorType::TurbochargerSpeed:
|
2021-10-16 14:49:02 -07:00
|
|
|
return "TurbochargerSpeed";
|
2021-10-20 18:42:09 -07:00
|
|
|
case SensorType::VehicleSpeed:
|
2021-10-16 14:49:02 -07:00
|
|
|
return "VehicleSpeed";
|
2021-10-20 18:42:09 -07:00
|
|
|
case SensorType::WastegatePosition:
|
2021-10-16 14:49:02 -07:00
|
|
|
return "WastegatePosition";
|
|
|
|
}
|
|
|
|
return NULL;
|
|
|
|
}
|