42#include <rusefi/expected.h>
46#ifndef VERBOSE_SENSOR_DEBUG
47#define VERBOSE_SENSOR_DEBUG false
53class SensorRegistryEntry;
63 virtual void showInfo(
const char* sensorName)
const = 0;
187 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
const char * getSensorName() const
constexpr size_t getIndex()
SensorType findSensorTypeByName(const char *name)
expected< float > SensorResult
Enumeration of sensors supported by the ECU.