51 #include <rusefi/expected.h>
58 class SensorRegistryEntry;
68 virtual void showInfo(
const char* sensorName)
const = 0;
197 return static_cast<size_t>(
type);
static void setMockValue(SensorType type, float value, bool mockRedundant=false)
static void resetMockValue(SensorType type)
static SensorRegistryEntry * getEntryForType(SensorType type)
static void setInvalidMockValue(SensorType type)
static constexpr size_t getIndex(SensorType type)
virtual bool hasSensor() const
static const Sensor * getSensorOfType(SensorType type)
virtual SensorResult get() const =0
virtual bool isRedundant() const
virtual float getRaw() const
static void showAllSensorInfo()
virtual void showInfo(const char *sensorName) const =0
static void inhibitTimeouts(bool inhibit)
static float getOrZero(SensorType type)
static void resetAllMocks()
static void resetRegistry()
static bool s_inhibitSensorTimeouts
constexpr size_t getIndex()
const char * getSensorName() const
SensorType findSensorTypeByName(const char *name)
expected< float > SensorResult
Enumeration of sensors supported by the ECU.